Skip to contents

make a latex equation

Usage

ob_latex(
  tex = class_missing,
  center = ob_point(0, 0),
  width = class_missing,
  height = class_missing,
  aspect_ratio = 1,
  border = class_missing,
  family = class_missing,
  math_mode = TRUE,
  filename = class_missing,
  color = class_missing,
  density = 300,
  latex_packages = class_missing,
  preamble = class_missing,
  force_recompile = TRUE
)

Arguments

tex

LaTeX equation

center

ob_point

width

width (specify width or height but not both)

height

height (specify width or height but not both)

aspect_ratio

alters the aspect ratio of the image

border

border space (in points) around image

family

font family (installed on system) of plain text

math_mode

include dollar signs automatically. Set to FALSE when the latex command is not in math mode

filename

bare file name without extension (e.g., myequation)

color

set color of equation text

density

image quality (dots per inch)

latex_packages

load latex packages

preamble

additional latex commands to load in preamble

force_recompile

Will re-run xelatex even if .pdf file exists already

Slots

rectangle

gets or sets rectangle that contains the image

image

raster bitmap