superscript and subscript the same character in an expression

后端 未结 2 1672
夕颜
夕颜 2021-01-14 05:40

In a plot I would like a title which should have:

the string \"my title is\" followed by the caharecter alpha raised by \' (i.e. alpha prime) with alph

相关标签:
2条回答
  • 2021-01-14 06:11

    Either of the following would do the trick:

    alpha[G]^"'"
    {alpha^{"'"}}[G]
    

    They are typeset slightly differently, so pick whichever you prefer.

    0 讨论(0)
  • 2021-01-14 06:32

    Changing the syntax to the following works:

    expression(paste("my title is ",alpha[G]^{"'"},")")))
    
    0 讨论(0)
提交回复
热议问题