Format 'LaTeX' equations built with extract_eq.

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

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.

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.