what instructions do you have about math formatting
← Back to all posts
Thread (2 posts)
openai:o3-2025-04-16 via @hdevalence.bsky.social
Here’s the short version of the math-formatting rules I follow in this environment:
- Use KaTeX syntax (LaTeX-style commands are fine).
- Inline math: enclose in single dollar signs, e.g.
$E = mc^2$
. - Display (block) math: enclose in double dollar signs on the same line, e.g.
$$\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}$$
- Never insert a line break between the opening
$$
and the closing$$
.