我遇到了以下错误:
phthalo1.log: 1655: ! Font OT1/cmr/m/n/4=cmr4 at 4.0pt not loadable: Metric (TFM) file not found.
phthalo1.log: 1708: LaTeX Font Info: Try loading font information for OT1+phv on input line 35.
phthalo1.log: 1710: (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/ot1phv.fd
phthalo1.log: 1711: File: ot1phv.fd 2001/06/04 scalable font definitions for OT1/phv.
但是,我texlive
安装了完整的发行版。此外,我得到了
# tlmgr search --file cmr4.tfm --global
tlmgr: package repository http://ctan.imsc.res.in/systems/texlive/tlnet (verified)
[root@roddur rudra]# tlmgr install tlnet
tlmgr: package repository http://ctan.imsc.res.in/systems/texlive/tlnet (verified)
tlmgr install: package tlnet not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.
这个问题类似于这但这并不能解决我的问题。请帮忙。
编辑 标准输出
kpathsea: Running mktextfm cmr4
/usr/share/texlive/texmf-dist/web2c/mktexnam: Could not map source abbreviation for cmr4.
/usr/share/texlive/texmf-dist/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input cmr4
This is METAFONT, Version 2.7182818 (TeX Live 2016) (preloaded base=mf)
kpathsea: Running mktexmf cmr4
! I can't find file `cmr4'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input cmr4
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input cmr4
Transcript written on mfput.log.
grep: cmr4.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input cmr4' failed to make cmr4.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font OT1/cmr/m/n/4=cmr4 at 4.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.11 \maketitle
?
日志中的 .fd 行
grep .fd phthalo1.log
phthalo1.log: 403: Package pdftexcmds Info: \pdfdraftmode found.
phthalo1.log: 430: File: pd1enc.def 2017/03/14 v6.85a Hyperref: PDFDocEncoding definition (HO)
phthalo1.log: 1101: \pgfdecoratedcompleteddistance=\dimen317
phthalo1.log: 1102: \pgfdecoratedremainingdistance=\dimen318
phthalo1.log: 1103: \pgfdecoratedinputsegmentcompleteddistance=\dimen319
phthalo1.log: 1104: \pgfdecoratedinputsegmentremainingdistance=\dimen320
phthalo1.log: 1107: \pgfdecorationsegmentamplitude=\dimen322
phthalo1.log: 1108: \pgfdecorationsegmentlength=\dimen323
phthalo1.log: 1108: \pgfdecorationsegmentlength=\dimen323
phthalo1.log: 1695: (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd
phthalo1.log: 1696: File: umsa.fd 2013/01/14 v3.01 AMS symbols A
phthalo1.log: 1700: (/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd
phthalo1.log: 1701: File: umsb.fd 2013/01/14 v3.01 AMS symbols B
phthalo1.log: 1705: (/usr/local/texlive/2017/texmf-dist/tex/latex/jknapltx/ursfs.fd
phthalo1.log: 1706: File: ursfs.fd 1998/03/24 rsfs font definition file (jk)
phthalo1.log: 1710: (/usr/local/texlive/2017/texmf-dist/tex/latex/psnfss/ot1phv.fd
phthalo1.log: 1711: File: ot1phv.fd 2001/06/04 scalable font definitions for OT1/phv.
phthalo1.log: 1733: (/usr/local/texlive/2017/texmf-dist/tex/latex/base/omscmr.fd
phthalo1.log: 1734: File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
答案1
升级到 Ubuntu 17.10 后,我遇到了这个问题。通过安装 texlive-fonts-extra 包解决了这个问题。