是否可以确定 pdflatex 用于编译的字体文件

是否可以确定 pdflatex 用于编译的字体文件

我正在尝试制作一个小型便携式 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列出文件。

相关内容