我对字体比特流宪章存在问题。
更少的虚拟.tex
\documentclass[a4paper,10pt]{scrbook}
\usepackage[bitstream-charter]{mathdesign} %my font!
% \usepackage[sfdefault]{cabin}
\usepackage[T1]{fontenc}
\begin{document}
aaaaaa
\end{document}
pdfLatex 无法生成 PDF,并出现以下错误:
pdflatex dummy.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./dummy.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 34 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/scrbook.cls
Document Class: scrbook 2013/12/19 v3.12 KOMA-Script document class (book)
(/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2013/12/19 v3.12 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
))) (/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/scrsize10pt.clo)
(/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea, 2013/12/19 v3.12 KOMA-Script package (type area)
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-
)) (/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mathdesign.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdbch/mdbch.cfg)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdbch/mdbch.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdfont.def)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdsffont.def)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdttfont.def)
(/usr/local/texlive/2014/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdbch/ot1mdbch.fd))
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/t1enc.def)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdbch/t1mdbch.fd)))
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/t1enc.def)) (./dummy.aux)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdacmr.fd)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mathdesign/mdbcmr.fd) [1{/usr/loc
al/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./dummy.aux) )
!pdfTeX error: pdflatex (file texnansi.enc): cannot open encoding file for read
ing
==> Fatal error occurred, no output PDF file produced!
知道可能是什么问题吗?
- 所有必需的软件包都已安装!
- 其他字体运行良好(已测试
\usepackage[sfdefault]{cabin}
) - 使用 Ubuntu 14.04
答案1
安装包ly1。我刚刚遇到了同样的问题,这个软件包帮我解决了。我相信更有知识的用户能够解释原因。
答案2
以及安装ly1(在 中$TEXMFHOME
),我必须updmap
使用该--force
选项运行才能生成~/.texlive2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map
。
答案3
fonts/enc/dvips/base 中缺少 texnansi.enc,将其复制到那里,texhash,你的字体生成就可以正常工作了