Package: parseLatex 0.4.2

parseLatex: Parse 'LaTeX' Code

Exports an enhanced version of the tools::parseLatex() function to handle 'LaTeX' syntax more accurately. Also includes numerous functions for searching and modifying 'LaTeX' source.

Authors:Duncan Murdoch [aut, cre], The R Core Team [ctb, cph]

parseLatex_0.4.2.tar.gz
parseLatex_0.4.2.zip(r-4.7)parseLatex_0.4.2.zip(r-4.6)parseLatex_0.4.2.zip(r-4.5)
parseLatex_0.4.2.tgz(r-4.6-x86_64)parseLatex_0.4.2.tgz(r-4.6-arm64)parseLatex_0.4.2.tgz(r-4.5-x86_64)parseLatex_0.4.2.tgz(r-4.5-arm64)
parseLatex_0.4.2.tar.gz(r-4.7-arm64)parseLatex_0.4.2.tar.gz(r-4.7-x86_64)parseLatex_0.4.2.tar.gz(r-4.6-arm64)parseLatex_0.4.2.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
parseLatex/json (API)
NEWS

# Install 'parseLatex' in R:
install.packages('parseLatex', repos = c('https://dmurdoch.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dmurdoch/parselatex/issues

Pkgdown/docs site:https://dmurdoch.github.io

On CRAN:

Conda:

4.69 score 3 stars 11 scripts 180 downloads 126 exports 0 dependencies

Last updated from:ebb86bcd2c. Checks:12 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK117
linux-devel-x86_64OK122
source / vignettesOK177
linux-release-arm64OK118
linux-release-x86_64OK120
macos-release-arm64OK117
macos-release-x86_64OK277
macos-oldrel-arm64OK129
macos-oldrel-x86_64OK149
windows-develOK100
windows-releaseOK96
windows-oldrelOK85
wasm-releaseFAIL93

Exports:ACTIVEALIGNas_LaTeX2brace_optionsbrace_options<-bracket_optionsbracket_options<-catcodecolumnOptioncolumnOption<-columnOptionscolumnOptions<-COMMENTdefaultCatcodesdeparseLatexdrop_captiondrop_itemsdrop_whitespaceenvNameenvName<-ESCAPEfind_blockfind_brace_optionsfind_bracket_optionsfind_captionfind_catcodefind_charfind_columnOptionsfind_envfind_generalfind_macrofind_patternfind_posOptionfind_rulefind_rulesfind_sequencefind_tableCellfind_tableContentfind_tableRowfind_tabularfind_tagsfind_whitespacefind_widthOptionflatten_itemlistsget_containerget_contentsget_itemget_itemsget_leftoversget_rangeget_rangesget_whichIGNOREinclude_whitespaceindex_to_pathinsert_valuesINVALIDis_blockis_bracketis_catcodeis_charis_envis_erroris_itemlistis_macrois_placeholderis_tabularis_textis_whitespaceitems_are_equallatex2LaTeX2rangelatexTagLBRACELETTERmacroNameMATHnew_blocknew_envnew_itemlistNEWLINEOTHERPARAMparseLatexpath_topath_to_captionpath_to_indexpaths_to_rangesplaceholderposOptionposOption<-prepare_rowprepare_tableRBRACEreduce_whitespacermSrcrefsrow_to_vectorrulerule<-rulesselect_itemsset_contentsset_itemset_rangeshow_itemlistsshowErrorsSPACEsplit_charssplit_latexsplit_listSUBSUPERtableCelltableCell<-tableContenttableContent<-tableDimtableNcoltableNrowtableRowtableRow<-trim_whitespacevector_to_latex2vector_to_rowwidthOptionwidthOption<-

Dependencies:

The parseLatex package

Rendered fromparseLatex.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2025-04-03
Started: 2025-01-26

Readme and manuals

Help Manual

Help pageTopics
Coerce to LaTeX2as_LaTeX2 latex2
The default "catcodes" used by parseLatex.ACTIVE ALIGN COMMENT defaultCatcodes ESCAPE IGNORE INVALID LBRACE LETTER MATH NEWLINE OTHER PARAM RBRACE SPACE SUB SUPER
Convert latex object into character vectordeparseLatex
Find or drop captionsdrop_caption find_caption path_to_caption
Find a pattern in deparsed itemsfind_pattern
Find a code sequencefind_sequence items_are_equal
Functions relating to the data content of a tablefind_tableContent tableContent tableContent<-
Functions to work with rows in tablesfind_tableRow tableRow tableRow<-
Miscellaneous low-level findersfinders find_block find_catcode find_char find_env find_general find_macro find_tags find_whitespace
Convenience functions to get or set contents of itemget_contents set_contents
Retrieve source from beyond the end of the document.get_leftovers
Lists of itemsflatten_itemlists ITEMLIST itemlist new_itemlist PLACEHOLDER placeholder show_itemlists
Ranges within LaTeX2 lists.LaTeX2range print.LaTeX2range
Utility functions finding names and types of objectscatcode envName envName<- latexTag macroName names
Find or modify macro or environment optionsbrace_options brace_options<- bracket_options bracket_options<- find_brace_options find_bracket_options options
Parse LaTeX codeLaTeX2 LaTeX2item parseLatex parseLatex_fn
The parseLatex packageparseLatex-package parseLatex_pkg
Find path to a particular kind of itemget_container get_item get_items get_which insert_values path_to set_item
Convert between paths and indicesget_ranges index_to_path paths_to_ranges path_to_index
Split up a table by rowsprepare_row prepare_table
Print methodsprint.LaTeX2 print.LaTeX2item
Remove excess whitespace recursivelyreduce_whitespace
Remove srcrefsrmSrcrefs
Set items in a LaTeX2 objectget_range set_range
Show errors in parsed Latex objectshowErrors
Splitting lists of itemssplitting split_latex split_list
Calculations on tablestablecalcs tableDim tableNcol tableNrow
Work with table cellsfind_tableCell tableCell tableCell<-
Functions related to table options.columnOption columnOption<- columnOptions columnOptions<- find_columnOptions find_posOption find_widthOption posOption posOption<- tableOption widthOption widthOption<-
Work with rules in tablesfind_rule find_rules rule rule<- rules tableRule
Functions related to parsing LaTeX tablesfind_tabular is_tabular tables
Test objectsis_block is_bracket is_catcode is_char is_env is_error is_itemlist is_macro is_placeholder is_text is_whitespace tests
Miscellaneous utilitiesdrop_items drop_whitespace include_whitespace new_block new_env select_items split_chars trim_whitespace Utilities
Convert vector to itemsvector_to_latex2
Convert vector to table row and backrow_to_vector vector_to_row