Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.07 KB

File metadata and controls

25 lines (19 loc) · 1.07 KB

LaTeX Node

The LaTeX Node is designed for the direct embedding of mathematical formulas, equations, or complex typesetting commands into the final report.

Field Type Description Default Value

id

string

Optional. Identifies the LaTeX node within the report. Used for internal cross referencing

null

is_equation

boolean

Optional. Indicates if the LaTeX content represents a standalone equation. It adds \begin{equation} and \end{equation} around the content if true.

false

type

string

Must be set to "latex".

"latex"

latex

string

The raw LaTeX content (e.g., a mathematical equation or a custom LaTeX block).

Required

ref

string

The name of the data field to reference for dynamic placeholder resolution.

null

Example

This example demonstrates including a multi-line equation and an inline mathematical expression.

{
  "type": "latex",
  "latex": "\\begin{equation*}\n  \\nabla \\cdot \\mathbf{E} = \\frac{\\rho}{\\epsilon_0}\n\\end{equation*}\n\nAn inline expression is also supported, such as $E=mc^2$."
}