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

Jean-Marc Lasgouttes lasgouttes at lyx.org
Thu Jun 11 10:30:19 UTC 2020


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 https://github.com/jgm/pandoc/issues
> 
> As for the export, you could add an intermediate script that transfers
> 
> }%
> [
> 
> to
> 
> }[

Or maybe even remove traces of "%\n" ?

JMarc



More information about the lyx-users mailing list