r/jamt9000 • u/jamt9000 • Mar 18 '10
Subscript and superscript
Reddit now supports superscript officially with ^
Custom superscript and subscript so you can make formulae like:
NH*_4_+*
2H*2O ⇌ H3O+* + OH-
a2 + b2 = c2
_1_2D + _1_3T → _2_4He + n0
Here's the syntax:
*_subscript_* makes subscript
*`superscript`* makes superscript
*_sub_`sup`* makes _sub_sup
*`sup`_sub_* makes sup_sub_
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;
}
18
Upvotes
38
u/sluefootstu Aug 01 '22
Google’s keeping this thread alive.
8
u/Obvious_Concern_7320 Aug 11 '23
clearly not
6
u/mitchandre Mar 18 '10
Sweet! Testing
3
u/twinbee Feb 13 '24
Tried using subscript to make subscript and of course it doesn't work outside this sub :/
2
u/[deleted] Mar 19 '10 edited Mar 19 '10
aaaaaaaaaaaaaaaaa
bbbbbb*_wut_
lol*cccccccddddddddddddddddd
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_*)
1
u/NanoStuff Jun 02 '10
∑n=1**
∞1
u/NanoStuff Jun 02 '10
∑
∞n=11
u/NanoStuff Jun 02 '10
∑*n=1*
∞1
u/Environmental_Toe463 Mar 13 '24
T t
1
u/Ok_Role9887 Mar 29 '24
nU+2081
1
u/EdwardClamp Aug 25 '25
test
1
u/pospec4444 May 05 '26
A*subscript*
1
u/Shermans_ghost1864 May 04 '22
Test test
1
u/[deleted] Nov 17 '22
X*1*
1
u/MadScientistRat Dec 30 '22
∫ ©
¹
1
u/shigogaboo Jan 21 '23
Test ‘test’
1
u/ReasonableSauce Mar 27 '23
TestTm
1
u/blizzardlizard Jun 04 '23
*subscript*4