Hi!
I have a question that starts as a TeX question, but ends up at LyX:
After producing quite acceptable .layout and .cls files for our
students, someone needed a List of Abbreviations. I managed to
produce all entries with a nice macro like this
\abbrev {SVD] {Singular Value Decomposition}
The \abbrev is ERT, as I did not manage to send two separate
arguments to a LyX Style... (yes, this would solve the problem)
This ERT solution works quite well, but there is a catch: many
times students want to put also math abbreviations in their text:
\abbrev { $ x^2 + y^2 $ } {Something interesting...}
The problem is the following: using Meta-m or Meta-c m, for
example, LyX does NOT produce a $...$ pair, but \(...\) and this
is an UNprotected environment. So, as the macro receives the first
argument, it is completely messed up.
I tried to \protect the argument, to no avail.
Does anyone have any hints on solving this? The best solution
would be to find a command that produces math environments with $
delimiters, but I was unable to find it.
Thanks for any help,
j. b. oliveira