format.equation: Format 'LaTeX' equations

View source: R/print.R

format.equationR Documentation

Format 'LaTeX' equations

Description

Format 'LaTeX' equations built with extract_eq.

Usage

## 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.


equatiomatic documentation built on May 29, 2024, 1:19 a.m.