Broken document

Eckhard Höffner eckhard.hoffner at gmail.com
Wed Mar 15 13:43:39 UTC 2023


Yes. That's part of the log file:

Package refstyle Info: \eqlabel created on input line 526.

Package refstyle Info: \eqref created on input line 526.

! Argument of \eqref has an extra }.

<inserted text>

\par

l.526 lsttxt = \RSlsttxt}

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.

Runaway argument?

! Paragraph ended before \eqref was complete.

<to be read again>

\par

l.526 lsttxt = \RSlsttxt}


The log file says, that there is something wrong here, but I don't see 
any problem:

%%-- TEMPLATE FOR EQUATIONS ---------------------
\newcommand*{\RSeqrefform}[1]{\textup{(\ref{#1})}}
\@ifpackageloaded{amsmath}%
    {\let\AMSeqref\eqref
     \let\eqref\relax}%
    {}
\newref{eq}{%
    name      = \RSeqtxt,
    names     = \RSeqstxt,
    Name      = \RSEqtxt,
    Names     = \RSEqstxt,
    refcmd    = \RSeqrefform{#1},
    rngtxt    = \RSrngtxt,
    lsttwotxt = \RSlsttwotxt,
    lsttxt    = \RSlsttxt}
\let\RSeqref\eqref
\let\eqref\relax
\AtBeginDocument{%
    \@ifpackageloaded{amsmath}%
       {\RS at ifundefined{AMSeqref}{\let\AMSeqref\eqref}{}%
        \let\RSeqrefform\AMSeqref}%
          {}%
      \let\eqref=\RSeqref
    }
%%-- TEMPLATE FOR FIGURES -----------------------





Am 15.03.23 um 14:34 schrieb Daniel:
>
> But then the error should be reproducible, right? Axel could not. 
> Could you?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230315/d8c26dab/attachment.html>


More information about the lyx-users mailing list