A package for drawing 2D molecules using the TikZ package.

learn more… | top users | synonyms

20
votes
1answer
387 views

Showing pi bonding through chemfig

I've tried to make a diagram which shows pi bonding through chemfig, but I was not successful. Here is what I want. or Since I was unable to do it with chemfig I decided to do it with tikz. This ...
16
votes
3answers
1k views

Plus sign in the middle of a ring

I would like to draw in chemfig the following picture: But I am struggling with the "+" sign in the middle of the circle. Is there a way to draw it? Thank you! What I have so far is this: ...
15
votes
3answers
3k views

Easy chemical reactions

I'm trying to convert some of my lecture slides to LaTeX. What's the best way to convert a number of slides (similar to the one below) into nice notes? I am aware of mhchem and chemstyle, but I don't ...
13
votes
2answers
569 views

Draw Lewis structures like a book

I want to draw a Lewis structure as in the picture. I tried to do with chemfig but does not perform the separation of the points and a minus in the superscript.
11
votes
2answers
1k views

chemfig and lego-style molecule construction

Many biochemical molecules, such as nucleic acids for example, are composed by nature in a hierarchical fashion from a limited number of building blocks. It would be nice to replicate this approach ...
10
votes
2answers
237 views

Ugly bond joints in chemfig

Making my first scientific poster I have noticed that Chemfig does not join bonds in a very aesthetic way (see attached image). How can I avoid the small gaps shown here, and make sure the transition ...
9
votes
2answers
473 views

Crossing bonds in chemfig

Sometimes, molecular structures have crossing bonds, and we want to indicate which bond is in the foreground. In the chemfig example below, I have done this by first drawing a thick, white bond to an ...
9
votes
1answer
436 views

drawing cellulose and aligning monomers in chemfig

The problem I had to face yesterday was related to draw a cellulose molecule with chemfig. In particular I'm not familiar with tikz, so I had problems in aligning the monomers. I was used to ...
8
votes
2answers
586 views

How to number atoms using chemfig?

I need to number atoms using chemfig. I thought I could use \chembelow and \chemabove to place numbers above and below but adding these commands changes the look of the drawing and does not simply ...
7
votes
1answer
769 views

How to make a phenyl radical with chemfig?

I'm trying to make a phenyl radical using chemfig, so far I've used this code: \chemfig{*6(-\Lewis{0.,}=-=-=)} What I obtain however is this, with a "broken" angle in the phenyl: How to obtain a ...
7
votes
1answer
313 views

Drawing Benzene resonance mechanism, and reaction mechanism + curly arrows

I am new to LaTeX and there are few things at which I am stuck. I can draw benzene with alternate double bonds but I don't know how to draw curly arrows to show bond shifting and electrophile attack. ...
7
votes
2answers
263 views

Chemfig package compatibility

Looking for help on the following problem: I am trying to use chemfig package in my document, however after initial insertion had the following error: !No room for a new \dimen. I found No room ...
7
votes
1answer
1k views

Easy way to draw atomic orbitals and integrate them into ChemFig structures

I'm looking for a method to draw molecules as skeleton structures via chemfig and include some atomic orbitals (i.e. s, p and d orbitals and some sp-hybrid orbitals too) into them (at positions where ...
6
votes
1answer
307 views

How to draw/annotate with TikZ on molecules drawn with chemfig package?

I have just discovered the TikZ spin-off chemfig package for chemistry drawings. I just wanted to add some transparent box to highlight a certain region of the drawn molecule with some text using ...
6
votes
1answer
98 views

Chemfig: length and angle of bonds

I've just tried using chemfig for the first time to try and recreate a figure (below). I had a quick look through the manual so see if there was an example that I could adapt to my needs, and this ...
6
votes
2answers
159 views

How to draw counter-ions using chemfig package?

For my thesis I need to draw this: With this code I could get everything except for the counter-ion (shown with red arrow, I do not need the red arrow and the line on the figure). ...
6
votes
1answer
112 views

Aromatic rings resized with chemfig

When I want to reduce the size of a molecule drawn with chemfig I usually put a [scale=0.xx] before the argument of the command. However when I deal with aromatic rings this method doesn't work well, ...
6
votes
1answer
163 views

