Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Markdown code for subscripts and superscripts

Tags:

r

I want to display b3* in R Markdown with 3 being a subscript and * being a superscript on the same vertical level? my code:

b*~3~
like image 605
patite Avatar asked Feb 25 '26 20:02

patite


1 Answers

This should work:

$b^*_3$

Result after knitting to pdf:

enter image description here

like image 65
Jeremy K. Avatar answered Feb 27 '26 10:02

Jeremy K.