Intermediate .tex file during 'Convert' differs from manual export, causes problems

Jürgen Spitzmüller spitz at
Thu Jun 11 12:13:34 UTC 2020

Am Donnerstag, den 11.06.2020, 12:59 +0200 schrieb Alexander:
> Thx for first suggestions, but isn't the real point, that LyX does
> different .tex exports, depending on if it is an intermediate
> temporary file, or manually done?
> Shouldn't it be always the same, or shouldn't there at least be a
> possibility to force the one or other option?

The reason for the difference is this commit:

commit e798db5739871aaa29f95de321c52f19058064c9
Author: Guillaume Munch <gm at>, Mon Oct 10 16:52:32 2016 +0200
(vor 3 Jahren, und 8 Monaten)
Committer: Guillaume Munch <gm at>, Sat Oct 22 22:39:33 2016 +0200
(vor 3 Jahren, und 8 Monaten)
Follows: 2.2.0
Precedes: 2.3.0alpha1
Branches: <Expand>

Safe line break to increase precision of error reporting in Listings

So apparently the %\n improves error messages in Listings (which are
only relevant to batch export).

> If I only new at least which kind of .tex export mode LyX uses for
> intermediate files, I would at least know where to try more tuning of
> its behavior.

The converter flag "nice" will get you the LaTeX file which is also
used for export.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the lyx-users mailing list