On 8/16/2012 9:25 PM, Michael Bach wrote:
Dear LyX Users and Developers,today I tried to use the knitr (Rnw) module successfully when accessed from Insert > Custom Insets > S/R expression. When I tried to do that in inline math via \Sexpr{0.5^2} then the display becomes 0.5² meaning that LyX correctly thinks I want LaTeX-ish 0.5^{2}, but R will choke on that literal "{" in there.
Ok I found a workaround for my specific issue, which is to use the alternative \Sexpr{0.5**2} for the exponent.
Sorry for the noise, but suggestions / ideas are welcome anyway.
