Mark Davies
Mark Davies

Reputation: 940

rmarkdown greek letters not rendered in maths mode if followed by numbers

I want to produce TGF-β1 in an rmarkdown document.

Usually I would do this: TGF-$\beta$1 but that produces TGF-$$1 when rendered to word, or enter image description here when rendered to pdf.

The problem seems to be the 1 after beta. I don't have this problem if it's followed by a letter, e.g. TGF-$\beta$a gives TGF-βa

I can get around this by including the 1 in the maths mode: TGF-$\beta1$ produces TGF-β1

My problem with this is that, in pdf output, the 1 inside the mathmode has a different appearance to a standard text 1:

TGF-$\beta1$

TGF-$\beta$ 1

enter image description here

I appreciate this is pedantic, but is there a way around this?

Upvotes: 0

Views: 207

Answers (0)

Related Questions