Comments (3)
Works for me though:
Could you show the .tex
file, please?
from chanim.
Of course I forgot the minus sign...
corresponding .tex
-file:
\documentclass[preview]{standalone}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dsfont}
\usepackage{setspace}
\usepackage{tipa}
\usepackage{relsize}
\usepackage{textcomp}
\usepackage{mathrsfs}
\usepackage{calligra}
\usepackage{wasysym}
\usepackage{ragged2e}
\usepackage{physics}
\usepackage{xcolor}
\usepackage{microtype}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.geometric}
\usepackage{chemfig}
\usepackage{mhchem}
\DisableLigatures{encoding = *, family = * }
%\usepackage[UTF8]{ctex}
\linespread{1}
\begin{document}
\begin{align*}
\setchemfig{atom sep = 2em}
\chemfig{-[:30](=[2]O)-[:-30]OH}
\end{align*}
\end{document}
I don't see anything wrong with it at a short glance.
from chanim.
Update: After some messing around, I found out that the compilation from .dvi
to .svg
failed. This issue could be resolved by using \documentclass[preview,dvisvgm]{standalone}
in the preamble. Now, the .svg
file is generated correctly.
However, afterwards, this .svg
file is not inserted into the video/image correctly, as seen here (code below):
This appears to be a general manim problem, though, which is why I opened an issue on 3b1b/manim
.
As this problem does not occur in your case, I am assuming that it only happens on linux-based operating systems.
Code for image above:
from manimlib.imports import *
class TikzMobject(TextMobject):
CONFIG = {
"stroke_width": 3,
"fill_opacity": 0,
"stroke_opacity": 1,
}
class ExampleTikz(Scene):
def construct(self):
circuit = TikzMobject(r"""
\begin{tikzpicture}
\draw (0,0) -- (1,0);
\node at (1,0) {sometext};
\end{tikzpicture}
"""
)
self.play(Write(circuit))
self.wait()
from chanim.
Related Issues (17)
- Too much chemfig code exported to TeX-files HOT 1
- temporary files are saved in the wrong location
- NameError: name 'self' is not defined HOT 1
- Issue with Arrows HOT 9
- Hatched bonds HOT 1
- Examples usage? HOT 4
- OSError: no library called "cairo" was found HOT 3
- ImportError: cannot import name 'SmallDot' from 'manim.mobject.geometry' HOT 1
- How to implement reaction scheme in chanim HOT 7
- LaTeX compiler error
- New Manim Version not compatible HOT 2
- ImportError: cannot import name 'OpenGLMathTex' from 'manim.opengl' HOT 3
- Incompatible with ManimCE v0.17
- 2022-12 updates necessary! HOT 3
- compatibility with manim 0.17???
- TexSymbol is not defined HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chanim.