西里尔文包有什么问题?

西里尔文包有什么问题?

我下载了cyrillic软件包并将其安装到/opt/local/share/texmf/tex/latex/cyrillic。我先latex cyrlatex.ins,然后texhash。现在这是我的文档:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\begin{document}
This text is in Russian: проверка.
\end{document}

这是我所看到的:

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live/MacPorts 2009_6)
entering extended mode
(./x.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive-dist/tex/latex/base/size10.clo))
(/opt/local/share/texmf-texlive-dist/tex/latex/base/inputenc.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/base/utf8.def
(/opt/local/share/texmf-texlive-dist/tex/latex/base/t1enc.dfu)
(/opt/local/share/texmf-texlive-dist/tex/latex/base/ot1enc.dfu)
(/opt/local/share/texmf-texlive-dist/tex/latex/base/omsenc.dfu)))
(/opt/local/share/texmf-texlive-dist/tex/latex/base/fontenc.sty
(/opt/local/share/texmf/tex/latex/cyrillic/t2aenc.def
(/opt/local/share/texmf-texlive-dist/tex/latex/base/t2aenc.dfu))
(/opt/local/share/texmf/tex/latex/cyrillic/t2acmr.fd)
kpathsea: Running mktextfm larm1000
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input larm1000
This is METAFONT, Version 2.718281 (TeX Live/MacPorts 2009_6)


kpathsea: Running mktexmf larm1000
! I can't find file `larm1000'.
<*> ...ljfour; mag:=1; nonstopmode; input larm1000

Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; nonstopmode; input larm1000

Transcript written on mfput.log.
grep: larm1000.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input larm1000' failed to make larm1000.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not fo
und.
<to be read again> 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont

? 

这一切到底是怎么回事?错过了什么?

答案1

LH fonts需要安装软件包。它包含larm1000.mfmktextfm 生成的缺失文件larm1000.tfm。如果没有该文件,LaTeX 会声称无法加载字体。

可以使用 tlmgr(TeX Live 包管理器)安装此LH包,或者根据您的情况选择捆绑此包和其他字体包的 OS 分发包(在 Linux 上也很常见)。如MacPorts TeX Live 软件包列表texlive-lang-cyrillic是必需的包。

答案2

这次安装解决了这个问题:

sudo port install texlive-lang-cyrillic texlive-fonts-extra

相关内容