equation_size() measures equations (width, height and
depth) without drawing them and without a graphic device, for example to
size a table cell or an image before the document is written. The
results are the same on every machine and close to what Word
displays.equation_grob() draws an equation in a ‘grid’ graphic,
for example in a ‘ggplot2’ plot (R >= 4.3).?equation_size. An equation
that can not be measured gives NA with a warning.display of
transform_mathjax() was ignored and every equation was
displayed as a block (limits above and below sums, larger fractions).
Use display = TRUE to get the previous result.|x|, \lvert x \rvert,
\left| x \right| and \|x\| are displayed as
delimiters, no longer spaced as the relation “divides”;\\, \newline) are kept:
a + b \\ c was displayed as a + bc;\overlinesegment and \underlinesegment no
longer show the word “undefined”;\int x\,dx,
\sum x) are larger in an equation displayed alone, as with
limits;\big|, \Big|… are no longer spaced as the
relation “divides”.\text{ab},
no longer fail.\label{...}, as written by
equatiomatic::extract_eq(label = ), is ignored instead of
causing an error.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.