Size of a LaTeX expression
Arguments
- tex
LaTeX, as a character string.
- math_font
Math font:
"lete"(Lete Sans Math, the default),"stix"(STIX Two Math), or one added withload_math_font(). Seeavailable_math_fonts().- max_width
Width in big points (1/72 inch) at which lines wrap.
0, the default, does not wrap.- tex_style
Force a TeX style:
"display","text","script"or"scriptscript"."", the default, follows the delimiters. See Details.- input_mode
How
texis read:"mixed"(default): text, with math between$...$or\(...\). A newline starts a new line."math": everything is math; write text in\text{}."document": a LaTeX document body, with paragraphs, numbered headings and displayed equations. Use it withmax_width.
- render_mode
"typeface"(default) draws glyphs as text, which can be selected in PDF and SVG output. It needs a device such as ragg, svglite orgrDevices::cairo_pdf(), and falls back to"path"on others, such aspdf()."path"draws glyphs as outlines, which works on every device.- justify
If
TRUE, wrapped lines are stretched to fillmax_width, except the last. Needsmax_width.- line_break
"greedy"(default) fills one line at a time."optimal"chooses the breaks for the whole paragraph. Needsmax_width.- gp
Graphical parameters from
grid::gpar():col,fontfamily,fontsize,cexandlineheight. See Details.