Learn R Programming

equatiomatic (version 0.3.6)

format.equation: Format 'LaTeX' equations

Description

Format 'LaTeX' equations built with extract_eq.

Usage

# S3 method for equation
format(x, ..., latex = knitr::is_latex_output())

Value

A character string with the equation formatted either as proper LaTeX code, or as a display equation tag (surrounded by $$...$$) for R Markdown or Quarto documents.

Arguments

x

'LaTeX' equation built with extract_eq

...

not used

latex

Logical, whether the output is LaTeX or not. The default value uses knitr::is_latex_output() to determine the current output format.