我最近问了一个关于更改 LaTeX 文档中的字体的问题(这里),但在编译时,它给出了错误。假设我安装了 mathalpha,而我没有安装,我很难理解如何安装 stix2 包。以下是代码:
\documentclass{article}
\usepackage[left=0.8in, right=0.8in, top=1in, bottom=1in]{geometry}
\usepackage{amsmath}
\usepackage{stix2}
\usepackage{newtxtext}
\usepackage[euler-digits]{eulervm}
\usepackage[bb=stixtwo]{mathalpha}
\newcommand\va{a}
\newcommand\vu{u}
\begin{document}
\[ m\in\mathbb{R} \qquad \mathbb{1} \qquad \int_{\Omega}\ \sum_{k = 1}^{+\infty}
\dfrac{\ell \va*{v}}{r^2} \text{d}\vu*{x} \nabla \phi + \psi \Theta \partial f \]
\end{document}
这是控制台输出:
kpathsea: Running mktexmf stix2-mathbb
! I can't find file `stix2-mathbb'.
<*> ...ur; mag:=1; nonstopmode; input stix2-mathbb
Please type another input file name
! Emergency stop.
<*> ...ur; mag:=1; nonstopmode; input stix2-mathbb
Transcript written on mfput.log.
grep: stix2-mathbb.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input stix2- mathbb' failed to make stix2-mathbb.tfm.
./PROVE FONT.tex:22: Font U/stixtwobb/m/n/7.5=stix2-mathbb at 7.5pt not loadabl
e: Metric (TFM) file not found.
<to be read again>
relax
l.22 $$m\in\mathbb{R}
\qquad \mathbb{1} \qquad \int_{\Omega}\ \sum_{k = 1}^{...
?
我不知道这一切意味着什么,除了“我找不到文件'stix2-mathbb'”这一行
感谢您的任何帮助。
我必须明确指出,所有这些都是因为我需要 \mathbb 字符。
添加
这是日志的另一部分
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./PROVE FONT.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry /geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek /ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/stix.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/newtx/newtxtext.sty
`newtxtext' v1.466, 2016/03/27 Text macros taking advantage of TeX-Gyre Termes
fonts (msharpe)
(/usr/local/texlive/2016/texmf-dist/tex/latex/fontaxes /fontaxes.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/xkeyval /xkeyval.tex
(/usr/local/texlive/2016/texmf-dist/tex/generic/xkeyval /xkvutils.tex)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
Babel
(/usr/local/texlive/2016/texmf-dist/tex/latex/newtx/t1ntxtlf.fd))
(/Users/Henry/Library/texmf/tex/latex/eulervm/eulervm.sty)
(/Users/Henry/Library/texmf/tex/latex/mathalpha/mathalpha.sty
`mathalpha' v1.143, 2021/11/18, a renaming of mathalfa (msharpe))
No file "PROVE FONT".aux.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/ls1stix.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/ls2stix.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/Users/Henry/Library/texmf/tex/latex/eulervm/uzeur.fd)
(/Users/Henry/Library/texmf/tex/latex/eulervm/uzeus.fd)
(/Users/Henry/Library/texmf/tex/latex/eulervm/uzeuex.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/ls1stixfrak.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/ls1stixbb.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/ls2stixcal.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/ls1stixsf.fd)
(/usr/local/texlive/2016/texmf-dist/tex/latex/stix/ls2stixtt.fd)
kpathsea: Running mktextfm stix2-mathbb
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input stix2-mathbb
This is METAFONT, Version 2.7182818 (TeX Live 2016) (preloaded base=mf)
kpathsea: Running mktexmf stix2-mathbb
kpathsea: Running mktextfm stix2-mathbb
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input stix2-mathbb
This is METAFONT, Version 2.7182818 (TeX Live 2016) (preloaded base=mf)
kpathsea: Running mktexmf stix2-mathbb
! I can't find file `stix2-mathbb'.