如何让 Anki 在 2024 年与基于 TikZ 的软件包一起工作?

如何让 Anki 在 2024 年与基于 TikZ 的软件包一起工作?

我想学习 LaTeX 语言,以便使用 chemfig 包学习化学并制作 Anki 抽认卡。问题是我无法让它与 Anki 配合使用(普通 LaTeX 可以正常工作)

我尝试过这些类型的教程,但有些说明不起作用:

如何让 Anki 与基于 TikZ 的包一起工作?

或者

http://pastebin.com/raw/mJj7gTQ7

这个问题和第一个教程中提到的一样,如果我激活选项“使用 dvisgvm 创建可调图像”

我收到该错误信息:

General formula of an aldehydeProblem running pdflatex⁩.
generated file : ⁨C:\Users\Asus\AppData\Local\Temp\anki_temp\tmp.tex⁩
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (MiKTeX 24.3) (preloaded format=pdflatex.fmt)
 restricted \write18 enabled.
entering extended mode
(tmp.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>

(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/standalone\standalone.cl
s
Document Class: standalone 2022/10/10 v1.3b Class to compile TeX sub-files stan
dalone
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/tools\shellesc.sty)
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/generic/iftex\ifluatex.sty
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty))
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/xkeyval\xkeyval.sty
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkeyval.tex
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkvutils.tex
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\keyval.tex))))

(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/standalone\standalone.cf
g) (C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo))
Executing command:
magick -density 300 -units PixelsPerInch tmp.pdf  -quality 90 tmp.png


Class standalone Warning: Conversion failed! Please ensure that shell escape
(standalone)              is enabled (e.g. use '-shell-escape').

) (C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/base\inputenc.sty)
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/base\fontenc.sty)
(C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/standalone\standalone.st
y (C:\Users\Asus\AppData\Local\Programs\MiKTeX\tex/latex/currfile\currfile.sty
Sorry, but pdflatex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\Asus\AppData\Local\MiKTeX\miktex\log\pdflatex.log

相关内容