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

learn more… | top users | synonyms

13
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 ...
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: ...
5
votes
1answer
835 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 ...
15
votes
2answers
1k 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.
4
votes
1answer
546 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 ...
10
votes
1answer
734 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 ...
5
votes
1answer
549 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, ...
3
votes
1answer
907 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 ...
12
votes
2answers
431 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
598 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
255 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
143 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} ...
5
votes
2answers
523 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 ...
3
votes
1answer
115 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
825 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 ...
4
votes
2answers
141 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 ...
4
votes
2answers
322 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 ...
3
votes
1answer
106 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
131 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} ...
2
votes
2answers
296 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 ...
7
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 ...
6
votes
2answers
140 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 ...
6
votes
1answer
241 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
213 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
663 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
395 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
2answers
485 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
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 ...
4
votes
1answer
350 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
3k 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
206 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} ...
3
votes
3answers
178 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 ...
3
votes
1answer
64 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
168 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} ...
2
votes
1answer
190 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 ...
1
vote
1answer
41 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
116 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{->} ...
1
vote
1answer
461 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
708 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 ...