Missing bond type in chemical rendering packages?

I've read all the questions regarding chemical structure rendering that I could find on this website. I've decided to use chemfig to render the structures. One certain type of bond, illustrated ...
5
votes
2answers
875 views

How to draw parentheses inside chemfig?

I have the following code: \chemfig[][scale=0.6]{ CH_2=[:-30]CH-[:30]C(=[:90]O)-[:-30]O-[:30]CH_2CH_2-[:-30]O-[:30]C(=[:90]O)-[:-30]CH=[:30]CH_2 } Which gives me this image: Now I want to draw ...
5
votes
1answer
906 views

How can I get Lewis-like structures + illustrate electron transfer

I know about the existence of packages that allow Lewis structures but that is not the question. The question is how to illustrate radical reactions as depicted below. The solution would ideally be ...
5
votes
2answers
555 views

Easy way to write below arrow (\arrow{-U>}) in chemfig?

I have been using chemfig for a while and I like it very much. But some small things I still can't do. Check this example: \schemestart ...
5
votes
2answers
263 views

Fine tuning parentheses inside chemfig

I have the following code: \documentclass[12pt]{report} \usepackage{chemfig} %these for bonds in chemfig \setdoublesep{0.35700 em} % 'Bond Spacing' \setatomsep{1.78500 em} % 'Fixed Length' ...
5
votes
1answer
122 views

Ring as a submolecule

