transform_mathjax(to = "mml")), equations are now
displayed inline by default, as documented: the argument display was
ignored and every equation was displayed as a block (limits of sums above and
below, larger fractions). Use display = TRUE to keep the previous result.equation_size() gives the width, height and depth of equations written in
LaTeX, without drawing them and without a graphic device. Use it to size a
cell, a column or an image before the document is opened. The result is the
same on every machine, and close to what Word displays with the same font
(see "Differences with Word and browsers" in ?equation_size).equation_grob() draws an equation in a 'grid' graphic, for example in a
'ggplot2' plot (R >= 4.3).\left( \right), accents, braces, arrows,
frames, colours and most other constructs of 'KaTeX' are supported (see
?equation_size). An equation that can not be measured gives NA with a
warning.|x|, \lvert x \rvert,
\left| x \right|, \|x\|) were spaced as the relation "divides": they are
now displayed as delimiters.transform_mathjax(to = "mml") failed on texts made of ASCII characters
only, such as \text{ab}.transform_mathjax() has a new argument rpr to set the run properties of
'Office Open XML Math' equations, such as their size or color: a <w:rPr>
element for 'Microsoft Word' or an <a:rPr> element for 'Microsoft
PowerPoint'. Without it, equations get the default size of the document.These fixes concern the 'Office Open XML Math' output (to = "mml") used in
'Microsoft Word' and 'Microsoft PowerPoint':
\left( \right), now
stretch to the height of their content. They kept the height of a single line.\quad and \qquad are now written as spaces. They were dropped.\, or \; are no longer written as normal text.transform_mathjax() has a new argument strict ("ignore" by default) to
turn off the warnings issued when equations contain accented characters.transform_mathjax() has a new argument display to generate display or
inline equations.display = FALSE). They used
to be generated in display mode only.tools::R_user_dir() is now used instead of rappdirs::user_data_dir(), as
required by the CRAN policy.