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:
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
Last updated 8 days agofrom:186b3d0cb7. Checks:12 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 19 2025 |
R-4.5-win-x86_64 | OK | Mar 19 2025 |
R-4.5-mac-x86_64 | OK | Mar 19 2025 |
R-4.5-mac-aarch64 | OK | Mar 19 2025 |
R-4.5-linux-x86_64 | OK | Mar 19 2025 |
R-4.4-win-x86_64 | OK | Mar 19 2025 |
R-4.4-mac-x86_64 | OK | Mar 19 2025 |
R-4.4-mac-aarch64 | OK | Mar 19 2025 |
R-4.4-linux-x86_64 | OK | Mar 19 2025 |
R-4.3-win-x86_64 | OK | Mar 19 2025 |
R-4.3-mac-x86_64 | OK | Mar 19 2025 |
R-4.3-mac-aarch64 | OK | Mar 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:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Coerce to LaTeX2 | as_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 vector | deparseLatex |
Find or drop captions | drop_captions find_captions path_to_caption |
Find a pattern in deparsed items | find_pattern |
Find a code sequence | find_sequence items_are_equal |
Functions relating to the data content of a table | find_tableContent tableContent tableContent<- |
Functions to work with rows in tables | find_tableRow tableRow tableRow<- |
Miscellaneous low-level finders | finders find_block find_catcode find_char find_env find_macro find_tags find_whitespace |
Convenience functions to get or set contents of item | get_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 objects | catcode envName envName<- latexTag macroName names |
Find or modify macro or environment options | brace_options brace_options<- bracket_options bracket_options<- find_brace_options find_bracket_options options |
Parse LaTeX code | LaTeX2 LaTeX2item parseLatex parseLatex_fn |
The parseLatex package | parseLatex-package parseLatex_pkg |
Find path to a particular kind of item | get_container get_item get_which insert_values path_to set_item |
Print methods | print.LaTeX2 print.LaTeX2item |
Remove excess whitespace recursively | reduce_whitespace |
Set items in a LaTeX2 object | get_range set_range |
Show errors in parsed Latex object | showErrors |
Calculations on tables | tablecalcs tableDim tableNcol tableNrow |
Work with table cells | find_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 tables | find_rule find_rules rule rule<- rules tableRule |
Functions related to parsing LaTeX tables | find_tabular is_Tabular tables |
Test objects | is_block is_bracket is_char is_env is_error is_macro is_text is_whitespace tests |
Miscellaneous utilities | drop_items drop_whitespace include_whitespace new_block new_env select_items split_chars split_latex split_list trim_whitespace Utilities |
Convert vector to items | vector_to_latex2 |
Convert vector to table row and back | row_to_vector vector_to_row |