Recent Releases of parseLatex

parseLatex - v0.4.1

parseLatex 0.4.1

  • Added row_to_vector().
  • Added is_text() and is_error().
  • Added showErrors(), and changed the formatting of errors in deparseLatex(). parseLatex(recover = TRUE) now calls showErrors() rather than generating warnings.
  • Fixed some parsing bugs related to error recovery.
  • Sequences of spaces and tabs and sequences of linebreaks are each collected into single items containing the full sequence of characters.
  • Deparsing of SPECIALs has been improved.
  • Added trim_whitespace(), envName()<-, find_block() and insert_values() to help with kableExtra support.
  • Added support for tabu tables.
  • Added is_char(), find_caption(), drop_caption(), path_to_caption(), get_range().
  • drop_items() now works on LaTeX2Item lists.
  • tableRow() by default ignores \pagebreak and \nopagebreak. The new argument withExtras allows it to include these and other extras before the line in the result. withData allows it to exclude the data. find_tableRow() and tableRow<- have similar modifications.
  • find_rule() and rule() now remove the final whitespace from the result.
  • Added columnOption() and columnOption<-() functions.
  • Added new_env(), similar to new_block().
  • Added split_chars(), usually used to split text or whitespace into individual characters.
  • Constants for the TeX catcodes are now exported, e.g. NEWLINE.
  • The find_* functions now have an all argument, to allow the search to be stopped at the first success, and a path argument, to control the form of the return value.
  • Added ITEMLIST and PLACEHOLDER LaTeX tag values. These are used internally to organize long lists of items, e.g. to allow the rows of a table to be indexed directly.
  • Fixed bug in parseLatex() in handling $ within a definition.

- C
Published by dmurdoch about 1 year ago

parseLatex - v0.3.0

parseLatex v0.3.0

  • Added stdbool.h to the includes for compatibility with older gcc. (Thanks to Dirk Eddelbuettel for the report and PR #2).
  • Added a configure script to check for bison (on Unix-alike only).
  • Adjacent math environments were treated as a syntax error.
  • \let is now handled the same way as \def: the next two tokens are not considered for evaluation.
  • Added arguments defcmd and defenv to parseLatex() to allow the user to specify defining macros. These names are also now allowed in the magic comments.
  • Spaces between a verb macro and its argument caused the parsing to be incorrect.
  • Added argument recover to parseLatex(), to attempt to recover after a parsing error. This may help with diagnosing the error. The error will be wrapped in an ERROR tag which is displayed as >>>text causing error<<<.

- C
Published by dmurdoch over 1 year ago

parseLatex - First release: 0.2.1

This is the first release on CRAN!

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.

- C
Published by dmurdoch over 1 year ago