| latex_dims | R Documentation |
Get dimensions of a LaTeX expression
latex_dims(
tex,
math_font = "",
max_width = 0,
tex_style = "",
input_mode = c("mixed", "math"),
render_mode = c("typeface", "path"),
gp = grid::gpar()
)
tex |
Character string of LaTeX math code. |
math_font |
Name of the math font to use (e.g., |
max_width |
Numeric maximum width in big points for automatic
line wrapping. Use |
tex_style |
Character: TeX style override. One of |
input_mode |
How |
render_mode |
Character string: |
gp |
Graphical parameters (see |
A list with the following elements:
width, height, depth: grid unit objects
in big points. height is total height (ascent + descent).
baseline: grid unit object giving the baseline position
measured in big points from the bottom of the bounding box.
Equivalent to height - depth for single-line formulas. Useful
for aligning a formula's baseline with surrounding text.
is_split: logical; TRUE if the formula was wrapped
across multiple lines (only possible when max_width > 0).
latex_dims("\\frac{a}{b}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.