找出我的 LaTeX 编译器默认使用的特定字体的路径

找出我的 LaTeX 编译器默认使用的特定字体的路径

我知道fontforge可以用来检查*.otf*.ttf文件的字形。

我还知道各种文档类别中使用的默认字体是Computer Modern

我想检查我的 LaTeX 编译器默认使用的特定字体。我不了解 LaTeX 如何处理字体。根据常识,我认为每当我尝试编译一个简单的文档时,LaTeX 都会以某种方式访问​​默认字体,因此我创建了一个简单的文档(请参阅下面的第一个代码块)并尝试编译它。我曾经strace列出编译过程中读取的所有文件,但文件列表中没有包含任何扩展名看起来像字体的文件(请参阅下面的第二个代码块)。

\documentclass{article}

\begin{document}
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
\end{document}
$ strace --output=/tmp/main.log --trace=openat pdflatex /tmp/main.tex
$ cat /tmp/main.log
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf.cnf", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-dist/web2c/texmf.cnf", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/local/texlive/texmf-local", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/texlive/texmf-local", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-config/ls-R", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-var/ls-R", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-dist/ls-R", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/local/texlive/texmf-local", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-config", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-var", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-dist", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/tmp/babel-2XYaED/main.tex", O_RDONLY) = 3
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-var/web2c/pdftex/pdflatex.fmt", O_RDONLY) = 3
openat(AT_FDCWD, "/tmp/babel-2XYaED/main.tex", O_RDONLY) = 3
openat(AT_FDCWD, "main.log", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-config/tex/latex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-var/tex/latex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/texmf/tex/latex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-dist/tex/latex/base/article.cls", O_RDONLY) = 5
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 6
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 6
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 6
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-dist/tex/latex/base/size10.clo", O_RDONLY) = 6
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def", O_RDONLY) = 5
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-config/tex/generic/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-var/tex/generic/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/texmf/tex/generic/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-config/tex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-var/tex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/texmf/tex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
openat(AT_FDCWD, "main.aux", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
openat(AT_FDCWD, "main.pdf", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 7
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-config/fonts/vf/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-var/fonts/vf/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/texmf/fonts/vf/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 7
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-config/fonts/map/pdflatex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-var/fonts/map/pdflatex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/texmf/fonts/map/pdflatex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-config/fonts/map/pdftex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-var/fonts/map/pdftex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/texmf/fonts/map/pdftex/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-var/fonts/map/pdftex/updmap/pdftex.map", O_RDONLY) = 7
openat(AT_FDCWD, "main.aux", O_RDONLY)  = 5
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-config/fonts/type1/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/.texlive2024/texmf-var/fonts/type1/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/rodrigo/texmf/fonts/type1/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb", O_RDONLY) = 3
+++ exited with 0 +++

我的问题是:如何找出系统中编译文档和查看 PDF 文件时使用的特定字体?

相关内容