Macro Reference

LaTeX Block Equations (Display Math)

LaTeX Block renders display math (centered equations).

Best for

  • Complex formulas
  • Multi-line aligned equations
  • Matrices and cases
  • Technical specs and analytics docs

Key input rule

Enter raw LaTeX only.


LaTeX Block Editor Guide

Editor layout

  • Source (left): raw LaTeX
  • Preview (right): rendered display equation

What to type (examples)

Good:

  • \\frac{a}{b}
  • \\int_0^1 x\\,dx
  • \\begin{aligned} ... \\end{aligned}

Saving

Click Save/Publish to render on the page.

Quick checklist for successful rendering

  • Check braces {} are balanced
  • Ensure every \\begin{...} has a matching \\end{...}
  • Test simple → then add complexity

Formatting & Best Practices

Prefer aligned for multi-step math

\begin{aligned}
f(x) &= x^2 + 3x + 2 \\
f'(x) &= 2x + 3
\end{aligned}

Use spacing for readability

\int_0^1 x \, dx

Label expressions using \text{...}

\begin{aligned}
\text{Precision} &= \frac{TP}{TP+FP} \\
\text{Recall} &= \frac{TP}{TP+FN}
\end{aligned}

Keep long derivations readable

  • Split across multiple lines
  • Use multiple macros if the derivation becomes too dense
  • Add a short caption above the macro explaining what the equation represents

Block Viewer Controls

Controls appear when hovering over the rendered equation.

Edit

Open the modal editor to update LaTeX source.

Copy Source

Copies raw LaTeX to clipboard (useful for reuse across docs).

Comments & Reactions

  • View comments - see any comments left on the equation block
  • Add a comment - leave feedback or context directly on the block
  • Add a reaction - add an emoji reaction to the equation block