Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chemfig]

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

4
votes
2answers
35 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
54 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
29 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
111 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
179 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
44 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
81 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
69 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
66 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
95 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
52 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
40 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
27 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
30 views
4
votes
2answers
73 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
66 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
59 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
83 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
62 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
113 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
64 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
60 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
67 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
207 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
90 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
42 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
62 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
92 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
0answers
138 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
44 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
119 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
77 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
86 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
81 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
62 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
72 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
125 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
65 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
31 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{+}}?---...
3
votes
1answer
52 views

Two unconnected rings connected by a single atom

How would I draw this hypothetical molecule? All I am able to find is how to draw two rings connected by a common bond, but not how to draw two rings connected only by a single atom. The rotation of ...
3
votes
1answer
49 views

Conflict of chemfig, babel and beamer?

I use the chemfig package with beamer for several years together with czech language set in babel. I am aware of the conflict between the babel shorthand that activates hyphen, and the chemfig ...
3
votes
1answer
93 views

Set aromatic ring thickness in Chemfig

I use \newcommand{\bondwidth}{0.06642 em} and \setbondstyle{line width = \bondwidth} to make my bonds a bit thicker, however, this doesn't seem to affect aromatic rings, leading to a slightly ...
4
votes
1answer
107 views

Correctly placing the benzene ring in Polystyrene

First post, sorry if I get the formatting wrong. I am attempting to produce a Display Formula for Poly Styrene, but have not been able to get the benzene ring to place properly. This is my current ...
1
vote
1answer
184 views

Unable to run the package chemfig with TexMaker

I want to use the package chemfig to draw chemical structures. I am using Texmaker. Whenever I try to run the chemfig package I get the following error message: ! I can't find file `simplekv.tex'. &...
2
votes
1answer
92 views

Complex reaction mechanisms in chemfig

I would like to draw the figure shown below So far I've come so far: As you can see, the arrows from the "NAPQI" named molecule, are not really where they belong. I would like to make further arrows ...
6
votes
1answer
95 views

Trouble with hooks in chemfig

I am trying to construct this EDTA molecule coordinated to a metal: and this is what I have so far: With this code: \chemfig{ O=[2,,]C (-[3,2,,1]CH_2-[1,,1]N (-[7,,,2]H_2C-[...
5
votes
1answer
45 views

How to eliminate ring distortion in chemfig

I am trying to draw a molecule with two connecting pentagonal rings. This is what I have so far: \begin{figure} \chemfig{ O=_[1,,]*5([::-45]-O-Cu*5([::-72]-NH_2--(=^[1,,]O)-O-)-NH_2--) } \caption{...
4
votes
1answer
78 views

Chemfig: multiple arrows from one molecule

I would like to have several arrows going from one molecule (chemfig). I managed left and right, but now I also want one going 90° down from the molecule in the middle. This is what I tried (ignore ...