安装 mathrsfs 时出现问题(在 Mac 上)

安装 mathrsfs 时出现问题(在 Mac 上)

我正在尝试安装 mathrsfs 字体包。我按照说明进行操作这里我正在使用 Anki 编译 LaTeX。我尝试通过在所有其他 \usepackage 命令所在的位置键入 \usepackage{mathrsfs} 来加载包,但是当我尝试编译文档(在本例中是闪存卡,因为它是 Anki)时,即使该卡不涉及 \mathrsfs 命令,我也会收到错误:

Error executing latex.
Generated file: /var/folders/j_/c87rrmxn4sj3db6sjz9nnnjh0000gn/T/anki_temp/tmp.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./tmp.tex
LaTeX2e <2019-10-01>
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/08/27 v1.4j Standard LaTeX document class
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/base/mathrsfs.sty)
(./tmp.aux) (/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsfonts/umsa.fd
) (/usr/local/texlive/2019basic/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/jknapltx/ursfs.fd)
kpathsea: Running mktextfm rsfs10
/usr/local/texlive/2019basic/texmf-dist/web2c/mktexnam: Could not map source abbreviation  for rsfs10.
/usr/local/texlive/2019basic/texmf-dist/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs10
This is METAFONT, Version 2.7182818 (TeX Live 2019) (preloaded base=mf)

kpathsea: Running mktexmf rsfs10

! I can't find file `rsfs10'.
<*> ...:=ljfour; mag:=1; nonstopmode; input rsfs10
                                                  
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input rsfs10
                                                  
Transcript written on mfput.log.
grep: rsfs10.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs10' failed to make rsfs10.tfm.
kpathsea: Appending font creation commands to missfont.log.

kpathsea: Running mktextfm rsfs10
/usr/local/texlive/2019basic/texmf-dist/web2c/mktexnam: Could not map source abbreviation  for rsfs10.
/usr/local/texlive/2019basic/texmf-dist/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs10
This is METAFONT, Version 2.7182818 (TeX Live 2019) (preloaded base=mf)

kpathsea: Running mktexmf rsfs10

! I can't find file `rsfs10'.
<*> ...:=ljfour; mag:=1; nonstopmode; input rsfs10
                                                  
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input rsfs10
                                                  
Transcript written on mfput.log.
grep: rsfs10.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs10' failed to make rsfs10.tfm.

kpathsea: Running mktextfm rsfs5
/usr/local/texlive/2019basic/texmf-dist/web2c/mktexnam: Could not map source abbreviation  for rsfs5.
/usr/local/texlive/2019basic/texmf-dist/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs5
This is METAFONT, Version 2.7182818 (TeX Live 2019) (preloaded base=mf)

kpathsea: Running mktexmf rsfs5

! I can't find file `rsfs5'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input rsfs5
                                                  
Please type another input file name
! Emergency stop.
<*> ...e:=ljfour; mag:=1; nonstopmode; input rsfs5
                                                  
Transcript written on mfput.log.
grep: rsfs5.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs5' failed to make rsfs5.tfm.

! Font U/rsfs/m/n/12=rsfs10 at 12.0pt not loadable: Metric (TFM) file not found
.
<to be read again> 
                   relax 
l.11 $\mathcal
              {O}$
! Font U/rsfs/m/n/8=rsfs10 at 8.0pt not loadable: Metric (TFM) file not found.
<to be read again> 
                   relax 
l.11 $\mathcal
              {O}$
! Font U/rsfs/m/n/6=rsfs5 at 6.0pt not loadable: Metric (TFM) file not found.
<to be read again> 
                   relax 
l.11 $\mathcal
              {O}$
[1] (./tmp.aux) )
(see the transcript file for additional information)
Output written on tmp.dvi (1 page, 228 bytes).
Transcript written on tmp.log.

我正在将 mathrsfs.rme 和 mathrsfs.sty 文件复制到名为“base”的文件夹中,地址为:

在 /usr/local/texlive/2019basic/texmf-dist/tex/latex

当我下载 mathrsfs 包时,我得到了一个名为 jknappen 的文件夹,里面有一堆文件,似乎与其他包相对应,但我只对 mathrsfs 感兴趣,所以我把这两个文件拉了出来。

当我在终端上运行“哪个乳胶”时,我得到

/图书馆/TeX/texbin/latex

我能做些什么?

PS 我尝试运行“tlmgr install mathrsfs”,但出现错误,提示远程存储库是 2020 版本,与我的 2019 LaTeX 不兼容。我可以尝试简单地更新我的 LaTeX,但我不知道是否有万无一失的方法,我担心安装失败并毁掉一切。

相关内容