Hello,

i am using the preamble line proposed in 22.18.1 of
http://wiki.lyx.org/uploads/LyX/LyXMathebefehle/LyXMathebefehle.pdf:

\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}

after loading the hyperref package. 

pdflatex produces several consecutive errors:


Paragraph ended before [EMAIL PROTECTED] was complete.
 cells (See \ref{cap:Floating-Gate-cell}
                                              a) the cell stack is much
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.

and:

Argument of [EMAIL PROTECTED] has an extra }.
 cells (See \ref{cap:Floating-Gate-cell}
                                              a) the cell stack is much
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.


When i remove the line in the preamble, run pdflatex, and after that insert
the line in the preamble again. pdflatex works fine until either the
references are moved or lyx is restarted. 

Whats going wrong?

Thanks in advance.

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

-- 
E-Mails und Internet immer und überall!
1&1 PocketWeb, perfekt mit GMX: http://www.gmx.net/de/go/pocketweb

Reply via email to