Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Accented characters in Cambria and math #42

Open
zhoraster opened this issue Jan 14, 2012 · 0 comments
Open

Accented characters in Cambria and math #42

zhoraster opened this issue Jan 14, 2012 · 0 comments

Comments

@zhoraster
Copy link

The problem occurs when an accented character in Cambria is used with maths in another font in the same paragraph. Here is the minimal example:

\documentclass{minimal} 
\usepackage{fontspec}
\setmainfont{Cambria}
\begin{document}
й $xy$
\end{document}

The compilation stops and the error is following:

error: ...s/MiKTeX 2.9
/tex/luatex/luaotfload/otfl-node-inj.lua:225: attempt to index local 'tm' (a nil
value)
.
\newpage ...k \@nobreakfalse \everypar {}\fi \par
                                              \vfil \penalty -\@M
l.6 \end{document}

When they are in different paragraphs e.g. the document body is

\begin{document}
й 

$xy$
\end{document}

then there is no problem. Also there is no problem as well if I use the same math font e.g. with

\usepackage{unicode-math}
\setmathfont{Cambria Math}

But still the compilation stops if I use a symbol from a different font (e.g. \Box from amssymb).

UPD: Happens only if Cambria Regular is taken from Cambria.ttc file containing both Cambria Regular and Cambria Math.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant