With LuaLaTeX I had compiled the same code by different distributions:
LuaLaTeX 0.95.0/TeXLive 2016
LuaLaTeX 1.0.4/MiKTeX 2.9.6236
updated to the latest versions.
Unfortunately, I got different results for polyglossia
behaviour.
With the following code:
%%============================ Compiler Directives =======================%%
%% %%
% !TeX program = lualatex
% !TeX encoding = utf8
% !TeX spellcheck = uk_UA
\documentclass{article}
%%============================ languagee ann encodings ===================%%
\usepackage{polyglossia}
\setmainlanguage{ukrainian}
\setotherlanguage{russian}
\setotherlanguage{english}
\setsansfont{Arial}
\setmainfont{Times New Roman}
\setmonofont{Consolas}
\defaultfontfeatures{Ligatures={TeX}}
\usepackage[math-style=TeX]{unicode-math}
%%========================================================================%%
\begin{document}
Some text
Якийсь текст
Какой-то текст
\end{document}
LuaLaTeX 0.95.0/TeXLive 2016 works fine.
But LuaLaTeX 1.0.4/MiKTeX 2.9.6236 produce an error:
! Package polyglossia Error: The current roman font does not contain the Cyrillic script!
(polyglossia) Please define \cyrillicfont with \newfontfamily.
See the polyglossia package documentation for explanation.
Main question is: Why only with LuaLaTeX 1.0.4/MiKTeX 2.9.6236
should I use any other nonintuitive constructions for using fonts differ from Latin?
Is this a bug of LuaLaTeX 1.0.4?
I note that in selected fonts the necessary symbols are present.
\texttt{...}
in a Ukrainian context. And it does also in TeX Live, of course. Solution:\newfontfamily{\cyrillicfonttt}{<some monospaced font supporting Cyrillic>}
. I guess some specific MiKTeX configuration file kicks in, but it's unimportant, as the declaration above is needed whenever the font set with\setmonofont
has no specific support for Cyrillic. – egreg Apr 24 '17 at 16:54TeXLive
works fine even with\texttt{...}
and the preamble. Just checked – sergiokapone Apr 24 '17 at 16:59\newfontfamily{\cyrillicfonttt}{Consolas}
and got the same error withMikTeX
. – sergiokapone Apr 24 '17 at 17:06xelatex/MikTeX
with MWE preamble. Works fine. I think, the problem in MikTeX'sLuaLaTeX
– sergiokapone Apr 24 '17 at 17:17