Questions tagged [chemfig]

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

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

The package provides the command \chemfig{<code>}, which draws 2D molecules using the TikZ package. The <code> contains instructions for the drawing. This package was developed by Christian Tellechea as a replacement for the ppchtex package.

763 questions
21
votes
3 answers

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 when typesetting these molecules. In the case of…
19
votes
3 answers

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…
pisoir
  • 882
13
votes
2 answers

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 empty fake substituent; this bond then serves as…
13
votes
1 answer

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 free (better if it's open source :) ).
12
votes
1 answer

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 xymtec, but when I moved to debian wheezy I soon…
Ottorino
  • 853
  • 7
  • 10
10
votes
1 answer

How can I draw a Lewis structure?

I am trying to draw a Lewis structure using chemfig package. I want something like this: So far, I have…
Biki Teron
  • 3,275
9
votes
2 answers

Aligning molecule names

I'm writing a reaction but the names of the D-Glucose and D-Mannose are not aligned with the name of the D-Fructose. Here's what I have. I tried to use \chemnameinit{} but it simply didn't work :( Also, I'd like to put a title like a table or image…
AJMC2002
  • 127
8
votes
2 answers

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 openening parentheses between O-CH_2CH_2 and closing…
Reza
  • 1,798
8
votes
1 answer

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 representation like this one?
pygabriel
  • 627
8
votes
2 answers

Resonance structure of acetate

I need to draw a scheme to show the stabilization of the acetate ion by resonance and I'm going crazy :-( I started using chemfig not so long ago and it seems that I need a lot more practice! In the meanwhile, can anybody help me solve the…
Sam
  • 81
8
votes
4 answers

Connect a 5-Ring to two 6-Rings in chemfig

\chemfig{*6(-(*5(---))-(*6(------))----)} gives me that: How do I connect it like this? EDIT: Thanks to all suggestions I came up with this: \documentclass{article} …
8
votes
1 answer

chemfig, how to do these wavy markings?

I am trying to reproduce this: So far I…
jonalv
  • 11,466
8
votes
1 answer

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 is what I've managed code-wise and in terms of…
cjms85
  • 891
8
votes
2 answers

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 individually? chemfig syntax can get rather verbose. A…
Anthony
  • 1,000
7
votes
2 answers

Join wedge with single bond in chemfig

Is there a way to join the wedges with single bonds in chemfig in a "smooth way"? \documentclass{article} \usepackage{chemfig} \begin{document} \setchemfig{angle increment=30, bond join = true} …
ralk912
  • 478
1
2 3
17 18