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

learn more… | top users | synonyms

21
votes
1answer
700 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 ...
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: ...
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
4k 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 ...
14
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 ...
12
votes
2answers
546 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 ...
10
votes
2answers
760 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 ...
10
votes
1answer
919 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 ...
9
votes
2answers
663 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
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
2answers
823 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 ...
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 ...
7
votes
1answer
1k 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 ...
7
votes
1answer
1k 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
1k 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
1answer
323 views

How to use chemfig for chemical reaction with skeletal forms

My code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \setcounter{secnumdepth}{5} ...
7
votes
1answer
75 views

Orbital shift when i use atoms near it

I'm drawing some orbitals and I noticed that when I have an atom near the orbital, the orbital shifts down a little (it's very ugly). This happens only if I put the hydrogen at the beginning of the ...
7
votes
1answer
360 views

How to draw NO2 in LaTeX?

It would be nice if you could help me to draw NO2 in LaTeX. The figure should look like the example image. On this website is some information about the chemfig/chemmakro package. My code untill now ...
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 ...
6
votes
1answer
385 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
153 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
2answers
406 views

Drawing histidine with chemfig

I'm trying to draw histidine with chemfig and I'm stuck. I drew most parts correctly but I'm having trouble attaching the imidazole ring properly. Here's what I have so far: \documentclass{article} ...
6
votes
2answers
553 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
2answers
167 views

How to make only one part of double bond bold with chemfig?

I'm trying to get this kind of appearance for chemical structure (see highlighted regions): By so far I could manage to do like this: This is my code: \documentclass[12pt]{standalone} ...
6
votes
1answer
321 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
126 views

How to draw Cu-ATSM compound?

I am trying to draw the following compound in tex using chemfig but I am only getting part of it and do not know how to finish the compound. This is what I got using \documentclass{article} ...
6
votes
1answer
57 views

Updated chemfig gives errors for previously working code

I've just installed TeX Live 2015 vanilla and I tried to compile some old sources just to be sure that everything worked. TeX Live works, but I have problems with some code that I've unashamedly ...
6
votes
1answer
235 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 ...
6
votes
1answer
280 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 ...
6
votes
1answer
293 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 ...
6
votes
1answer
129 views

chemfig: how to align the arrows of different schemes?

I am trying to get the arrows of three different schemes aligned but would like to have text in between them, as you can see below. Despite searching for hours, i haven't found a solution.. ...
6
votes
1answer
153 views

Placing the Head of a Curved Arrow of a Reaction Mechanism Slightly Above the Plus Sign

My Code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage{chemfig} \usepackage{tikz} \usetikzlibrary{arrows.meta} \tikzset{ ...
6
votes
2answers
671 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
88 views

Forked arrows with chemfig and tikzpicture

this question has been asked in this link: Forked arrows with chemfig It is very helpful for me. I would like to thank Gonzalo Medina for his solution. However, I have two questions that I cannot ...
5
votes
1answer
1k 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
1k 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
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 ...
5
votes
2answers
453 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 ...
5
votes
2answers
922 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
2answers
250 views

Wall, molecules and drawing with tikz/chemfig

I would like to get to this result: This is the code till now: \documentclass[10pt, a4paper]{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage{chemfig,stackengine,graphicx} ...
5
votes
1answer
251 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
169 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
595 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
316 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
371 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
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
1answer
529 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
117 views

How to align all the molecules, the + sign and arrow at the same level?

I use the chemfig package to draw molecules in a chemical reaction. However, I cannot align the molecules, the + sign and arrow at the base line. I have tried the \vphantom command, like in this ...
5
votes
1answer
218 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
1answer
764 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, ...