Closed phgrosjean closed 1 year ago
Thank you for that, your solution has been used!
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
In an R Markdown document, I have this chunk:
then, I knit to PDF. The super- and subscripts are rendered with same font size as normal text. This is wrong: they should be smaller.
The culprit is (in the .tex file), a call to
\fontsize{}
after\textsuperscript{}
, like:{\textsuperscript{\fontsize{11}{11}\selectfont{script}}}
. This should be\fontsize{}
first and\textsuperscript{}
in second, like:{\fontsize{11}{11}\selectfont{\textsuperscript{script}}}
. When I do this change manually in the .tex document generated by knitr, the super- and subscripts are correctly rendered in the PDF.I use R 4.2.3 and {flextable} 0.9.2.