Skip to content

Instantly share code, notes, and snippets.

@sohang3112
Last active December 19, 2025 08:53
Show Gist options
  • Select an option

  • Save sohang3112/9228825c4a688e2edb3592fb92babaae to your computer and use it in GitHub Desktop.

Select an option

Save sohang3112/9228825c4a688e2edb3592fb92babaae to your computer and use it in GitHub Desktop.
Notes on MathJAX (a Latex-like mini language using which pretty math expressions can be embedded in Github Markdown documents)

MathJAX NOTES

Here we specifically mean MathJAX embedded inside Github Markdown only, not in any other context.

Inline expressions are written within $ $, block expressions within $$ $$. Curly Brackets { } are required for grouping multiple symbols where otherwise only a single character/symbol is expected

  • eg. after _ (superscript under) and ^ (power/subscript over).

Notably MathJAX rendered by ChatGPT is a slightly different dialect - eg. it uses ( ) delimiters for inline expressions and [ ] for block expressions.

Some common usages are:

Command MathJAX Code Rendered Output Description
\limits $\min\limits_{x,y} f(x,y)$ $\min\limits_{x,y} f(x,y)$ Put limits directly under previous symbol \min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment