4

The following ECM works fine when compiled with XeLaTeX, but if compiled with LuaLaTeX there is a minor problem : accented letter produces garbage in the pdftitle — but it's fine in the document . I precise (after some tests) that it is not related to a particular font.

\documentclass{minimal}
\usepackage{fontspec}
\usepackage{hyperref}
\hypersetup{pdftitle={àéèœ}}
\begin{document}
àéèœ
\end{document}

P.S. Maybe it's not relevant here, but in case : I'm on mac 10.6

  • After test, `a \'e`e\oe etc. do the work, but it's quite a pity to have to write this with an engine that support UTF8. Hence, I would ask for a nicer answer. – Matsaya Feb 8 '11 at 21:17
6
\usepackage[unicode=true]{hyperref}
| improve this answer | |
  • It's work, thanks. Now the remaining question (it's only curiosity) is : why is it no problem with XeLaTeX ? – Matsaya Feb 9 '11 at 16:38
  • I believe that at the moment hyperref treats LuaTeX the same as pdfTeX, but contains dedicated code for XeTeX. But only Heiko could give a definitive answer. – Philipp Feb 9 '11 at 18:43
  • XeTeX is using unicode by default. – Horst Grünbusch Jul 5 '16 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.