3b1b / 3b1b/manim

Problem with standalone.cls

未關閉
#2,030 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

I am having an error in Manim when I would like to write text/mathtext in the animation. It says that standalone.cls is not found. However, I have the file within the Texlive folder so it does not makes sense. My Texlive folder is also in PATH. Do any of you know how to fix this problem?

Environment:
Windows 11
Manim (latest version)
Python 3.11
Tex live

Here is my Tex-file produced by Manim:
\documentclass[preview]{standalone}

\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}

\begin{align*}
\frac{3}{4} = 0.75
\end{align*}

\end{document}

Here is the traceback file Manim wrote:
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021/W32TeX) (preloaded format=latex 2022.2.26) 4 JUN 2023 21:42
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**media/Tex/bb6b0a7b6bc7f4f7.tex
(./media/Tex/bb6b0a7b6bc7f4f7.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24>

! LaTeX Error: File `standalone.cls' not found.

Type X to quit or to proceed,
or enter new name. (Default extension: cls)

Enter file name:
! Emergency stop.


l.2 ^^M

Here is how much of TeX's memory you used:
24 strings out of 478277
568 string characters out of 5850515
289369 words of memory out of 5000000
18329 multiletter control sequences out of 15000+600000
469259 words of font info for 28 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
19i,0n,29p,97b,17s stack positions out of 5000i,500n,10000p,200000b,80000s

No pages of output.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

此問題是因為在 Windows 上缺少 'standalone.cls' 導致 LaTeX 編譯失敗。先檢查 Manim 如何配置 TeX 路徑以及它在何處尋找套件。查看 TexTemplate 類別和調用 latex 的 subprocess 呼叫。驗證 TeX 安裝和環境變數。修復可能涉及確保將 TeXLive 的 bin 目錄正確加入 PATH,或調整 tex 命令參數。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
latex, tex
領域
tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。