Comments (7)
Hi, sorry for a late response. I tried out your reaction and it worked fine on my end? Code and output:
class EmonHR(Scene):
def construct(self):
react = Reaction(
[
"@{a1}=_[@{db}::30]-[::-60]\\charge{90=\\|}{X}"
],
[
r"\chemabove{\vphantom{X}}{\ominus}-[::30]=_[::-60]\chemabove{X}{\scriptstyle\oplus}"
],
arrow_type="double",
)
self.add(react)
Unfortunately, the \chemmove
arrow won't be addable with Reaction
since it only stitches together the equation from the reactants, products and arrow parameters and places it within the \schemestart
... \schemestop
block. You might be able to get a similar result using something like CurvedArrow
, albeit with a bit of trial and error to get everything right. (though this make me want to find a way to put stuff before/after the scheme since I understand a lot of chemfig apparently works on predefined macros and stuff and modifying existing objects)
Regarding the documentation, I agree there should be examples and I've been a bit sloppy about that. Sorry! I'll try adding some in the near future.
The AminoPhthalate
scene works fine for me as well:
The \charge
macro is quite a recent addition to chemfig iirc (within the last year I think), so maybe try updating your chemfig install and see if that works?
from chanim.
Finally, solve that issue. Thanks, @kilacoda. Actually tlmgr update chemfig
wasn't worked for my case. I uninstall the whole texlive-full and reinstall the latest 2021 one from their .iso If I got free time then definitely create a PR to add some example in the README file.
from chanim.
If this issue can't be resolved, then could you tell me why this code is not working:
class AminoPhthalate(Scene):
def construct(self):
three_APA = ChemObject(
"*6(-=(-(=[-2]O)-[:36]\\charge{45:2pt=$\\scriptstyle-$}{O})-(-(=[2]O)-[:-36]\\charge{45:2pt=$\\scriptstyle-$}{O})=-=)"
)
self.add(three_APA)
It gives me
ValueError: latex error converting to dvi. See log output above or the log file:
media/Tex/***.log
But if I use ChemObject
without charge stuff, then it works perfectly, like
class Chem2(Scene):
def construct(self):
f1 = ChemObject("-[:30]=[:-30,,,,red]-[:30]")
self.play(Write(f1))
Could you explain how to show charging stuff only? It will be a great help.
from chanim.
It was not working on my side @kilacoda. Could you say which manim version you used to render the scene? I was using Manim Community v0.7.0
. Is that the reason? Here is the complete Traceback:
Traceback
✘ emonhossain@xenon ~/Desktop/chanim master ± manim chem.py EmonHR
Manim Community v0.7.0
center
\begin{center}
\schemestart \schemestop
\end{center}
[06/03/21 22:37:22] ERROR LaTeX compilation error: {log[error_pos][2:])} tex_file_writing.py:198
ERROR Context for error: tex_file_writing.py:223
\begin{center}
\schemestart
\chemfig{@{a1}=_[@{db}::30]-[::-60]\charge{90=\|}{X}}\arrow{<->[][]}\chemfig{\chemabove{\vphantom{X}}{\ominus}-[::30]=_[::-60]\chemabove{X}{\scriptstyle\oplus}
}
^ this line
\schemestop
\end{center}
Traceback (most recent call last):
╭──────────────────────────────────────────────────────────────────────────────────────╮
│ File │
│"/home/emonhossain/.local/lib/python3.8/site-packages/manim/cli/render/commands.py", │
│line 157, in render │
│ 154 for SceneClass in scene_classes_from_file(file): │
│ 155 try: │
│ 156 scene = SceneClass() │
│ ❱ 157 scene.render() │
│ 158 except Exception: │
│ 159 error_console.print_exception() │
│ 160 sys.exit(1) │
│ File "/home/emonhossain/.local/lib/python3.8/site-packages/manim/scene/scene.py", │
│line 201, in render │
│ 198 """ │
│ 199 self.setup() │
│ 200 try: │
│ ❱ 201 self.construct() │
│ 202 except EndSceneEarlyException: │
│ 203 pass │
│ 204 except RerunSceneException as e: │
│ File "chem.py", line 48, in construct │
│ 45 │
│ 46 class EmonHR(Scene): │
│ 47 def construct(self): │
│ ❱ 48 react = Reaction( │
│ 49 [ │
│ 50 "@{a1}=_[@{db}::30]-[::-60]\\charge{90=\\|}{X}" │
│ 51 ], │
│ File "/home/emonhossain/Desktop/chanim/chanim/chem_objects.py", line 348, in __init__│
│ 345 self.equation = self.get_equation() │
│ 346 # print(repr(self.equation)) │
│ 347 │
│ ❱ 348 super().__init__( │
│ 349 *self.equation, │
│ 350 stroke_width=stroke_width, │
│ 351 tex_template=self.template, │
│ File "/home/emonhossain/.local/lib/python3.8/site-packages/manim/mobject/svg/tex_mobj│
│ect.py", line 591, in __init__ │
│ 588 def __init__( │
│ 589 self, *tex_strings, arg_separator="", tex_environment="center", **kwar│
│ 590 ): │
│ ❱ 591 MathTex.__init__( │
│ 592 self, │
│ 593 *tex_strings, │
│ 594 arg_separator=arg_separator, │
│ File "/home/emonhossain/.local/lib/python3.8/site-packages/manim/mobject/svg/tex_mobj│
│ect.py", line 455, in __init__ │
│ 452 """ │
│ 453 ) │
│ 454 ) │
│ ❱ 455 raise compilation_error │
│ 456 self.set_color_by_tex_to_color_map(self.tex_to_color_map) │
│ 457 │
│ 458 if self.organize_left_to_right: │
│ File "/home/emonhossain/.local/lib/python3.8/site-packages/manim/mobject/svg/tex_mobj│
│ect.py", line 433, in __init__ │
│ 430 tex_strings = self.break_up_tex_strings(tex_strings) │
│ 431 self.tex_strings = tex_strings │
│ 432 try: │
│ ❱ 433 SingleStringMathTex.__init__( │
│ 434 self, │
│ 435 self.arg_separator.join(tex_strings), │
│ 436 tex_environment=self.tex_environment, │
│ File "/home/emonhossain/.local/lib/python3.8/site-packages/manim/mobject/svg/tex_mobj│
│ect.py", line 260, in __init__ │
│ 257 │
│ 258 assert isinstance(tex_string, str) │
│ 259 self.tex_string = tex_string │
│ ❱ 260 file_name = tex_to_svg_file( │
│ 261 self.get_modified_expression(tex_string), │
│ 262 environment=self.tex_environment, │
│ 263 tex_template=self.tex_template, │
│ File "/home/emonhossain/.local/lib/python3.8/site-packages/manim/utils/tex_file_writi│
│ng.py", line 46, in tex_to_svg_file │
│ 43 if tex_template is None: │
│ 44 tex_template = config["tex_template"] │
│ 45 tex_file = generate_tex_file(expression, environment, tex_template) │
│ ❱ 46 dvi_file = compile_tex( │
│ 47 tex_file, tex_template.tex_compiler, tex_template.output_format │
│ 48 ) │
│ 49 return convert_to_svg(dvi_file, tex_template.output_format) │
│ File "/home/emonhossain/.local/lib/python3.8/site-packages/manim/utils/tex_file_writi│
│ng.py", line 232, in compile_tex │
│ 229 for insight in get_insight(match): │
│ 230 logger.info(insight) │
│ 231 │
│ ❱ 232 raise ValueError( │
│ 233 f"{tex_compiler} error converting to" │
│ 234 f" {output_format[1:]}. See log output above or" │
│ 235 f" the log file: {log_file}" │
╰──────────────────────────────────────────────────────────────────────────────────────╯
ValueError: latex error converting to dvi. See log output above or the log file: media/Tex/68a980ec53c98db8.log
Even same ValueError for AminoPhthalate
. Could you suggest what I can do to fix this? @kilacoda
from chanim.
I don't think the manim version should affect that, since I'm using 0.7.0 as well. Could you share the contents of media/Tex/68a980ec53c98db8.log
?
from chanim.
Yes. Here are those files:
68a980ec53c98db8.log
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=latex 2021.2.19) 3 JUN 2021 22:54
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**media/Tex/68a980ec53c98db8.tex
(./media/Tex/68a980ec53c98db8.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14> (/usr/share/texlive/texmf-dist/tex/latex/stan
dalone/standalone.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty
Package: shellesc 2019/11/08 v1.0c unified shell escape interface for LaTeX
Package shellesc Info: Restricted shell escape enabled on input line 77.
) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2019/11/07 v1.0c TeX engine tests
)) (/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/share/texl
ive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count167
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
\sa@internal=\count168
\c@sapage=\count169
(/usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.cfg
File: standalone.cfg 2018/03/26 v1.3a Default configuration file for 'standalon
e' class
) (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
)
\c@part=\count170
\c@section=\count171
\c@subsection=\count172
\c@subsubsection=\count173
\c@paragraph=\count174
\c@subparagraph=\count175
\c@figure=\count176
\c@table=\count177
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen134
) (/usr/share/texmf/tex/latex/preview/preview.sty
Package: preview 2017/04/24 11.91 (AUCTeX/preview-latex)
(/usr/share/texlive/texmf-dist/tex/generic/luatex85/luatex85.sty
Package: luatex85 2016/06/15 v1.4 pdftex aliases for luatex
) (/usr/share/texmf/tex/latex/preview/prtightpage.def
\PreviewBorder=\dimen135
)
\pr@snippet=\count178
\pr@box=\box45
\pr@output=\toks16
)) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2020/02/14 3.40 The Babel package
(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2020/02/14 3.40 Babel switching mechanism
) (/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf
Language: english 2017/06/06 v3.3r English support from the babel system
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2020/02/14 3.40 Babel common definitions
\babel@savecnt=\count179
\U@D=\dimen136
(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@readstream=\read2
\bbl@dirlevel=\count180
)
Package babel Info: \l@canadian = using hyphenrules for english
(babel) (\language0) on input line 102.
Package babel Info: \l@australian = using hyphenrules for ukenglish
(babel) (\language66) on input line 105.
Package babel Info: \l@newzealand = using hyphenrules for ukenglish
(babel) (\language66) on input line 108.
)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2020/01/20 v2.17e AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen137
)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen138
) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count181
LaTeX Info: Redefining \frac on input line 227.
\uproot@=\count182
\leftroot@=\count183
LaTeX Info: Redefining \overline on input line 389.
\classnum@=\count184
\DOTSCASE@=\count185
LaTeX Info: Redefining \ldots on input line 486.
LaTeX Info: Redefining \dots on input line 489.
LaTeX Info: Redefining \cdots on input line 610.
\Mathstrutbox@=\box46
\strutbox@=\box47
\big@size=\dimen139
LaTeX Font Info: Redeclaring font encoding OML on input line 733.
LaTeX Font Info: Redeclaring font encoding OMS on input line 734.
\macc@depth=\count186
\c@MaxMatrixCols=\count187
\dotsspace@=\muskip16
\c@parentequation=\count188
\dspbrk@lvl=\count189
\tag@help=\toks18
\row@=\count190
\column@=\count191
\maxfields@=\count192
\andhelp@=\toks19
\eqnshift@=\dimen140
\alignsep@=\dimen141
\tagshift@=\dimen142
\tagwidth@=\dimen143
\totwidth@=\dimen144
\lineht@=\dimen145
\@envbody=\toks20
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2859.
LaTeX Info: Redefining \] on input line 2860.
) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
)) (/usr/share/texlive/texmf-dist/tex/generic/chemfig/chemfig.sty (/usr/share/t
exlive/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty (/usr/share/texlive/texm
f-dist/tex/latex/pgf/basiclayer/pgf.sty (/usr/share/texlive/texmf-dist/tex/late
x/pgf/utilities/pgfrcs.sty (/usr/share/texlive/texmf-dist/tex/generic/pgf/utili
ties/pgfutil-common.tex
\pgfutil@everybye=\toks22
\pgfutil@tempdima=\dimen146
\pgfutil@tempdimb=\dimen147
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
\pgfutil@abb=\box48
(/usr/share/texlive/texmf-dist/tex/latex/ms/everyshi.sty
Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS)
)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex (/u
sr/share/texlive/texmf-dist/tex/generic/pgf/pgf.revision.tex)
Package: pgfrcs 2020/01/08 v3.1.5b (3.1.5b)
))
Package: pgf 2020/01/08 v3.1.5b (3.1.5b)
(/usr/share/texlive/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty (/usr/share
/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2019/11/30 v1.2a Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2019/11/30 v1.4a Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: dvips.def on input line 105.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/dvips.def
File: dvips.def 2017/06/20 v3.1d Graphics/color driver for dvips
))
\Gin@req@height=\dimen148
\Gin@req@width=\dimen149
) (/usr/share/texlive/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty (/usr/sha
re/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
Package: pgfsys 2020/01/08 v3.1.5b (3.1.5b)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks23
\pgfkeys@temptoks=\toks24
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.t
ex
\pgfkeys@tmptoks=\toks25
))
\pgf@x=\dimen150
\pgf@y=\dimen151
\pgf@xa=\dimen152
\pgf@ya=\dimen153
\pgf@xb=\dimen154
\pgf@yb=\dimen155
\pgf@xc=\dimen156
\pgf@yc=\dimen157
\pgf@xd=\dimen158
\pgf@yd=\dimen159
\w@pgf@writea=\write3
\r@pgf@reada=\read3
\c@pgf@counta=\count193
\c@pgf@countb=\count194
\c@pgf@countc=\count195
\c@pgf@countd=\count196
\t@pgf@toka=\toks26
\t@pgf@tokb=\toks27
\t@pgf@tokc=\toks28
\pgf@sys@id@count=\count197
(/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg
File: pgf.cfg 2020/01/08 v3.1.5b (3.1.5b)
)
Driver file for pgf: pgfsys-dvips.def
(/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvips.def
File: pgfsys-dvips.def 2020/01/08 v3.1.5b (3.1.5b)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postsc
ript.def
File: pgfsys-common-postscript.def 2020/01/08 v3.1.5b (3.1.5b)
\pgf@objectcount=\count198
)))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.
tex
File: pgfsyssoftpath.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgfsyssoftpath@smallbuffer@items=\count199
\pgfsyssoftpath@bigbuffer@items=\count266
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.
tex
File: pgfsysprotocol.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: dvips.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
Package: pgfcore 2020/01/08 v3.1.5b (3.1.5b)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (/usr/shar
e/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex (/usr/share/texl
ive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) (/usr/share/texlive/t
exmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
\pgfmath@dimen=\dimen160
\pgfmath@count=\count267
\pgfmath@box=\box49
\pgfmath@toks=\toks29
\pgfmath@stack@operand=\toks30
\pgfmath@stack@operation=\toks31
) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonomet
ric.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.cod
e.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison
.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerari
thmetics.code.tex))) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmat
hfloat.code.tex
\c@pgfmathroundto@lastzeros=\count268
)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfint.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.te
x
File: pgfcorepoints.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgf@picminx=\dimen161
\pgf@picmaxx=\dimen162
\pgf@picminy=\dimen163
\pgf@picmaxy=\dimen164
\pgf@pathminx=\dimen165
\pgf@pathmaxx=\dimen166
\pgf@pathminy=\dimen167
\pgf@pathmaxy=\dimen168
\pgf@xx=\dimen169
\pgf@xy=\dimen170
\pgf@yx=\dimen171
\pgf@yy=\dimen172
\pgf@zx=\dimen173
\pgf@zy=\dimen174
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.
code.tex
File: pgfcorepathconstruct.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgf@path@lastx=\dimen175
\pgf@path@lasty=\dimen176
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code
.tex
File: pgfcorepathusage.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgf@shorten@end@additional=\dimen177
\pgf@shorten@start@additional=\dimen178
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.te
x
File: pgfcorescopes.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgfpic=\box50
\pgf@hbox=\box51
\pgf@layerbox@main=\box52
\pgf@picture@serial@count=\count269
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.c
ode.tex
File: pgfcoregraphicstate.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgflinewidth=\dimen179
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformation
s.code.tex
File: pgfcoretransformations.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgf@pt@x=\dimen180
\pgf@pt@y=\dimen181
\pgf@pt@temp=\dimen182
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex
File: pgfcorequick.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.t
ex
File: pgfcoreobjects.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing
.code.tex
File: pgfcorepathprocessing.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.te
x
File: pgfcorearrows.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgfarrowsep=\dimen183
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex
File: pgfcoreshade.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgf@max=\dimen184
\pgf@sys@shading@range@num=\count270
\pgf@shadingcount=\count271
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex
File: pgfcoreimage.code.tex 2020/01/08 v3.1.5b (3.1.5b)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.
tex
File: pgfcoreexternal.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgfexternal@startupbox=\box53
))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.te
x
File: pgfcorelayers.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.c
ode.tex
File: pgfcoretransparency.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.
tex
File: pgfcorepatterns.code.tex 2020/01/08 v3.1.5b (3.1.5b)
) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex
File: pgfcorerdf.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex
File: pgfmoduleshapes.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgfnodeparttextbox=\box54
) (/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex
File: pgfmoduleplot.code.tex 2020/01/08 v3.1.5b (3.1.5b)
)
(/usr/share/texlive/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65
.sty
Package: pgfcomp-version-0-65 2020/01/08 v3.1.5b (3.1.5b)
\pgf@nodesepstart=\dimen185
\pgf@nodesepend=\dimen186
)
(/usr/share/texlive/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18
.sty
Package: pgfcomp-version-1-18 2020/01/08 v3.1.5b (3.1.5b)
)) (/usr/share/texlive/texmf-dist/tex/latex/pgf/utilities/pgffor.sty (/usr/shar
e/texlive/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty (/usr/share/texlive/te
xmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex)) (/usr/share/texlive/texmf
-dist/tex/latex/pgf/math/pgfmath.sty (/usr/share/texlive/texmf-dist/tex/generic
/pgf/math/pgfmath.code.tex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/uti
lities/pgffor.code.tex
Package: pgffor 2020/01/08 v3.1.5b (3.1.5b)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)
\pgffor@iter=\dimen187
\pgffor@skip=\dimen188
\pgffor@stack=\toks32
\pgffor@toks=\toks33
))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
Package: tikz 2020/01/08 v3.1.5b (3.1.5b)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers
.code.tex
File: pgflibraryplothandlers.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgf@plot@mark@count=\count272
\pgfplotmarksize=\dimen189
)
\tikz@lastx=\dimen190
\tikz@lasty=\dimen191
\tikz@lastxsaved=\dimen192
\tikz@lastysaved=\dimen193
\tikz@lastmovetox=\dimen194
\tikz@lastmovetoy=\dimen195
\tikzleveldistance=\dimen196
\tikzsiblingdistance=\dimen197
\tikz@figbox=\box55
\tikz@figbox@bg=\box56
\tikz@tempbox=\box57
\tikz@tempbox@bg=\box58
\tikztreelevel=\count273
\tikznumberofchildren=\count274
\tikznumberofcurrentchild=\count275
\tikz@fig@count=\count276
(/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex
File: pgfmodulematrix.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgfmatrixcurrentrow=\count277
\pgfmatrixcurrentcolumn=\count278
\pgf@matrix@numberofcolumns=\count279
)
\tikz@expandcount=\count280
(/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tik
zlibrarytopaths.code.tex
File: tikzlibrarytopaths.code.tex 2020/01/08 v3.1.5b (3.1.5b)
))) (/usr/share/texlive/texmf-dist/tex/generic/chemfig/chemfig.tex (/usr/share/
texlive/texmf-dist/tex/generic/simplekv/simplekv.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/libraries/pgflibraryarrows.meta.
code.tex
File: pgflibraryarrows.meta.code.tex 2020/01/08 v3.1.5b (3.1.5b)
\pgfarrowinset=\dimen198
\pgfarrowlength=\dimen199
\pgfarrowwidth=\dimen256
\pgfarrowlinewidth=\dimen257
)
\CF_cntatomgroup=\count281
\CF_cntgroup=\count282
\CF_cntatom=\count283
\CF_cntcycle=\count284
\CF_cntcompound=\count285
\CF_dim=\dimen258
\CF_arrowsize=\dimen259
\CF_zero=\dimen260
\CF_boxlewis=\box59
\CF_box=\box60
\CF_boxstuff=\box61
\CF_substtoks=\toks34
)
Package: chemfig 2019/05/21 v1.41 Draw molecule with an easy syntax (CT)
) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def
File: l3backend-dvips.def 2020-02-03 L3 backend support: dvips
\l__pdf_internal_box=\box62
\g__pdf_backend_object_int=\count286
\l__pdf_backend_content_box=\box63
\l__pdf_backend_model_box=\box64
\g__pdf_backend_annotation_int=\count287
\g__pdf_backend_link_int=\count288
\g__pdf_backend_link_sf_int=\count289
) (media/Tex/68a980ec53c98db8.aux)
\openout1 = `68a980ec53c98db8.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
Preview: Fontsize 10pt
ABD: EveryShipout initializing macros
LaTeX Font Info: Trying to load font information for U+msa on input line 13.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info: Trying to load font information for U+msb on input line 13.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
! Undefined control sequence.
\atom_1 ->\charge
{90=\|}{X}
l.13 ...]\charge{90=\|}{X}}\arrow{<->[][]}\chemfig
{\chemabove{\vphantom{X}}{...
Here is how much of TeX's memory you used:
14424 strings out of 481240
281622 string characters out of 5920403
534822 words of memory out of 5000000
29433 multiletter control sequences out of 15000+600000
534037 words of font info for 32 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
68i,10n,95p,643b,1249s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
68a980ec53c98db8.tex
\documentclass[preview]{standalone}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{chemfig}
\setchemfig{atom sep=2em,chemfig style=, atom style=,angle increment=45,bond offset=2pt,double bond sep=2pt, node style=, bond style=,scheme debug=false, atom sep=2em, arrow angle={0}, arrow coeff={1}, arrow style={}}
\begin{document}
\begin{center}
\schemestart
\chemfig{@{a1}=_[@{db}::30]-[::-60]\charge{90=\|}{X}}\arrow{<->[][]}\chemfig{\chemabove{\vphantom{X}}{\ominus}-[::30]=_[::-60]\chemabove{X}{\scriptstyle\oplus}}
\schemestop
\end{center}
\end{document}
from chanim.
I think it might be because TeX Live 2019 provides an older version of chemfig
by default which doesn't include the \charge
macro. Try running tlmgr update chemfig
and see if there's an update available?
from chanim.
Related Issues (16)
- Too much chemfig code exported to TeX-files HOT 1
- ImportError: cannot import name 'SmallDot' from 'manim.mobject.geometry' HOT 1
- LaTeX compiler error
- New Manim Version not compatible HOT 2
- ImportError: cannot import name 'OpenGLMathTex' from 'manim.opengl' HOT 3
- temporary files are saved in the wrong location
- Incompatible with ManimCE v0.17
- 2022-12 updates necessary! HOT 3
- compatibility with manim 0.17???
- Bonds not displayed HOT 3
- 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
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.