Skip to content

v0.4.1

Latest

Choose a tag to compare

@dmurdoch dmurdoch released this 06 Jun 17:08
· 3 commits to main since this release

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.