Is there a nice way to define a ring submolecule and then reuse it in a bigger molecule (maybe something similar to “chemfig and lego-style molecule construction”? (append one ring after another) I ...
5
votes
2answers
70 views

Angles in Chemfig

I want to draw this formula using chemfig: This is what I've got so far: \chemfig{Cu^+(-[:180]N**6(-**6(------)--(-OOC-)---))(-[1]N)(-[5]N)(-[7]N)} I don't get the angle from N to Cu+ right. I ...
5
votes
2answers
348 views

uncover chemfig molecule (in beamer)

I teach chemistry and wish to demonstrate drawing and naming of chemical structures I use chemfig to draw my molecules and I can do that fine. However, in for example the molecule ...
5
votes
1answer
99 views

Chemfig - command arrow - alignment doesn't work

I'm writing my bachelor thesis. I wanted to insert a chemical equation, but the reactant and the product are not horizontally aligned well. I found in Chemfig manual a solution to this problem but ...
5
votes
1answer
247 views

amino acids with chemfig, some bonds are falsely positioned

I produced all of the amino acids for my thesis, but Proline and Histidin keep bugging me. I would like to place the -= bond that is now from H to H+ in Histidin from N to N and the bond - from C ...
5
votes
1answer
425 views

Placement of caption in \chemfig via \chemname command - how to reset spacing

I'm trying to put a number of different molecule structures into one document with the help of the chemfig package. The package also allows to add the name of the compound to the structure as a ...
5
votes
1answer
72 views

change fontshape for lewis dot in chemfig chemmacro

I wish to draw a chemical reaction showing a radical chain reaction. I am using chemfig and chemmacros and beamer. beamer uses sans serif fonts which is good for display and less fussy. When I write ...
5
votes
1answer
156 views

Fill the background of functional groups in chemfig

I want to fill the background of some functional groups or atoms including bonds to emphasize them. For instance, to emphasize carbonyl group in a keton, fill the background of C=O like: I'm using ...
5
votes
1answer
266 views

Chemfig new line reaction scheme

I just recently started using LaTeX and chemfig and have a question in regard with making a new line in the text below or above the reaction arrow. I am trying to place MW, 160C, 5min under Na2CO3, ...
5
votes
1answer
403 views

How to draw ligands with different hapticities

In organometallic chemistry it's common to draw ligands that are not bound atom to atom. Common examples are ferrocene: or Zeisse's salt: Does anyone have a strategy for approaching structures ...
5
votes
1answer
87 views

How to alter the bond length of a double bond in chemfig?

With the chemfig package, is it possible to alter the bond length of the pi-bond in a double-bond? I know about the \setbondoffset{}-command, but in this case, this does not work. Hope the below ...
5
votes
1answer
93 views

Vertical alignment of atoms in chemfig

I have a problem aligning atoms in chemfig when one of the atoms has a descender. The solution proposed in the manual is not really good, because it changes the position of bonds. Consider the test ...
5
votes
2answers
212 views

Chemfig: colour entire atom or section of atom

I have a molecule (in this case a copolymer) where I would like to hilight the monomers by colouring a number of atoms. Is there a more efficient way to do this than colouring each atom and bond ...
5
votes
1answer
154 views

Problem with alignment

I have the following tikz code: \schemestart \chemname{\chemfig[][scale=0.6]{ ...
5
votes
1answer
132 views

Drawing atomic orbitals upon a chemfig structure

Is there a way to draw an atomic orbital in a chemfig structure? I think you can better understand if you see want I want to get: Here is what I've already done. Any improvement would be appreciated. ...
5
votes
2answers
175 views

Two chemfig lewis diagrams side by side with labels below

MWE: \documentclass{report} \usepackage{chemfig} %for chemistry diagrams \begin{document} \vspace{10mm} \setatomsep{2em} \begin{center} \chemfig{% ...
4
votes
2answers
162 views

Two arrows in a row in chemfig

I have a problem drawing two arrows in a row in chemfig. I need : A->->B but when I place two arrows, I get a space between them which I don't need: A-> ->B How to fix that? Any help is ...
4
votes
1answer
171 views

How can I place H_2 on top of a N ? (aspartic and glutammic metal complexes)

Please consider the following code \documentclass{article} \usepackage{chemfig} \newcommand*\circleatom[1]{\tikz\node[circle,draw,fill=green!30]{\printatom{#1}};} \begin{document} ...
4
votes
1answer
176 views

How to annotate this chemical scheme using chemfig package?

To depict a chemical scheme with more than one reactant and more than one product, I used the handy package chemfig. I found some issues though annotating the below chemical reaction in a better way. ...
4
votes
2answers
73 views

How to move bond position with chemfig package?

I'm using this code to generate chemical structure with chemfig package: \documentclass[12pt,a4paper]{standalone} \usepackage{chemfig} \begin{document} \setatomsep{2.5em} ...
4
votes
1answer
139 views

How to line up a chemical structure in the table (chemfig)?

I have a table which has three rows of chemical structures. The structures in the second row are not lined up with the first and third rows. I tried to use \vspace to bring the structure down but it ...
4
votes
1answer
90 views

How do we mirror a reversible reaction arrow in chemfig

In Chemfig, the reversible reactions are represented with a double harpoon. The top one goes from the left to the right, the bottom from the right to the left. One can rotate this double arrow. But I ...
4
votes
1answer
100 views

chemfig: Colored atoms don't align, and how to draw bonds to an electric charge?

So I want to show the ionic interaction between a molecule and a charged element. But when I use color to highlight a part of the molecule, the bond alignment is no longer correct. The first example ...
4
votes
1answer
169 views

Relative positioning of Lewis electrons in chemfig

I am defining a submolecule in chemfig (2,2'-bipyridine) and I want to show the lone pair of electrons on both the Nitrogens. (For those who care, I wish to show a coordination bond between the lone ...
4
votes
1answer
473 views

joining atoms in chemfig. Two adjacent molcules

This is a follow up of drawing cellulose and aligning monomers in chemfig. I'm trying to refine the structure adding some hydrogen bonds. No problem with the intra-chain ones, but I cannot figure ...
4
votes
1answer
378 views

How to modify just some nodes' styles in chemfig

In the following molecular drawing, I want to only circle the rightmost OH of the first molecule and the leftmost H of the second, to show that they are the ones that are involved in the formation of ...
4
votes
1answer
156 views

How to line up the arrow and structure in chemfig

I have the following problems: in the first reaction scheme the arrow is too high and I would like to bring it a little down. in the second reaction scheme the third chemical structure (after the ...
4
votes
1answer
140 views

Anchor point seems incorrect for Chemfig package

I'm trying to use chemfig to draw a basic schematic for enzymatic browning and have encountered a problem. In the bottom reaction (bottom right to bottom left) quinone is formed by the enzyme (denoted ...