2

If I process the following beamer class with lualatex (texlive 2016), the Á charactert is missing in the output pdf, but í appears correctly. This problem is not showing with laulatex of texlive 2015.

The following warning appears in the log file

{/home/zunbeltz/texlive/texlive2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map } Missing character: There is no Á (U+00C1) in font cmr10!

The MWE is saves as utf-8 file:

\documentclass{article}

\begin{document}
\begin{itemize}
\item Ángel
\item Pedro Rodr\'{\i}guez
\end{itemize}
\end{document}
  • 1
    Add \usepackage{fontspec}. By the way, typing Rodr\'iguez has been possible for several years. – egreg Jun 29 '16 at 8:56
  • @egreg: Shouldn't this be done automatically by beamer by detecting luatex? Do you think I should open a bug against beamer? – TeXtnik Jun 29 '16 at 9:31
  • Where's beamer mentioned in your example? Anyway, I don't think you can blame beamer: if you use the class with LuaLaTeX you should know that some setting is needed. – egreg Jun 29 '16 at 9:35
  • Why "Ángel" (utf-8) but not "Rodríguez"? – JLDiaz Jun 29 '16 at 9:41
  • @egreg: Sorry, I first show the problem with beamer and later notice that it was also with article. Why was it working fine with tl2015 and not tl2016? (I guess is all the changes in luatex 0.95). From the fontspec manual: "The fontspec package allows users of either XeTeX or LuaTeX to load OpenType fonts in a LaTeX document." In this case we are using the standard fonts in LaTeX; so, shouldn't the LaTeX kernel do the job to typeset this fine without loading fontspec manually? – TeXtnik Jun 29 '16 at 9:43
6

If I compile the following example with LuaLaTeX from TeX Live 2015

\documentclass{beamer}

\begin{document}

\begin{frame}

\begin{itemize}
\item \'Angel
\item Ángel
\item Pedro Rodr\'{\i}guez
\item Pedro Rodríguez
\end{itemize}

\end{frame}

\end{document}

I get

enter image description here

which is expected.

If I add also \usepackage[T1]{fontenc}, the output is

enter image description here

but it is pure luck (see fontenc vs inputenc for an explanation).

Always load fontspec when compiling with XeLaTeX or LuaLaTeX

\documentclass{beamer}
\usepackage{fontspec}
\begin{document}

\begin{frame}

\begin{itemize}
\item \'Angel
\item Ángel
\item Pedro Rodr\'{\i}guez
\item Pedro Rodríguez
\end{itemize}

\end{frame}

\end{document}

enter image description here

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.