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:
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
Last updated from:ebb86bcd2c. Checks:12 OK, 1 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 117 | ||
| linux-devel-x86_64 | OK | 122 | ||
| source / vignettes | OK | 177 | ||
| linux-release-arm64 | OK | 118 | ||
| linux-release-x86_64 | OK | 120 | ||
| macos-release-arm64 | OK | 117 | ||
| macos-release-x86_64 | OK | 277 | ||
| macos-oldrel-arm64 | OK | 129 | ||
| macos-oldrel-x86_64 | OK | 149 | ||
| windows-devel | OK | 100 | ||
| windows-release | OK | 96 | ||
| windows-oldrel | OK | 85 | ||
| wasm-release | FAIL | 93 |
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:
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_caption find_caption 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_general 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 |
| Lists of items | flatten_itemlists ITEMLIST itemlist new_itemlist PLACEHOLDER placeholder show_itemlists |
| 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_items get_which insert_values path_to set_item |
| Convert between paths and indices | get_ranges index_to_path paths_to_ranges path_to_index |
| Split up a table by rows | prepare_row prepare_table |
| Print methods | print.LaTeX2 print.LaTeX2item |
| Remove excess whitespace recursively | reduce_whitespace |
| Remove srcrefs | rmSrcrefs |
| Set items in a LaTeX2 object | get_range set_range |
| Show errors in parsed Latex object | showErrors |
| Splitting lists of items | splitting split_latex split_list |
| 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_catcode is_char is_env is_error is_itemlist is_macro is_placeholder is_text is_whitespace tests |
| Miscellaneous utilities | drop_items drop_whitespace include_whitespace new_block new_env select_items split_chars trim_whitespace Utilities |
| Convert vector to items | vector_to_latex2 |
| Convert vector to table row and back | row_to_vector vector_to_row |
