Post by Diego QueirozPost by Diego QueirozHere is the ticket for this problem.
http://www.lyx.org/trac/ticket/7550
<http://www.lyx.org/trac/ticket/7550>
---
Diego Queiroz
On Wed, May 11, 2011 at 10:35 AM, Diego Queiroz<queiroz.diego <at>
Post by Julien RiouxYes I'm sure.
Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious
name for the command to prevent a conflict like this.
However, the command \subref is defined by LyX only when you use the
<Formatted reference>. Since I don't use this type of cross-reference, there
is no problem with my ERT.
I'll create a ticket for this.
Cheers,
---
Diego Queiroz
Thanks
Hello all,
The info above is quite useful. However, for some reason I can't even get it to
work with an ERT. (I'm new to LyX, so sorry if I'm making an obvious mistake)
The part of the latex code related to the caption with the ERT code inside is:
\caption{Some text.\subref{fig:Single Point 2D Trajectory with Uncertainty
Ellipsoid}
This is a subfig}
\end{figure}
Basically I get bracket mismatch errors.
----------------------------------------------
This is a subfig}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
-------------------------
This is a subfig}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
----------------------------------------------
Thanks,
Aidin