On 2011-03-30, Andrew Steele wrote:
> I am trying to use the package siunitx for correct typesetting of SI
> units with LyX. However, I run into a problem when attempting to enter
> a number with units in math mode.

> In LaTeX, one would enter

> $a = \SI{50}{\metre\per\second\squared}$

> However, in LyX, the second set of curly braces does not seem to be
> associated with the initial command, which leads to them being escaped
> with backslashes

There are two ways around this problem:

a) Write a = \SI{50}{\metre\per\second\squared}, highlight and press
   Ctrl-M.
   
b) Write \{ when you want a non-escaped {
   (LyX switches the input convention of literal and grouping bracket).
   
Günter   

Reply via email to