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

learn more… | top users | synonyms

15
votes
2answers
2k 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.
15
votes
3answers
2k 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 ...
5
votes
1answer
1k 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
2answers
475 views

Forked arrows with chemfig

How can one make a forked arrow in chemfig? Semantically it is exactly opposite to \merge command but seems like it's not implemented in a package. I don't have any experience with TikZ graphics but ...
17
votes
3answers
2k 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: \...
12
votes
2answers
559 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 ...
4
votes
1answer
664 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
72 views

chemfig, how to do these wavy markings?

I am trying to reproduce this: So far I have: \documentclass{memoir} \usepackage{tikz} \usepackage{chemfig} \usetikzlibrary{decorations.pathmorphing} \begin{document} \chemfig{*5(5-1-2(-((-[:90,1,...
3
votes
1answer
1k views

List of schemes, caption and lining up the reaction in chemfig

I have several question regarding LaTeX and chemfig. My first question is : how to create a list of schemes similar to \listoftables and \listoffigures so I can add my reaction schemes to newly ...
10
votes
1answer
945 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 ...
6
votes
1answer
792 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, ...
6
votes
2answers
2k 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 ...
9
votes
2answers
675 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 ...
6
votes
1answer
313 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
215 views

Methanoic acid with chemfig? (molecule with labels(nodes) of angles, bonds and bondlength)

I want to use chemfig for my academic work - but I have a lot of problems. I have found something as my inspiration to write this code. \documentclass[12pt,a4paper,onecolumn]{article} \usepackage{...
5
votes
2answers
611 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 4-ethyl-3,3-...
3
votes
1answer
117 views

How to align molecules structure at the base line?

I am using ChemFig package to compile some molecule structures, however, I cannot align them at the base line. See picture 1. How could I align all the molecules, the arrow and "+" sign in the ...
3
votes
1answer
673 views

Simpler way to create chemical graphs using chemfig

chemfig is a great package to draw molecules. But it's not very fast. I am searching for a software to create chemfig code of chemical graphs (molecules, reactions etc.). It would be great if it is ...
9
votes
2answers
1k 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 ...
8
votes
1answer
2k 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 ...
4
votes
2answers
317 views

Radical ions with chemfig

Is there a way to draw a radical cation like using chemfig? Edit #2 \chemfig{C(-[:-150]Y)(=[:90,,,2]\radcationleft O)-[:-30]\chemabove{C}{H}(-[:-90]R\rlap{'})-[:30]C(<[:-60]H)(<:[:-15]H)-[:...
3
votes
1answer
132 views

Molecular angle question (Tikz/Chemfig)

Based on the answer from erik, I am able to make a molecule diagram with labels for bond length and angles. But one difficulty appeared. The last angle should be between the two oxygen bondings - but ...
2
votes
1answer
278 views

How to annotate chemfig drawing with circles and lines?

I want to draw circles on top of a chemfig molecule and then connect these circles with elements in a table above. I have gotten this far: \documentclass{memoir} \usepackage{tikz} \usepackage{chemfig}...
2
votes
2answers
409 views

Chemfig - Name some compounds under a single label

I know within the chemfig package compounds can be named with the command \chemname. Is there a way to label some compounds under a single label? For example, put a label "Reactants" under the ...
10
votes
2answers
778 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 ...
6
votes
2answers
736 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 ...
6
votes
1answer
332 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
2answers
158 views

Use of # in align block

I have a chemfig command which involves the use of #. It compiles properly on itself. \chemfig{**[135,405,dash pattern=on 2pt off 2pt]6(----#(,0pt)\chembelow[2.5em]{}{+}(-#(0pt)[3]H)(-#(0pt)[1]NO_3)-#...
6
votes
1answer
238 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 below,...
5
votes
1answer
555 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 to ...
5
votes
1answer
4k views

How can I fix this overfull hbox?

\documentclass[10pt]{article} \usepackage{chemfig} \usepackage[margin=1.2in]{geometry} \newcommand{\chem}{\setatomsep{2em}\chemfig} \begin{document} \begin{itemize} \item[--] 1$^\circ$ Alcohol $\...
4
votes
1answer
224 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} \definesubmol{&...
4
votes
1answer
150 views

How to set default arrow tips in Chemfig?

I want, for example, \arrow{->} (and \arrow{<->}, \arrow{<=>}... too) to draw an arrow with the "stealth" style tip. How can I do that?
4
votes
1answer
515 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 ...
3
votes
1answer
157 views

group of molecules

I want to reproduce this figure, i used chemfig package, need help to get many arrows from one molecules. Thank you \documentclass[french,12pt,oneside,openright]{memoir} \usepackage[utf8]{inputenc} ...
3
votes
1answer
183 views

How to cross off the structure in chemfig

I do not know how to cross off the structure in chemfig. It should look like on the picture Thanks! Here is my sample code: \documentclass[12pt,doublespacing,letterpaper]{report} \usepackage{...
3
votes
3answers
346 views

Drawing chemical reactions

I am trying to draw reactions like this I tried it like this \documentclass[11pt]{article} \usepackage[version=4]{mhchem} \usepackage{chemfig} \begin{document} \ce{ \chemfig{CH_3-CH (-[2]OH)-...
2
votes
1answer
123 views

Adding dipole moments in chemfig

I haven't been able to find anything in chemfig for adding dipole moments to my molecules beyond creating custom arrows with tikz, which is more involved than I'd like at the moment. Is there some ...
2
votes
1answer
790 views

Draw molecule charge in latex using chemfig?

I've got a lewis dot structure diagram as seen in the following image: However, I would like to have brackets on the outside to indicate the positive charge, since this is supposed to represent H3O ...
2
votes
1answer
266 views

Creating delocalized double bonds in chemfig without tikzset?

I'm trying to create a delocalized double bond, similar to the example given in the chemfig documentation. They suggest using the tikz library package {decorations} to implement this. Before running ...
2
votes
1answer
114 views

Drawing chemical structure - newman projections

I'm trying to create a figure showing some different possible chemical structures of the butane molecule in the form of the right most diagrams in the below image and I'd like to know the best way to ...
1
vote
1answer
1k views

Chemfig - Proper Vertical Aligning in Chemical Reactions

I have the following chemical equation in Chemfigs: \documentclass{article} \usepackage{chemfig,chemmacros} \begin{document} \schemestart 2 \chemfig{-[:30](=[:90]O)-[:-30]OH} \arrow \chemfig{-[:30](=...
1
vote
1answer
787 views

chemfig chemname alignment

I wish to have a reaction in \chemfig and write some details under each molecule so am using the \chemname command. It puts the text under the molecule. However, as I have arrows in the reaction ...
1
vote
1answer
201 views

Aligning arrow fo Chemical reaction and much more

My chemical reaction latex codes look like this \document[11pt]{article} \usepackage{chemfig} \begin{document} \schemestart \chemname{\chemfig{R-H}}{Alkane} \arrow(.{5.5}--){->[light,heat or ...
1
vote
2answers
158 views

Aligning labels of chemical reaction

how do I do this: so far I have: \begin{center} \schemestart \chemfig{CH_3Cl} \chemsign{+} \chembelow[.25ex]{\chemfig{Si(Cu)}}{Silicon/CopperAlloy} \chemrel{->} \chembelow[.25ex]{\chemfig{(CH3)...