Too much chemfig code exported to TeX-files
alexander-schoch-github opened this issue · comments
alexander-schoch-github commented
This code (acetone)
#!/usr/bin/env python
from manimlib.imports import *
from chanimlib.imports import *
class tikz(Scene):
def construct(self):
testobject = ChemObject("-[:30](=[2]O)-[:30]")
self.play(Write(testobject))
self.wait(3)
results in three .tex
files in media/Tex
(without preamble):
\begin{document}
\begin{align*}
\setchemfig{atom sep = 2em}
\chemfig{[4]H-C(-[2]H)(-[6]H)-COOH}
\end{align*}
\end{document}
\begin{document}
\begin{align*}
\setchemfig{atom sep = 2em}
\chemfig{[4]H-C(-[2]H)(-[6]H)-C(-[2]H)(-[6]H)-OH}
\end{align*}
\end{document}
\begin{document}
\begin{align*}
\setchemfig{atom sep = 2em}
\chemfig{-[:30](=[2]O)-[:30]}
\end{align*}
\end{document}
Only the last one was actually used as an input.
Raghav Goel commented
The first two are from me testing some features. Darn me.
I'll fix it. Nothing to be worried about though, I guess.