Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Initially I've asked a different question, but digging up I've found a true reason.

The problem occurs when Cyrillic letter й is used with maths in another font in the same paragraph. Here is the minimal example:

й $xy$

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
\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



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

\setmathfont{Cambria Math}

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

UPD: I get the same problem with other accented letters, not only Cyrillic: à, ѓ, ё, ї, ќ, ў etc, except i.

UPD2: Happens only with Cambria.

share|improve this question

closed as too localized by egreg, Joseph Wright Jan 20 '12 at 13:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It doesn't happen to me, but I don't have Cambria and so I've used a different font. Does it happen with another font than Cambria to you? –  egreg Jan 14 '12 at 12:06
Thanks for pointing. It happens only with Cambria indeed. –  Georgiy Jan 14 '12 at 12:27
luaotfload bug, report it. –  Khaled Hosny Jan 14 '12 at 12:48
Thanks Khaled, reported. –  Georgiy Jan 14 '12 at 13:21
I have the Cambria font, and I don't experience the problem you're reporting. My setup: MacOSX Lion 10.7.2, MacTeX2011 with all the latest patches, Microsoft's Cambria .ttf files with file date 1 June 2010. –  Mico Jan 14 '12 at 17:24
show 3 more comments

1 Answer 1

up vote 4 down vote accepted

This was a problem with my Cambria font installation. In the Windows/Fonts folder, there were Cambria Italic.ttf, Cambria Bold.ttf, Cambria Bold Italic.ttf containing the corresponding fonts and Cambria.ttc containing both Cambria Regular and Cambria Math. So with bold and italic there was no problem, but somehow using regular lead to a problem when LuaLaTeX used Cambria Regular from Cambria.ttc. When I copied Cambria.ttf from Vista installation DVD and deleted luatex-cache folder, the problem had gone.

share|improve this answer
add comment

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