我尝试编译这示例,但 LaTeX 编译器给出以下错误。我该怎么办?
name = tngani, rootname = tngani, pointsize = mktexmf: empty or non-existent rootfile!
Cannot find font tngani in map file(s).
kpathsea: Running mktexmf tngani.mf The command name is
C:\texlive\2011\bin\win32\mktexmf Cannot find tngani.mf .
I try ps2pk --> gsftopk --> ttf2pk --> hbf2gf. ps2pk cannot be used.
I try gsftopk. gsftopk.exe tngani 1650 gsftopk cannot be used.
Next I try ttf2pk. ttf2pk.exe -q tngani 1650 ttf2pk failed.
Finally I try hbf2gf. hbf2gf.exe -q -p tngani 1650
All trials failed.
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 2+450/600 --dpi 1650 tngani
The command name is C:\texlive\2011\bin\win32\mktexpk
kpathsea: Appending font creation commands to missfont.log.
Process exited with error(s)
以下是代码:
\documentclass{minimal}
\usepackage[annataritalic]{tengwarscript}
\begin{document}
\tengwarannataritalic[2.5]
\tengwa{254}
\Textendedcalma\TTthreedots\Tnuumen\Tessenuquerna\TTthreedots\Tungwe\Tando\Toore\TTrightcurl\Tumbar\Ttinco\TTthreedots\Tlambealt\TTrightcurl\Tquesse\TTdoublerightcurl
\Tromanperiod\Ts
\Textendedcalma\TTthreedots\Tnuumen\Tessenuquerna\TTthreedots\Tungwe\Tungwe\Tumbar\TTnasalizer\TTdot\Ttinco\TTthreedots\Tlambe\TTrightcurl
\tengwa{255}\\
\Textendedcalma\TTthreedots\Tnuumen\Tessenuquerna\TTthreedots\Tungwe\Tthuule\Troomen\Tquesse\TTthreedots\Ttinco\TTthreedots\Tlambealt\TTrightcurl\Tquesse\TTdoublerightcurl
\Tromanperiod\Ts
\Textendedungwe\TTthreedots\Tumbar\Toore\TTrightcurl\Tesse\Tkern{-0.2}\Tmalta\TTrightcurl\Textendedcalma\TTdot\Ttelco\TTdot\Tquesse\Troomen\Tparma\TTnasalizer\TTdot\Ttinco\TTthreedots\Tlambe\TTrightcurl
\end{document}
答案1
该tengwarscript
包仅提供字体的度量文件,但不提供字体本身,字体本身必须从文档中显示的网站下载。
例如,您可以从以下网址下载“Annatar”字体这里并解压 ZIP 文件;然后将.ttf
文件移入
C:\texlive\texmf-local\fonts\truetype\annatar
应该是
/usr/local/texlive/texmf-local/fonts/truetype/annatar
对于 Unix 系统(创建必要的目录)。然后运行mktexlsr
将使字体可用。添加声明
\pdfmapfile{=tengwarscript.map}
在该\documentclass
行之后,文档就应该编译。
对于其他字体系列,请在网上查找,例如这里。遗憾的是,可供下载多种字体系列的链接消失了。