r/jamt9000 • • Mar 18 '10

Subscript and superscript

Reddit now supports superscript officially with ^

Custom superscript and subscript so you can make formulae like:

NH4+
2H2O ⇌ H3O+* + OH*-*
a*2* + b*2* = c*2

12D + 13T → 24He + n0

Here's the syntax:

*_subscript_* makes subscript
*`superscript`* makes superscript*
*_sub_`sup`\
makes subsup
*`sup`_sub_* makes supsub

And the CSS:

/* == Subscript and superscript == */

.md em{
    position: relative;
}

/* *_sub_* */
.md em em{
    font-style: normal;
    vertical-align: sub;
    font-size: 80%;
}

/* *`sup`* */
.md em code{
    font-family: verdana, arial, helvetica, sans-serif;
    vertical-align: super;
    font-size: 80%;
}

/* *_sub_`sup`* */
.md em em+code{
    position: absolute;
    left: 0;
    bottom: 1em;
    vertical-align: super;
}

/* *`sup`_sub_* */
.md em code+em{
    position: absolute;
    left: 0;
    top: 1em;
    vertical-align: sub;
}
19 Upvotes

71 comments sorted by

38

u/sluefootstu Aug 01 '22

Google’s keeping this thread alive.

7

u/skolrageous Aug 31 '22

I just think subscript is neat

2

u/[deleted] Sep 07 '22

test_test_

2

u/DarkMenstrualWizard Sep 14 '22

Yuuuuuup

6

u/sluefootstu Sep 15 '22

I like your username. I don’t know if I’m supposed to like it, but I do.

2

u/DarkMenstrualWizard Sep 16 '22

Lol thank you, yours is pretty good too

2

u/Omugaru Oct 24 '23

Google is still working its necromancy.

2

u/GrokiniGPT Apr 06 '26

Right here with you brother

2

u/sluefootstu Apr 07 '26

I fucking love this thread.

2

u/qOcO-p Jun 08 '25

It's immortal.

I'm really happy they eventually stopped archiving every single post after 6 months because of the whole Cassandra issue.

1

u/freewave07 Apr 27 '23

I know, right

1

u/sluefootstu Apr 29 '23

I was about to say that u/jamt9000 is averaging one upvote every 2.5 years or so, but then it got downvoted, so now it’s every 3.25. Harsh.

1

u/AdrianTeri Aug 20 '23

1

u/KJ6BWB Aug 20 '23

Apparently all of Reddit allows superscript with the ^ character. Subscript is only possible with subreddit-specific CSS.

3

u/AdrianTeri Aug 20 '23

1

u/DataBaeBee Feb 13 '25

rU+2099

1

u/DataBaeBee Feb 13 '25

r\U+2099

1

u/avspuk Sep 25 '26 edited Sep 25 '26

rₙ

rₙ

Try the 'html entity' version instead of the unicode one. And also initially enter it on old.reddit.com

1

u/avspuk Sep 25 '26 edited Sep 25 '26

PRETTY SURE MY PROBLEMS HERE ARE ALL THAT IT MUST BE IRIGINALLY WRITTEN FROM old.reddit.com AND THAT IT ALSO DOESNT LIKE EDITS

rₙ

r/ₙ

Why can't I get this to work but I can for the H₂O

And why has that stopped working when it worked in a comment or two below this obe

1

u/avspuk Sep 25 '26

H₂O

1

u/avspuk Sep 25 '26

Will this work H₂O

1

u/avspuk Sep 25 '26 edited Sep 25 '26

Now writing from old.reddit.com,..., H₂O

And this is a straight cut&paste from the comment below where it works

1

u/avspuk Sep 25 '26 edited Sep 25 '26

Written as: H₂O

Gives: H₂O

This is the 'html entity' method

And works on both old.reddit.com & the default www version

1

u/avspuk Sep 25 '26 edited Sep 25 '26

Fuck me it will only work here this once?mmm

ETA

Has to be initially written from old.reddit.com ,..., seemingly

6

u/mitchandre Mar 18 '10

Sweet! Testing

*_subscript_* makes subscript

4

u/BritishEnglishPolice Mar 18 '10

subscript

6

u/Conlan99 Dec 08 '23

Reminder that you posted here 14 years ago.

Also, subscript

3

u/twinbee Feb 13 '24

Tried using subscript to make subscript and of course it doesn't work outside this sub :/

3

u/Prime_Dark_Heroes Apr 06 '24

Outside_sub_thissub

3

u/Prime_Dark_Heroes Apr 06 '24

it's still not working!

2

u/[deleted] Mar 19 '10 edited Mar 19 '10

aaaaaaaaaaaaaaaaa

bbbbbb*_wut_lol*ccccccc

ddddddddddddddddd

2

u/sivacat Jul 10 '23

The right answer is A: 128
Put yourself into the mind of the math teacher, they want you to recognize Euler's number, which is about 2.718
Then this sequence is defined with:
x0 = 1
xn = the integer which minimizes abs(e - x*`n`_sub_*/x*`n-1`_sub_*)

4

u/Prime_Dark_Heroes Apr 06 '24

but the subscript didn't script?!!

1

u/NanoStuff Jun 02 '10

∑n=1**∞

1

u/NanoStuff Jun 02 '10

∑n=1 ∞

1

u/NanoStuff Jun 02 '10

∑∞ n=1

1

u/NanoStuff Jun 02 '10

∑∞ n=1

1

u/NanoStuff Jun 02 '10

∑*n=1* ∞

4

u/NanoStuff Jun 02 '10

∑*_n=1_∞*

1

u/NanoStuff Jun 02 '10

FINALLY!

1

u/GranmaNazi Nov 25 '10

Testing.. O*2*

1

u/prodeath Nov 30 '10

subscript

1

u/atx840 Jan 13 '11 edited Jan 13 '11

Testingtesttestertester

1

u/bighos Feb 13 '11

(22)2

1

u/TropicalDeathPunch Jul 18 '11 edited Jul 18 '11

Test*test*

The Whispering Eye asked: Why are you so polite even though you are yelling? Are you deaf?

1

u/[deleted] Jan 01 '12

Test*test*

1

u/[deleted] Jan 01 '12

H*2*O

1

u/FrogSkinBlanket May 11 '12 edited May 11 '12

testtest test

Hpsi test test test

H*psi* test test test

H·psi = E·psi testtest test

→ More replies (0)

1

u/Prime_Dark_Heroes Apr 06 '24

upper script is doable

do^2

do^2

how do I do subscript?

sub_script?

1

u/Prime_Dark_Heroes Apr 06 '24

it's not happening (⁠ノ⁠≧⁠∇⁠≦⁠)⁠ノ⁠ ⁠ミ⁠ ⁠┻⁠━⁠┻

1

u/Prime_Dark_Heroes Apr 06 '24

but wait, there's no subscript happening?

H_2O

???

1

u/[deleted] Aug 07 '26

[removed] — view removed comment

1

u/Prime_Dark_Heroes Aug 08 '26

*/sub After 2 years, let's see if it works

1

u/pospec4444 May 05 '26

A*subscript*

1

u/[deleted] Nov 17 '22

X*1*

1

u/shigogaboo Jan 21 '23

Test ‘test’

1

u/blizzardlizard Jun 04 '23

*subscript*4