Am 20.11.2015 um 11:40 schrieb Guenter Milde:
+# Non-ASCII in ERT
+export/doc/fr/Additional_pdf4_texF

This should now work.

Unfortunately, it does not: after updating to c818fea3af2866b3d4b4/lyxgit
there are still non-ASCII characters in ERT in doc/fr/Additional.lyx, e.g.
the "ê" in line 879:

Thanks for testing. Obviusly something went wrong in

ddb05f46b4280acc0be94fa5c717cf37713a4746/lyxgit

Now it should really work.

The reason is, that the preamble has the code:

    % if pdflatex is used
    \usepackage{ifpdf}
    \ifpdf

     % set fonts for nicer pdf view
     \IfFileExists{lmodern.sty}
      {\usepackage{lmodern}}{}

    \fi % end if pdflatex is used

but \ifpdf is also true for XeTeX and LuaTeX with PDF-export.

Interesting. This explains the problems.

I propose the following solution:

\usepackage{ifluatex}
\ifluatex
 % LuaLaTeX specific code
\else % if XeTeX or pdflatex
 \usepackage{ifpdf} % part of the hyperref bundle
 \ifpdf % if pdflatex is used
  % set fonts for nicer pdf view
  \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
 \fi % end if pdflatex is used
\fi % end ifluatex

instead of what I have currently in the preamble. This works for me. Does this also work on your system?

I proposed several fixes for this some posts ago. My suggestion is to invert
the tests for now and discuss the problem later.

Could you point me to this? I cannot find the thread.

thanks and regards
Uwe

Reply via email to