Skip to content

Instantly share code, notes, and snippets.

@molomby
Last active December 19, 2023 19:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save molomby/671bf5225274d34bd1297534598fd52d to your computer and use it in GitHub Desktop.
Save molomby/671bf5225274d34bd1297534598fd52d to your computer and use it in GitHub Desktop.
Superscript and Subscript in LaTeX for GitHub

Superscript and Subscript in LaTeX for GitHub

Experimenting GitHubs new LaTeX support to render superscript and subscript.

You can create mathematical expressions including superscript, eg:

$$e^{-\frac{t}{RC}}$$

But you can also put plaintext into superscript, inline $^{like\ this\ and\ ^{then\ go\ smaller}\ ^{if\ you\ want}}$. Subscript works the same but with _ instead of ^ and looks $_{like\ this}$.

@r0bis
Copy link

r0bis commented Mar 30, 2023

$_subscript$ normal text

@r0bis
Copy link

r0bis commented Mar 30, 2023

$_{subscr}$ and normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment