Package: parseLatex 0.3.12

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.3.12.tar.gz
parseLatex_0.3.12.zip(r-4.5)parseLatex_0.3.12.zip(r-4.4)parseLatex_0.3.12.zip(r-4.3)
parseLatex_0.3.12.tgz(r-4.5-x86_64)parseLatex_0.3.12.tgz(r-4.5-arm64)parseLatex_0.3.12.tgz(r-4.4-x86_64)parseLatex_0.3.12.tgz(r-4.4-arm64)parseLatex_0.3.12.tgz(r-4.3-x86_64)parseLatex_0.3.12.tgz(r-4.3-arm64)
parseLatex_0.3.12.tar.gz(r-4.5-noble)parseLatex_0.3.12.tar.gz(r-4.4-noble)
parseLatex.pdf |parseLatex.html
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 site:https://dmurdoch.github.io

On CRAN:

Conda:

4.70 score 1 stars 8 scripts 274 downloads 110 exports 0 dependencies

Last updated 8 days agofrom:186b3d0cb7. Checks:12 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 19 2025
R-4.5-win-x86_64OKMar 19 2025
R-4.5-mac-x86_64OKMar 19 2025
R-4.5-mac-aarch64OKMar 19 2025
R-4.5-linux-x86_64OKMar 19 2025
R-4.4-win-x86_64OKMar 19 2025
R-4.4-mac-x86_64OKMar 19 2025
R-4.4-mac-aarch64OKMar 19 2025
R-4.4-linux-x86_64OKMar 19 2025
R-4.3-win-x86_64OKMar 19 2025
R-4.3-mac-x86_64OKMar 19 2025
R-4.3-mac-aarch64OKMar 19 2025

Exports:ACTIVEALIGNas_LaTeX2brace_optionsbrace_options<-bracket_optionsbracket_options<-catcodecolumnOptioncolumnOption<-columnOptionscolumnOptions<-COMMENTdefaultCatcodesdeparseLatexdrop_captionsdrop_itemsdrop_whitespaceenvNameenvName<-ESCAPEfind_blockfind_brace_optionsfind_bracket_optionsfind_captionsfind_catcodefind_charfind_columnOptionsfind_envfind_macrofind_patternfind_posOptionfind_rulefind_rulesfind_sequencefind_tableCellfind_tableContentfind_tableRowfind_tabularfind_tagsfind_whitespacefind_widthOptionget_containerget_contentsget_itemget_leftoversget_rangeget_whichIGNOREinclude_whitespaceinsert_valuesINVALIDis_blockis_bracketis_charis_envis_erroris_macrois_Tabularis_textis_whitespaceitems_are_equallatex2LaTeX2rangelatexTagLBRACELETTERmacroNameMATHnew_blocknew_envNEWLINEOTHERPARAMparseLatexpath_topath_to_captionposOptionposOption<-RBRACEreduce_whitespacerow_to_vectorrulerule<-rulesselect_itemsset_contentsset_itemset_rangeshowErrorsSPACEsplit_charssplit_latexsplit_listSUBSUPERtableCelltableCell<-tableContenttableContent<-tableDimtableNcoltableNrowtableRowtableRow<-trim_whitespacevector_to_latex2vector_to_rowwidthOptionwidthOption<-

Dependencies:

The parseLatex package

Rendered fromparseLatex.Rmdusingknitr::rmarkdownon Mar 19 2025.

Last update: 2025-03-13
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_captions find_captions 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_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
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_which insert_values path_to set_item
Print methodsprint.LaTeX2 print.LaTeX2item
Remove excess whitespace recursivelyreduce_whitespace
Set items in a LaTeX2 objectget_range set_range
Show errors in parsed Latex objectshowErrors
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_char is_env is_error is_macro is_text is_whitespace tests
Miscellaneous utilitiesdrop_items drop_whitespace include_whitespace new_block new_env select_items split_chars split_latex split_list trim_whitespace Utilities
Convert vector to itemsvector_to_latex2
Convert vector to table row and backrow_to_vector vector_to_row