Hello Everyone. I use lyx for some years, and use some (very few) advanced features. By now I intend to create a command to create a list of simbols in abnt style. So I wrote this in the preamble, for testing reasons only.
\newcommand{\simbolo}[2]
{
\ifthenelse{\equal{#1}{}}
{Then1}
{Else1}
\ifthenelse{\equal{#2}{}}
{Then2}
{Else2}
}
And in plain latex I would use:
...a vector defined in \simbolo{$R^{n}$}{Euclidian Space of dimension n} is ...
wich works as expected.
But in lyx, I had found out that if I insert a ert (wrote ert in <> and the
text in $$ is inserted with lyx math mode):
...a vector defined in <\simbolo{> $R^{n}$ <}{> Euclidian Space of
dimension n <}> is ...
I got errors. It seens that lyx automatically close the braces with an }, so I
had to write
...a vector defined in <\simbolo{> $R^{n}$ <{> Euclidian Space of dimension
n is ...
I got no errors, but the resulting latex is:
...a vector defined in \simbolo{$R^{n}$}{Euclidian Space of dimension n is ...}
This is not what I want since I would like to close the description of R^n (it
will appear only in the list of symbols) and continue with the normal text flow
in the same line.
Do you have any suggestions?
--
Carlos Eduardo de Brito Novaes
signature.asc
Description: This is a digitally signed message part.
