Open rdownieMath opened 3 years ago
That's because Manim removes styles from SVGs (manim compiles the .tex file into dvi, then transforms the dvi to svg), so you can't depend on LaTeX styles for Manim, you'll have to do it by hand or create a class on your own.
I encountered a similar issue once. Did you add dvisvgm to the document class of the tex_template.tex file? If yes then just remove it. It should be
\documentclass[preview]{standalone}
Is there any update on this case? I want to generate tikzcd
diagrams, but all the arrows collapse to the corner
I have the same issue of wanting to use manim to display lots of commutative diagrams (generated by tikzcd) and other TikZ drawn diagrams.
I'm completely naïve to manim's internals, but I am a capable programmer. I'm willing to put in some time to help if someone has time give me direction.
I'm very very new to coding and am mostly trying to learn on my own. I'm starting to pick up the basics of manim, but am still having difficulties with troubleshooting. I've been trying to get manim to draw tikz diagrams and I've spent hours digging through what seemed like similar issues. I finally got it to draw the diagram, but it's all messed up and I can't find any solutions online.
I'm trying to do a tree diagram. It should look like this (from LaTeX):
Here's the code I used in manim:
But what it produces is this:
I would greatly appreciate any help!