-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2022-12 updates necessary! #28
Comments
ok, some more corrections in templates.py ` class ChemTemplate(TexTemplate):
class ChemReactionTemplate(TexTemplate):
` |
After I modified the ChemTemplate and chem_objects.py code the way you did, the generated video (.mp4) has some problems, all the chemical element symbols overlap, but the generated gifs are correct, but I don't know why, sad. |
This is almost too long ago for me to remember what I did, how and why. |
I'm not good in handling forks on github, but here are the changes necessary to make chanim compatible with both the latest version of LaTeX/chemfig/Tikz and Manim v0.17:
in templates.py change the empty strings against "{}"
`
class ChemTemplate(TexTemplate):
def init(self,**kwargs):
super().init(**kwargs)
self.add_to_preamble("\usepackage{chemfig}")
`
in chem_objects.py recreate the class TexSymbol
from manim.mobject.text.tex_mobject import * from manim.mobject.svg.svg_mobject import VMobjectFromSVGPath class TexSymbol(VMobjectFromSVGPath): """Purely a renaming of SVGPathMobject.""" pass
At least I am able to render the first example again with these settings.
The text was updated successfully, but these errors were encountered: