> In what language is the document? Does changing the language help? I
> ask that because french may make the : character active and cause
> problems...
The document is written in French.
But I managed to fix that error, at the price of my document getting a little
mangled up. read on.
I exported the file as LaTeX and I looked at the code. The paragraph giving
the error started like this.
\subsubsection{{}``Transversalit�''}
Dans un premier temps, regardons ce qui se passe dans l'eq.
\prettyref{eq:Hdiscret} si nous choisissons un vecteur
$\mathbf{H_{G^{\prime}}}$qui est parall�le
I don't think there were supposed to be 2 empty brackets before
"Transversalit�". but before changing anything I just tried importing the tex
file back in, to see if I get the same thing back.
I don't.
My document got mangled up pretty bad. Title page got replaced with an ERT
grey box that contains the LaTeX code and the text for the title page, but
does not show when I visualise. Also my first section, my introduction, got
replaced by a similar grey ERT box with the introduction code and text in it,
and this one DOES show up when I visualize.
Lesson learned: when you export a file don't expect to import the same thing
back in, even if it's unchanged.
I tried removing the extra brackets but it does not seem to make any
difference now. The prettyref seems to be happy now. But I'm not happy.
here is a feature request:
when importing a file that has the same name with an existing lyx file, do not
wipe out the old file until I actually hit "save". Maybe the user is thinking
about wiping out the old file, but wants to check the imported file is OK
before overwriting the old one. Does that make any sense? I am saying I want
to import a file like report.tex, without losing the file report.lyx in the
same directory, not until I hit "Save" at least.
That would be real nice to protect against mangled up imports.
Alex.