![是否可以确定 pdflatex 用于编译的字体文件](https://linux22.com/image/341115/%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E7%A1%AE%E5%AE%9A%20pdflatex%20%E7%94%A8%E4%BA%8E%E7%BC%96%E8%AF%91%E7%9A%84%E5%AD%97%E4%BD%93%E6%96%87%E4%BB%B6.png)
我正在尝试制作一个小型便携式 texlive 包。为此,我需要清除字体(它们占用 1.7GB)。
因此,通过几个示例文档,我能否以某种方式确定 pdflatex 在编译过程中使用了 latex 字体目录中的哪些字体文件?
答案1
仅作为示例,这是我从最近的示例文件中获得的结果。我再次pdflatex
使用-recorder
命令行选项运行,它创建了一个扩展名为的文件.fls
:
PWD <removed>
INPUT /usr/local/texlive/2016/texmf.cnf
INPUT /usr/local/texlive/2016/texmf-dist/web2c/texmf.cnf
INPUT /usr/local/texlive/2016/texmf-var/web2c/pdftex/pdflatex.fmt
INPUT luca.tex
OUTPUT luca.log
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def
INPUT /usr/local/texlive/2016/texmf-dist/fonts/map/fontname/texfonts.map
INPUT /usr/local/texlive/2016/texmf-dist/fonts/tfm/jknappen/ec/ecrm1000.tfm
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/inputenc.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/inputenc.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/utf8.def
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/utf8.def
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/ot1enc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/ot1enc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/omsenc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/base/omsenc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/generic/babel/babel.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/generic/babel/babel.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/generic/babel-italian/italian.ldf
INPUT /usr/local/texlive/2016/texmf-dist/tex/generic/babel-italian/italian.ldf
INPUT /usr/local/texlive/2016/texmf-dist/tex/generic/babel/babel.def
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/textgreek/textgreek.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/textgreek/textgreek.sty
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/greek-fontenc/lgrenc.def
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/greek-fontenc/lgrenc.def
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/greek-inputenc/lgrenc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/greek-inputenc/lgrenc.dfu
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
INPUT luca.aux
INPUT luca.aux
OUTPUT luca.aux
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/cbfonts-fd/lgrcmr.fd
INPUT /usr/local/texlive/2016/texmf-dist/tex/latex/cbfonts-fd/lgrcmr.fd
INPUT /usr/local/texlive/2016/texmf-dist/fonts/tfm/public/cbfonts/grmn1000.tfm
OUTPUT luca.pdf
INPUT /usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map
INPUT luca.aux
INPUT /usr/local/texlive/2016/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc
INPUT /usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb
INPUT /usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb
INPUT /usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb
INPUT /usr/local/texlive/2016/texmf-dist/fonts/type1/public/cbfonts/grmn1000.pfb
INPUT /usr/local/texlive/2016/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb
您可以轻松看到所需的文件。但是,请记住,.tfm
创建格式时加载的字体文件不会显示(在标准安装中,它们是 Computer Modern 字体)。.pfb
.tfm
如果需要的话还会.vf
列出文件。