Changelog
Source:NEWS.md
parseLatex 0.3.0
CRAN release: 2025-02-20
- Added
stdbool.h
to the includes for compatibility with oldergcc
. (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
anddefenv
toparseLatex()
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
toparseLatex()
, to attempt to recover after a parsing error. This may help with diagnosing the error. The error will be wrapped in anERROR
tag which is displayed as>>>text causing error<<<
.
parseLatex 0.2.0
- Added
find_sequence()
,set_contents()
. - Add
DEFINITION
tag to allow\begin
etc. to be temporarily ignored. This allows parseLatex to parse\newenvironment
and related macros that create definitions. -
parseLatex()
now stops parsing after\end{document}
just as LaTeX does. Theget_leftovers()
function can retrieve the unparsed text. - Added support for “magic comments”. See the vignette for details.
-
verb
macros now allow embedded braces as long as they are balanced.