Knitr - stop superscript in R Markdown

橙三吉。 提交于 2019-12-12 09:43:46

问题


I need to stop superscript before comma - , or full stop - .. When converting the Rmd file to HTML knitr makes comma superscripted as well. Example:

example.Rmd

MyTitle
========================================================
J.Smith^1, K.John^2, H.Gone^*.

example.html

Let me know if this was asked before, I can't find relevant questions.


回答1:


You may insert HTML tags directly to Markdown documents. To toggle the "superscripting" mode, use sup.

MyTitle
========================================================

J.Smith<sup>1</sup>, K.John<sup>2</sup>, H.Gone<sup>*</sup>.

EDIT: You may also use round brackets to indicate exactly the part of text to be reformatted.

J.Smith^(1), K.John^(2), H.Gone^(*)

EDIT: This has changed for Markdown V2

2^10  
2^(10)  
2^10^  
2^(10)^  



来源:https://stackoverflow.com/questions/23424324/knitr-stop-superscript-in-r-markdown

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!