[luatex] font embedded twice

Pablo Rodríguez oinos at web.de
Sun Jul 10 18:28:51 CEST 2011


Hi there,

compiling this document with LuaTeX I get the font embedded twice, but
it is embedded only once if I compile it using XeTeX:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Minion Pro}
\usepackage[spanish]{babel}
\usepackage{unicode-math}
\setmathfont{Minion Pro}
\usepackage{ifluatex}
\ifluatex
\usepackage{lualatex-math}
\ExplSyntaxOn
\makeatletter
\tl_replace_in:Nnn \shorthandsspanish {
  \mathchardef \es at period@code \the \mathcode `\.
  \babel at savevariable
} {
  \lltxmath_set_mathchar:NN \es at period@code \.
  \fix_save_variable:n
}
\cs_new_nopar:Nn \fix_save_variable:n {
  \tl_if_head_eq_meaning:nNTF { #1 } \mathcode {
    \exp_args:Nf \babel at savevariable {
      \exp_last_unbraced:Nf \luatexUmathcodenum { \tl_tail:n { #1 } }
    }
  } {
    \babel at savevariable { #1 }
  }
}
\makeatother
\ExplSyntaxOff
\fi
\begin{document}
$\frac{27,7}{100\,000}$ en varones
\end{document}

I wonder whether I hit an underlying LuaTeX bug (already reported in
https://github.com/wspr/unicode-math/issues/208).

Thanks for your help,


Pablo
-- 
http://www.ousia.tk


More information about the luatex mailing list