$...$ in the text, $$...$$ alone on its line. A dollar that does not
open an equation stays a dollar. Equations need the package 'equatags' and
R >= 4.3; without them, their LaTeX source is written, with a warning.m^2^, H~2~O.element_md() can be used for all texts of a plot: axis tick labels,
labels of colour bars, polar axes, and the whole theme with
theme(text = element_md()).as_paragraph_md() is vectorised, as flextable::as_paragraph(): each
element gives the paragraph of a row, so that a column of markdown can be
used in flextable::mk_par(). A vector gave one paragraph with all its
elements.default_text_props() has new arguments bold and italic.These changes move or resize existing texts slightly.
lineheight is only applied between lines, as in 'ggplot2'.element_chunks() takes its size, font,
colour and face for the chunks that do not set them, geom_text_md() and
geom_label_md() their default size, font, colour and fill. When the theme
has no font family, munch uses the font of
flextable::set_flextable_defaults().element_md() and element_chunks() are S7 elements extending
ggplot2::element_text(), as the elements of 'ggplot2' 4.0. Their arguments
do not change; code_font_family and width default to NA (unset).cairo_pdf() gives a warning on Windows, where it draws text without
kerning. Use 'ragg' instead.Texts made with element_md() or element_chunks() are now placed as with
element_text():
hjust;angle = 45) are rotated
around their anchor;vjust in a cell higher than them: legend labels were
drawn at the bottom of their row, below their key;guide_axis(angle =) are
applied;theme(axis.text = element_md()) applies to axis.text.x and
axis.text.y.Other fixes:
facet_grid(), had the width of their length: the strips were too wide.geom_text_md() with an angle drew the text away from its point.nudge_x and nudge_y were ignored by geom_text_md() and
geom_label_md().element_md() ignored its argument face (#4).width and hjust > 0 texts were shifted to the right.flextable::as_equation() were dropped by
chunks_grob() and element_chunks().as_paragraph_md() with an image gave a paragraph that 'flextable'
refused. An image that can not be read is now dropped with a warning.as_paragraph_md() and
draws them in flextable::gen_grob(), used with 'patchwork'.element_md() and element_chunks() have a new argument width to set the
maximum width of the text. Use it with 'patchwork' or with a fixed aspect ratio
to get titles with the right height (see below).element_md() or element_chunks()
could have their first lines cut at the top of the plot: their height was
computed for the width of the plot instead of the width of their column. It is
now computed for the width they are drawn with. With 'patchwork' or a fixed
aspect ratio, this width is not known in advance: set width in these cases.flextable::layout_lines(), so that rich
text wraps the same way in 'munch' and in 'flextable'.= 0.5.3.
element_md() and element_chunks() no longer ignore plot.tag.position and
plot.tag.location (#1).