Questions tagged [chemfig]

{chemfig} is for questions pertaining to the use of the chemfig package for drawing 2D molecules and reaction schemes.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

Labelling the branches in branching chemical equations using chemfig

The picture below shows what I intend to achieve: The tex script that I wrote: \usepackage{chemfig} . . . \schemestart[0,1.25] \chemfig{*6(-=-=(-CH\textsubscript3)-=)}\arrow{->[Alk. $KMnO_4$][$...
2
votes
2answers
24 views

Chemfig Increasing the length of a vertical bond in a branched alkane

Currently I am having an issue due to intersection between substituent species off of a branched alkane that I want to make in a 'complete structure' form. I figured increasing the vertical bond ...
2
votes
1answer
33 views

chemical reaction, arrow misplaced

I am new on latex and on chemfig. Here are the molecules that I would like to draw. My problem is that I can't put the arrow where I would like it to be. I have tried with the anchors but apparently ...
3
votes
1answer
62 views

Help with chemistry equation

I'm trying to reproduce the following equation using the chemfig package : I've been at this for a few hours, trying out different approaches but as soon as one thing works, something else seems to ...
0
votes
0answers
27 views

My file chemfil short out

I would like my file not to leave the sheet, not to be cut, but I can't do it \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[francais]{babel} \usepackage[T1]{fontenc} \...
3
votes
1answer
65 views

Chemical reaction

Good morning, everyone, I am a Bachelor of Science in Physics student, and I would like to be able to reproduce the routing of this example here on Latex, not necessarily draw the molecules, I learn ...
3
votes
0answers
23 views

Using chemfig, how to make individual bonds longer or no longer visible

I am currently trying to draw the structure of a complex for a project \documentclass[12pt]{report} \usepackage[margin=1in]{geometry} \usepackage{chemfig} \begin{document} \chemfig{ La(-[:0](**5(...
6
votes
2answers
117 views

Curved double arrow in tikz?

High all, this is related to a previous question I asked (see here). I would like to make the double arrow between the alcohol and the amine curved (annotated with blue nodes above and below the arrow)...
3
votes
1answer
84 views

Drawing a Chemical Reactions Flow Chart

I know I should probably separate the questions into multiple stems but I don't want to spam. I am attempting to recreate this diagram but there are a few parts I am unsure of: Here is my code for ...
4
votes
2answers
40 views

Chemfig: Bond line partly passing through atoms when shrinking

How can I fix the bond to the top OCH3 group to not pass partly through the O? \documentclass[12pt, norsk, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[norsk]{babel} \usepackage{fullpage}...
5
votes
1answer
58 views

How to create cram bonds with anchors

I want to recreate the chemical structure of 1,8-cineol in chemfig. On Wikipedia it's shown like this: The best I can come up with is this code, with an anchor for the oxygen atom: \documentclass[...
0
votes
0answers
33 views

How to install and use chemfig latex package on ec2 server?

I want to use some extra latex package like chemfig for converting chemical latex equation into PNG image. Thanks in advance
4
votes
1answer
113 views

How to draw organometallic compounds?

I'm trying to draw this molecule using the chemfig package but honestly don't know where or how to start. Please help. Thank you. \documentclass{article} \usepackage{chemfig} \setcrambond{3pt}{}{} \...
2
votes
2answers
215 views

Horizontal and vertical alignment of chemfig structures

I'd like to align these four chemfig structures, seen below, horizontally and vertically. (The centers of the rectangles are vertices of a new rectangle. I would prefer an automatic solution.) \...
2
votes
1answer
46 views

Retrosynthetic double arrow in chemfig

How to draw a double arrow in chemfig scheme:
0
votes
0answers
30 views

How To Draw a Monomer on Latex [duplicate]

I'm new to drawing chemical figures in LaTeX, so I can't really show my "attempt" Could somebody show how to draw the monomer for starch in LaTeX? It should look something like this by the time I'm ...
2
votes
1answer
82 views

chemfig: Error when using fine adjustment of bond

I'm having some problems when using fine adjustment of bond #(<dim1>,<dim2>) inside a definesubmol code. The output is correct, but return a error message: line 7: Illegal parameter ...
4
votes
1answer
74 views

Is there a simple/elegant way to color atom groups in chemfig?

I have a lot of molecules to draw. For teaching purposes I need to color certain atoms or group of atoms. Due to alignment of the main chain, I'm using a | symbol after each atom on group, combined ...
2
votes
2answers
73 views

Change font chemfig on LaTeX

Is it possible to change the font that chemfig uses (for example to Helvetica) without using XeLaTeX or LuaTeX, but keep the normal math font throughout the document? I tried \usepackage[helvet]{...
3
votes
1answer
100 views

Error when rendering svg

I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error: ! Undefined control sequence. \pgfsys@svg@newline ->\Hnewline when running the command make4ht -u "...
1
vote
1answer
65 views

LaTex ChemFig how to put parentheses around polymer?

\documentclass[12pt]{article} \usepackage[a4paper, margin=2.5cm]{geometry} \usepackage{chemfig} \begin{document} \begin{center} { \chemname {\chemfig{HO-[:30]-[:-30]-[:30]OH}} {Diol}\\ \bigskip \...
3
votes
1answer
42 views

How to vertically align (center) components in a chemical reaction?

is there a way to somehow align the components [-M-] and the arrow so that everything is vertically centered? Thank you in advance! \documentclass{article} \usepackage{chemfig} \begin{document} \...
3
votes
1answer
28 views

How to vertically align letter before brackets in chemfig?

how can I vertically center this little letter n before the left bracket? I want it to be not at top but instead at middle. Thanks in advance. \documentclass{article} \usepackage{chemfig} \begin{...
0
votes
0answers
33 views
4
votes
2answers
78 views

Chemistry Lewis Dot Diagram: Moving Square Bracket

\documentclass{article} \usepackage{chemfig} \begin{document} \schemestart \chemfig{\lewis{2.4.6.,C}-\lewis{2.6.0.,N}} \arrow \chemleft[ \chemfig{\lewis{4:,C}~\lewis{0:,N}}\chemright ] ...
4
votes
1answer
73 views

Color changes of orbitals in chemmacros

I'm trying to change the colors of these orbitals. So instead of the clear and blue color, I want them to be red and blue only. I tried changing the setup color, but just becomes red and clear or blue ...
1
vote
1answer
39 views

Moving labels for chemfigs

How do I modify or adjust the vertical and horizontal alignment of the labels? If I add spaces before or after the desired label, I can make a horizontal adjustment. But, I can't figure out the ...
3
votes
1answer
64 views

Chemfig arrow has a gap

I got the following problem. When I draw a <-> arrow with chemfig it has a gap in the middle. The funny thing is the gap is only if my arrow goes from right to left. Vertical arrows are drawn ...
2
votes
1answer
92 views

chemfig: double harpoon + curved arrow in reaction + rate constants

I've been trying to draw the following reaction scheme using chemfig: Following the response given here: chemfig: double harpoon + arched in/out arrow in reaction, I've managed to draw the following ...
0
votes
1answer
66 views

Using the \chemfig package to draw inorganic compounds

I'm trying to draw a similar molecule as the picture below using the \chemfig package, but don't really know where to start. How would I do it?
1
vote
1answer
129 views

How to write organic chemical equation of the following form

I need to write this transesterification reaction and give it an equation number. How can I do so?
3
votes
1answer
66 views

ps2pdf error with \arrow in chemfig package [duplicate]

The conversion of dvi to pdf fails when using the \arrow command. For instance, the file \documentclass{article} \usepackage{chemfig} \begin{document} \schemestart A\arrow B \schemestop \end{...
4
votes
1answer
64 views

How to align rings after rotating

Rings are aligned with each other using LaTeX chemfig package at their C-1 positions (southwest corners). Rotating one of the rings will cause a misalignment although both rings are still aligned at ...
3
votes
1answer
79 views

Aligning multiple subfigures in figure

I'm using the chemfig package for some structural diagrams I'm preparing for a lab report, and I need to align five structural diagrams (with their own name captions) in a 2x3 column-and-row format. ...
4
votes
1answer
224 views

Chemfig: a 3d molecule

I want to draw the molecule attached with chemfig. Could not find anything for the core of the connections. Any idea?
5
votes
1answer
97 views

Fail to pass arguments to orbital module of chemmacros when used inside chemfig

While illustrating atomic orbitals for 1,3-butadiene guided by examples in chemmacros' manual, I receive the following error: Argument of \orbital has an extra }. } MWE: \documentclass{article} \...
0
votes
0answers
43 views

Chemfig doesn't show bonds at all [duplicate]

I tried using chemfig but I've run into a problem. For example I tried drawing a methane molecule with this code: \documentclass[a4paper]{article} \usepackage[czech]{babel} % czech \usepackage[...
1
vote
0answers
66 views

Weird chemfig 1.33 behaviour with polymerdelim

I observed a very weird behaviour regarding chemfig and the polymer delimiters. I have created a minimal working example: main.tex: \documentclass[12pt,a4paper,ngerman]{article} \include{preamble} %\...
1
vote
1answer
99 views

ChemFig: Numbering each step in (defined) scheme environment

Before asking my question I have several related issues concerning chemfig and chemmacros packages. While defining a new scheme environment (link) for chemfig, I keep having Errors if I have ...
4
votes
1answer
160 views

Incorrect positioning when using tikz overlay and remember picture

When I use chemfig in conjuction when \tikz[overlay,remember picture] the positioning does go in the correct position. I am using XeLaTeX and the yLaTeX class (see this link: https://github.com/...
1
vote
2answers
45 views

Arrival atom numbering doesn't work with \chemabove

Consider the following MWE: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{ X -[:30,,,2]^{18}\chemabove{O}{H} -[:-30]X } \end{document} This code returns an ...
2
votes
1answer
134 views

Chemfig MakeBraces error

I want to make polymer structures with chemfig like this: \documentclass{article} \usepackage{chemfig} \begin{document} \newcommand\setpolymerdelim[2]{\def\delimleft{#1}\def\delimright{#2}} \def\...
1
vote
0answers
84 views

Writing above and over double arrow [duplicate]

I am writing several chemical formulas and reactions and I want to write over a reversible reaction the reaction constants for the Forwards and reverse reaction. So far I have the following: But I ...
4
votes
1answer
95 views

How to typset/draw conjugate acids and bases

Hello I need help drawing/typesetting an acid base reaction showing the conjugate pairs: Here is what I have so far: \documentclass{article} \usepackage{chemfig} \usepackage{endiagram} \usepackage{...
4
votes
1answer
89 views

Counter ions and charge of a complex

how can I add the charge and the counter ions to my complex? I'm using chemfig. \schemestart \chemname{\chemleft[\chemfig{Ni (<:[1]OH_2) (-[2]OH_2) (<:[3]OH_2) (<[5]OH_2) (-[6]OH_2) (<[7]...
3
votes
1answer
67 views

Connecting repeating fragments of the molecular structure possessing rotational symmetry with chemfig

While drawing a structure of a hexabenzocoronene derivative, I decided to start with the central benzene ring, then define repeating fragment via \definesubmol and attach the bridging carbon atom once ...
5
votes
1answer
75 views

Drawing a 'chair' representation with brackets

\documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{ % 8 -O% 7 -% 1 -[:60]% 2 ( -[:120]% 18 ...
0
votes
1answer
139 views

Making chemfig brackets

I am trying to draw some polymer structures with brackets ()n, but I don't really get the instructions of the chemfig manual... Here an example which gives me weird braces at the wrong place: \...
1
vote
1answer
70 views

Chemfig: reaction mechanism problem: arrow position

Hello everybody. As you all can see the curved arrow doesn't point to the positive carbon as it should, but it kink of turn around the bond. How can I solve this? Thanks in advance for any answer! \...
1
vote
1answer
32 views

Overleaf, How do I insert a \definesubmol with hooks “?” in a parent structure multiple times?

I have defined a submol for TEDA so that it can be inserted via !{TEDA} into a parent structure (Hexamethylbenzene). \definesubmol{TEDA}{-[::60]*6(\chemabove{\textcolor{blue}{N}}{\scriptstyle{+}}?---...