Dear Kornel, thanks for the fast response and implementing.
On 2015-11-16, Kornel Benko wrote: > Am Montag, 16. November 2015 um 00:30:08, schrieb Guenter Milde >> On 2015-11-12, Kornel Benko wrote: ... >> > 550:export/doc/de/Additional_pdf4_texF >> > 565:export/doc/de/Customization_pdf5_systemF >> > 599:export/doc/de/EmbeddedObjects_pdf4_systemF >> > 670:export/doc/de/UserGuide_pdf4_texF >> Non-ASCII characters in a comment in the user-preamble. >> Warning with inputenc == ASCII or XeTeX Wrong reson (and hence wrong comment in 5060b5b76eb88a98/lyxgit) +# Non-ASCII characters in a comment in the user-preamble. +# Warning with inputenc == ASCII or XeTeX +export/doc/de/(Additional|UserGuide)_pdf4_texF +export/doc/de/(Customization_pdf5|EmbeddedObjects_pdf4)_systemF Export with "systemF" uses UTF8, a non-ASCII char in the preamble is no problem here. We need to determine the correct reason for failure (most probably incompatible packages, maybe also loading of lmodern.sty in the user preamble) or state that we don't know it. >> > 694:export/doc/es/Additional_pdf4_texF >> ERT (tabular) with non-ASCII chars, fails with inputenc == ASCII and XeTeX >> -> convert ERT to LyX, invert, or ignore. I'd say invert for now (with a TODO or FIXME in the comment). Making documents that currently require inverting with non-standard export more robust should be postponed until the next release is out. We want to avoid hacks or controversial changes just to please the current test setup. This requires careful consideration, so that we do what is right for the documentation/examples. It may also mean to invert/ignore some tests on a permantent basis. >> > 709:export/doc/es/Customization_pdf5_systemF >> cannot reproduce > I get plenty of > ! LaTeX Error: \begin{otherlanguage} on input line 1901 ended by > \end{description}. > ! LaTeX Error: \begin{english} on input line 1900 ended by > \end{description}. Sorry, I tried export with texF. Now I see: The common reasons: a) loading lmodern.sty in the preamble The Quick hack is +\@ifpackageloaded{fontspec}{}{ \usepackage{lmodern} +} This could be done for all documents loading lmodern.sty in the preamble. But a proper solution to the documentation font problem is still not found! b) babel-specific preamble code: \@ifpackageloaded{babel}{ % increase link area for cross-references and autoname them, \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} \addto\extrasspanish{% \renewcommand*{\equationautorefname}[1]{}% ... The fix for the French documents is better (direct change of the "auto strings") for document using just one language. c) Seems to be a case of the polyglossia + language-nesting problem. The same happens with XeTeX (export/doc/es/Customization_pdf4_systemF) -> invert ~~~~~~~~~~~~~~~~~~~~ >> > 550:export/doc/de/Additional_pdf4_texF >> > 670:export/doc/de/UserGuide_pdf4_texF ... >> > 742:export/doc/es/EmbeddedObjects_pdf4_texF >> non-ASCII character in user preamble comment > Should we handle comments in the preamble? 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. ~~~~~~~~~~~~~~~~~~~~~~~~ >> > 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. 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} Günter