自从我升级了 linuxmint 版本后,我就无法使用 LaTex 字体“Comicneue”。升级前一切都运行正常。
我有从 CTAN 下载的 Comicneue 包,位于 ~/texmf/tex/latex/local/,我运行了 texhash,但是当我尝试编译宽度为 LaTex->dvi->dvi2ps->ps2pdf 的 tex 文件时仍然紧急停止。
以下是一个示例 tex 文件:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[default]{comicneue}
\begin{document}
Test
\end{document}
这是我得到的输出:
*****
***** LaTeX output:
***** cd "/home/erwan/Bureau/test"
***** latex -interaction=nonstopmode test.tex
*****
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-01-21>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
(/usr/share/texlive/texmf-dist/tex/generic/babel-french/french.ldf))
(/usr/share/texlive/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/erwan/texmf/tex/latex/local/comicneue/tex/comicneue.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/ly1/ly1enc.def
(/usr/share/texlive/texmf-dist/tex/latex/base/ly1enc.dfu))))
(/home/erwan/texmf/tex/latex/local/comicneue/tex/T1ComicNeue-TLF.fd)
kpathsea: Running mktextfm ComicNeue-tlf-t1
/usr/share/texlive/texmf-dist/web2c/mktexnam: Could not map source abbreviation C for ComicNeue-tlf-t1.
/usr/share/texlive/texmf-dist/web2c/mktexnam: Need to update /usr/share/texlive/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ComicNeue-tlf-t1
This is METAFONT, Version 2.71828182 (TeX Live 2022/dev/Debian) (preloaded base=mf)
kpathsea: Running mktexmf ComicNeue-tlf-t1
! I can't find file `ComicNeue-tlf-t1'.
<*> ...g:=1; ; nonstopmode; input ComicNeue-tlf-t1
Please type another input file name
! Emergency stop.
<*> ...g:=1; ; nonstopmode; input ComicNeue-tlf-t1
Transcript written on mfput.log.
grep: ComicNeue-tlf-t1.log: Aucun fichier ou dossier de ce type
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ComicNeue-tlf-t1' failed to make ComicNeue-tlf-t1.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font T1/ComicNeue-TLF/m/n/12=ComicNeue-tlf-t1 at 12.0pt not loadable: Metric
(TFM) file not found.
<to be read again>
relax
l.15 \begin{document}
(./test.aux) (/usr/share/texlive/texmf-dist/tex/latex/ly1/ly1ptm.fd)
Missing character: There is no ^^V in font nullfont!
Missing character: There is no . in font nullfont!
Missing character: There is no T in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no 1 in font nullfont!
[1] (./test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 188 bytes).
Transcript written on test.log.
您知道我该尝试什么来修复这个问题吗?
谢谢 Erwan
答案1
打开终端
使用以下命令搜索包名称:
tlmgr search --global --file /comicneue.sty
此命令在 TeX Live 包存储库中搜索包文件。
如果找到该包,请使用以下命令重新安装它:
sudo tlmgr install --reinstall comicneue
此命令从 TeX Live 存储库重新安装该包。