Am Montag, 16. November 2015 um 13:28:10, schrieb Guenter Milde 
<mi...@users.sf.net>
> IMO, LyX should just leave ERT and user preamble to the user. However, this
> is not agreed by others, see e.g. http://www.lyx.org/trac/ticket/9012
> (and the follow-up problems with Cyrillic in listings etc).
> 
> Similarily, the user preamble is checked for encoding problems (since
> 4c0e99ac/lyxgit). As only a warning is output, this does not prevent
> compilation (if the user is smarter than LyX (e.g. if the offending
> character is in a comment). Special casing for comments would make the
> encoding-check code overly complicated.  
> 
> But it seems the export test treats this waring as a failure. 
> Maybe this could be changed. Otherwise, invert the affected tests.
> 

The other possibility (for tests) is removing comments from preamble.

> ~~~~~~~~~~~~~~~~~~~~~~~~
> 
> >> > 737:export/doc/es/EmbeddedObjects_dvi3_texF
> >> > 744:export/doc/es/EmbeddedObjects_pdf5_texF
> >> > 743:export/doc/es/EmbeddedObjects_pdf4_systemF
> 
> ...
> 
> Actually, for me even doc/EmbeddedObjects.lyx fails to
> compile, and even for default output.

Here the test passes.

> The error is
> 
>   (/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang1.sty
>   File: lstlang1.sty 2015/06/04 1.6 listings language file
>   )
>   ! Undefined control sequence.
>   \lst@label ->\2
>   
>   l.6110 ...ption={\1\3},label={\2},language=Python]
> 
> I don't know whether this is a LyX- or LaTeX problem.
> 
> My TeXLive is 2015 and listings.sty is
> 
>   \def\filedate{2015/06/04}
>   \def\fileversion{1.6}

I have the same date and version.

> Günter

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to