Code

KaTeX Formula Alignment Rules

In 1Cademy, mathematical formulas must always be wrapped in double dollar signs (...). Single dollar signs (``) must not be used as they can cause parsing errors across paragraphs.

Centered Formatting

A formula wrapped in ... renders centered if and only if it is on its own line, with no other characters or whitespace before the opening or after the closing on that line. Example:E=mc2E = mc^2### Inline & Left-Justified Formatting If any character, including whitespace, shares the line with the formula, the formula will render inline/left-justified: Example (with a leading space on the line): $E = mc^2$$

0

1

Updated 2026-06-12

Tags

1Cademy