Skip to contents

Main functions

The main high-level functions

parseLatex()
Parse LaTeX code
deparseLatex()
Convert latex object into character vector
showErrors()
Show errors in parsed Latex object

Searching

Functions to find and modify things

Tables

Working with tables in the document

is_Tabular() find_tabular()
Functions related to parsing LaTeX tables
tableNrow() tableNcol() tableDim()
Calculations on tables
find_posOption() posOption() `posOption<-`() find_widthOption() widthOption() `widthOption<-`() find_columnOptions() columnOptions() columnOption() `columnOptions<-`() `columnOption<-`()
Functions related to table options.
find_tableContent() tableContent() `tableContent<-`()
Functions relating to the data content of a table
find_tableRow() tableRow() `tableRow<-`()
Functions to work with rows in tables
find_tableCell() tableCell() `tableCell<-`()
Work with table cells
find_rules() rules() find_rule() rule() `rule<-`()
Work with rules in tables
vector_to_row() row_to_vector()
Convert vector to table row and back
find_captions() drop_captions() path_to_caption()
Find or drop captions

Utilities

Functions for working with parsed LaTeX

as_LaTeX2() latex2()
Coerce to LaTeX2
latexTag() catcode() envName() `envName<-`() macroName()
Utility functions finding names and types of objects
is_env() is_macro() is_block() is_bracket() is_whitespace() is_text() is_error() is_char()
Test objects
get_contents() set_contents()
Convenience functions to get or set contents of item
drop_items() select_items() drop_whitespace() trim_whitespace() include_whitespace() split_list() split_latex() split_chars() new_block() new_env()
Miscellaneous utilities
reduce_whitespace()
Remove excess whitespace recursively

Miscellaneous

Some more documentation

parseLatex-package parseLatex_pkg
The parseLatex package
LaTeX2range() print(<LaTeX2range>)
Ranges within LaTeX2 lists.
vector_to_latex2()
Convert vector to items
defaultCatcodes
The default "catcodes" used by parseLatex.
get_leftovers()
Retrieve source from beyond the end of the document.
print(<LaTeX2item>) print(<LaTeX2>)
Print methods