TeX - LaTeX Asked by Igor Kotelnikov on January 14, 2021
I just tried to re-compile the documentation file for the russian-babel
package with XeLaTeX. The source file russianb.dtx
was last modified in January 2017 (https://www.ctan.org/pkg/babel-russian) and then compilation always was successful. But now I got a compilation error. As short investigation revealed that the CMU font is the cause of the problem, as the following example demonstrates.
documentclass{article}
usepackage{fontspec}
defaultfontfeatures{Ligatures={TeX}}
%setmainfont{STIX Two}[
% UprightFont={* Math},
% %UprightFont={* Text},
% ItalicFont={* Text Italic},
% BoldFont={* Text Bold},
% BoldItalicFont={* Text Bold Italic},
%]
setmainfont{CMU Serif}
setsansfont{CMU Sans Serif}
setmonofont{CMU Typewriter Text}
usepackage[russian,english]{babel}
begin{document}
English
textsf{English}
texttt{English}
selectlanguage{russian}
Русский
textsf{Русский}
texttt{Русский}
end{document}
Compilation terminated with the following error:
dvipdfmx:fatal: This font using the "seac" command for accented characters...
No output PDF file written.
)
Error 1 (driver return code) generating output;
file test-CMU.pdf may not be valid.
So it can be guessed that the error is caused by some recent changes in XeLaTeX executables. Can someone help to solve this problem? Note however that the compilation succeeds if CMU fonts is substituted with STIX Two fonts.
If you add XeTeXtracingfonts=1
you can see in the log that miktex finds for the typewriter font a type1 font (a .pfb
):
/MiKTeX 2.9/fonts/type1/public/cm-unicode/cmuntt.pfb
and this then fails when trying to typeset the char with the accent.
You can avoid this by setting the font by file name instead of font name (you perhaps will have to set the bold typewriter similar):
setmonofont{cmuntt.otf}
Answered by Ulrike Fischer on January 14, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP