3b1b / 3b1b/manim

BUG: tikz display anomaly

未關閉
#2,232 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
93.8k
分支
7.7k
PR 合併指標
PR 指標待擷取

描述

**Code**:
```python
from manimlib import *

class Video(Scene):

def construct(self):

txt = r"""
\begin{tikzcd}
{\mathcal{C}}
\arrow["K"', from=1-1, to=2-1]
\arrow[bend left=37, "F" name=U, from=1-1, to=2-2]
\arrow[Rightarrow, "\eta" description,
shorten <=4pt, pos=0.58, from=U, to=2-1] \\
{\mathcal{D}}
\arrow["\mathrm{Lan}_K F"', ""{name=UU, below},
from=2-1, to=2-2] & {\mathcal{E}} \\
{\quad } & {\quad }
\arrow[phantom, ""{coordinate,name=Z},
from=3-1, to=3-2]
\arrow["L"', ""{name=DD},
from=2-1, to= 2-2,
rounded corners,
to path={ -- ([yshift=-3ex] \tikztostart.south)
|- (Z) [pos=1] \tikztonodes
-| ([yshift=-3ex] \tikztotarget.south)
-- (\tikztotarget)}]
\arrow ["\chi", Rightarrow, shorten <=1.5pt,
from=UU, to= DD, yshift=-1ex]
\end{tikzcd}
"""

tex = TexText(txt, template="lualatex",additional_preamble=r"\usepackage{tikz-cd}").set_stroke(RED,width=2)
self.play(ShowCreation(tex),run_time=10)
```

**Wrong display or Error traceback**:
Correct svg file:
![5903eb1297ac1b6b](https://github.com/user-attachments/assets/55ae8a56-a4e2-4f7f-92e6-f7b29fca39de)

Display image:
![Video](https://github.com/user-attachments/assets/0efd8100-ee5f-4686-b5f8-7612ce857860)

### Additional context

貢獻指南

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

評估

這個 Issue 還沒有評估資料。

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

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