[XeTeX] polyglossia + russian + texttt + Courier New error
Igor Kotelnikov
igor.kotelnikov at gmail.com
Sun Feb 6 08:30:01 CET 2011
Dear XeTeX users!
I've met an error which occurs in some curcumstatences, rare for most users.
I've gott the follwoing error message althoug compiled pdf looks fine:
! Package polyglossia Error:
The current roman font does not contain the Cyrillic script!
Please define \cyrillicfont with \newfontfamily.
See the polyglossia package documentation for explanation.
Type H <return> for immediate help.
...
l.57 ... quick brown fox jumps over the lazy dog.}
?
The error is caused by the \texttt command in the following source file
(somewhat reduced)
\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{russian}
\setotherlanguages{english}
\setmainfont{Palatino Linotype}
\setsansfont{Arial}
\setmonofont{Courier New}
\begin{document}
\texttt{The quick brown fox jumps over the lazy dog.}
\end{document}
The error disappears if
1. either russian is not default or current language,
2. or \setmonofont{Courier New} is substituted with,
e.g., \setmonofont{Arial}.
I tested many other combinations of various fonts and languages as shown in
attached source file and noted that this error occurs for some other fonts
declated within \setmonofont. I am using MikTeX 2.9 under Windows 7.
-------------------------------------------
Igor A. Kotelnikov
igor.kotelnikov at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110206/722f2b48/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texttt-problem.zip
Type: application/zip
Size: 108494 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20110206/722f2b48/attachment-0001.zip>
More information about the XeTeX
mailing list