Problem with standalone.cls
- Linguagem predominante
- Python
- Estrelas
- 93.9k
- Forks
- 7.7k
- Merge médio
- 2d 13h
- PRs com merge (30d)
- 4
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
O problema é que a compilação do LaTeX está falhando por falta de 'standalone.cls' no Windows. Comece verificando como o Manim configura o caminho do TeX e onde procura por pacotes. Veja a classe TexTemplate e as chamadas de subprocess que invocam latex. Verifique a instalação do TeX e as variáveis de ambiente. A correção provavelmente envolve garantir que o diretório bin do TeXLive seja corretamente adicionado ao PATH ou ajustar os argumentos do comando tex.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- latex, tex
- Domínio
- tooling
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100