On 2015-10-27, Stephan Witt wrote:
> Am 27.10.2015 um 13:42 schrieb Kornel Benko <kor...@lyx.org>:

>> Am Dienstag, 27. Oktober 2015 um 13:29:35, schrieb Stephan Witt 
>> <st.w...@gmx.net>
>>> One interesting example of a failure is as follows:

>>> ======
>>> 350/4621 Testing: export/doc/Math_pdf4_texF

>> It is simply not compilable with xelatex. At least here.


> Because of this:
> $ file lib/doc/Math.lyx
> lib/doc/Math.lyx: UTF-8 Unicode English text

> ...
> \pdf_author "LyX Team, Uwe Stöhr"
> ...

Mind, that this is also currently a problem with "normal" latex or pdflatex,
if you set the "latex encoding" to "ASCII".

The problem is, that the hypersetup is wrapped in:

  \inputencoding{utf8}
  ...
  \inputencoding{ascii}

which leads to;

! Undefined control sequence.
l.35 \inputencoding
                   {utf8}

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.35 \inputencoding{u
                     tf8}


> This cannot be converted from UTF-8 to ASCII.

Of course it can:

\pdf_author "LyX Team, Uwe St\"ohr"

(Hyperref supports the LaTeX Internal Character Representation (LICR).)

If I export the "ascii"-version to latex, change as above and comment out
the  \inputencoding changes, the file compiles fine here.

A proper fix would be to use lib/unicodesymbols for the content of the
hypersetup.

Günter

Reply via email to