如何在 z Mac 上安装带有 Anki 2.1 的 latex?

如何在 z Mac 上安装带有 Anki 2.1 的 latex?

我已经断断续续地研究这个问题一个多星期了。我需要制作一些带有物理方程的卡片,用于工程目的。我想我已经查看了谷歌能找到的所有相关页面。我认为自己是一名高级程序员,而且我熟悉终端。但仍然没有运气。

这是 anki 给我的错误:

Error executing /usr/local/texlive/2019basic/bin/x86_64-darwin/latex.
Generated file: /var/folders/w3/p67pv19524313b_29rrnn2p40000gn/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/fontenc.sty
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2019basic/texmf-dist/tex/latex/base/inputenc.sty

! LaTeX Error: File `utf8x.def' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)

Enter file name: 
! Emergency stop.
<read *> 

l.165 \endinput
               ^^M
No pages of output.
Transcript written on tmp.log.

更新 tlmgr 也给我一些粗略的输出。

[DarkKnight@MacBook-Pro Cellar]$ sudo tlmgr update --self
Password:
tlmgr: package repository http://muug.ca/mirror/ctan/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr: saving backups to /usr/local/texlive/2019basic/tlpkg/backups
[1/1, ??:??/??:??] update: texlive.infra [214k] (51561 -> 52975) ... done
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /usr/local/texlive/2019basic/texmf-var/web2c/tlmgr.log
[DarkKnight@MacBook-Pro Cellar]$ sudo tlmgr install dvipng
tlmgr: package repository http://ctan.forsale.plus/systems/texlive/tlnet (not verified: gpg unavailable)
[1/2, ??:??/??:??] install: dvipng.x86_64-darwin [482k]
[2/2, 00:01/00:01] install: dvipng [1k]
tlmgr: package log updated: /usr/local/texlive/2019basic/texmf-var/web2c/tlmgr.log
[DarkKnight@MacBook-Pro Cellar]$ 

相关内容