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

Mike Reeks mike.reeks at
Thu Jun 11 12:44:26 UTC 2020

Thankyou for the feedback but it just sounds like a dialogue between  Alexand and Jurgen. I am not sure but are you are referring to something within the software of  Lyx and therefore a bug. From what you are saying  its with a temp file that’s created during the conversion. So can you explain why this error is occurring now and not before. What do you suggest I do? Is it a bug that’s just appeared in the lyx I have installed and not generally  the case. So maybe you would suggest reinstalling  lyx 2.2 or the most recnt version. Grateful for you feedback
Useful if you could include me explicitly in your discussion.

Sent from Mail for Windows 10

From: Alexander
Sent: 11 June 2020 11:59
To: lyx-users at
Subject: Re: Intermediate .tex file during 'Convert' differs from manualexport, causes problems


On Thu, 11 Jun 2020 12:30:19 +0200
Jean-Marc Lasgouttes <lasgouttes at> wrote:

> Le 11/06/2020 à 12:28, Jürgen Spitzmüller a écrit :
> > Am Donnerstag, den 11.06.2020, 11:50 +0200 schrieb Alexander:  
> >> The intermediate .tex temp file created by LyX, during exporting to
> >> markdown, has the two lines
> >> --
> >> \begin{lstlisting}%
> >> [language=Python]
> >> --
> >> which in the final markdown file look like
> >> --
> >>      %
> >>      [language=Python]  
> > 
> > Since this is perfectly valid LaTeX it strikes me a pandoc bug. I
> > suggest you file a report at
> > 
> > As for the export, you could add an intermediate script that
> > transfers
> > 
> > }%
> > [
> > 
> > to
> > 
> > }[  
> Or maybe even remove traces of "%\n" ?
> JMarc

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?

Working around (IMHO) weird LyX behavior with additional scripts does
not really sound like the way to achieve the normal result, in my view…
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.

lyx-users mailing list
lyx-users at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the lyx-users mailing list