Broken document

Udicoudco udifoglle at gmail.com
Wed Mar 15 14:54:34 UTC 2023


On Wed, Mar 15, 2023 at 10:57 AM Daniel <xracoonx at gmx.de> wrote:

> Hi!
>
> I somehow managed to break one of my documents and cannot see where the
> problem is. I have attached a minimal example that I produced after a
> longer error hunt (because LyX did not give me helpful error feedback on
> this).
>
> Does someone have an idea how the error occurred or how I might be able
> to fix it?
>
> The LaTeX error message does not tell me much and LyX did not even point
> me to the position in the document where the error occurred.
>
> --- LaTeX Error ---
>
>      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.
>
> --- End ---
>
>
>
You get the error because you load amsmath (it is loaded via newtxmath)
before refstyle. See the attached .tex file which produces the same error.
If you will load newtxmath via Document->Settings->Latex Preamble and set
the Math Font in Document->Settings->Fonts->Math to automatic, there will
be no error (see the attached LyX file)

Regards,
Udi

> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230315/15b759ff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refstyle-amsmath.tex
Type: application/octet-stream
Size: 130 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230315/15b759ff/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.23.lyx
Type: application/lyx
Size: 2340 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230315/15b759ff/attachment.bin>


More information about the lyx-users mailing list