Questions tagged [chemfig]

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

Filter by
Sorted by
Tagged with
56
votes
2answers
37k views

Can you make chemical structure diagrams in LaTeX?

Can you create diagrams of chemical structures in LaTeX? Example(s) of "chemical structure diagrams":
8
votes
1answer
1k views

TeXstudio chemfig commands marked as unrecognized

I included the chemfig package to draw chemical stuff in LaTex. But the commands aren't recognized by TeXstudio. I even added the package to the autocompletion list in the settings to get recognized ...
19
votes
2answers
4k 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.
20
votes
3answers
3k 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 ...
9
votes
1answer
2k 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, 160 °C, 5 min under Na₂CO₃, ...
6
votes
2answers
934 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 ...
7
votes
2answers
5k 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
4k 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 ...
5
votes
1answer
2k 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 ...
16
votes
2answers
943 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 ...
19
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: \...
6
votes
1answer
844 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, ...
1
vote
1answer
443 views

How do you draw a dative bond with chemfig?

How do you draw a dative / coordinate bond with chemfig? I would like to have the bond to appear as an arrow.
8
votes
1answer
2k views

How to get Anki working with TikZ-based packages?

Since I have been struggling with this for some time and the issue is nowhere to be found on the Web, I thought to ease up some people's lives by posting this question here. Assumption: Basic LaTeX ...
11
votes
2answers
895 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 ...
7
votes
2answers
826 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-...
6
votes
3answers
3k 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 \chemname{\chemfig{[2]OH-[4]CH_2-CH(-[0]OH)-CH_2(-[0]OH)}}{...
6
votes
1answer
289 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,,,...
12
votes
1answer
2k 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 ...
7
votes
1answer
3k views

Undefined control sequence \pgfsyspdfmark converting Standalone TikZ with pdflatex

My ultimate goal is to get chemfig working with AnkiSRS. It only accepts .png as latex output, so I need to compile with pdflatex and then convert the file from within the latex environment. I am ...
6
votes
1answer
3k 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 ...
5
votes
1answer
943 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 ...
3
votes
1answer
236 views

Aligning molecule name within a reaction using chemname

I want to align the chemical names of my components without moving the structure. Does someone have an idea how that works? \schemedebug{true} \schemestart \setcrambond{2pt}{}{} \chemname{\chemfig{H-[...
3
votes
2answers
811 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)-[:90]...
13
votes
3answers
1k 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 such ...
5
votes
1answer
926 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 ...
4
votes
1answer
443 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?
3
votes
1answer
193 views

ChemFig, Beamer, and Uncover

I want to utilize beamer's \uncover command within ChemFig's reaction scheme environment, i.e.: \schemestart \chemname[-1ex]{\chemfig[][scale=1]{*5(-=(-=[:-60]O)-O-=)}}{Furfural} \uncover<...
3
votes
1answer
202 views

How to get different colors for reversible arrows in chemfig?

I have the following reaction scheme in chemfig: I need for some of the reversible reactions: forward reactions arrow in black and the backward reactions arrow in red. Is it possible in chemfig? MWE ...
3
votes
1answer
482 views

Alignment of chemfig molecules in a reaction

I'm using chemfig for my chemistry course this period, and facing problems with the alignment of the molecules, arrows, + signs and also the names. Basically everything is messed up haha. Can someone ...
2
votes
1answer
2k 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](=...
2
votes
1answer
307 views

Position label of curved arrow in chemfig?

I'm trying to create the following image in LaTeX: However, I'm having trouble positioning the label on the second curved arrow. Below is what I have been able to generate. If you'll notice that the ...
4
votes
1answer
465 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{...
12
votes
1answer
4k 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 ...
11
votes
2answers
2k 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 ...
6
votes
1answer
489 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 ...
4
votes
1answer
502 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 ...
4
votes
2answers
1k views

Where is the TexLive 2010 default package directory located in Windows 7 64-bit?

Where is the TexLive 2010 default package directory located in Windows 7 64-bit? I'm led to believe it should be in C:\texlive\2010\texmf\tex\latex but that appears not to be the case and I cannot ...
2
votes
1answer
305 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 ...
8
votes
4answers
707 views

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} usepackage{chemfig} \begin{...
7
votes
1answer
502 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 ...
4
votes
1answer
1k views

Chemfig: how to write vertically?

I am trying to create a reaction scheme using chemfig. I can not understand though how to have text written vertically. Say my set of reaction A+B -> AB, A+C ->AC If I start writing \startscheme A+...
4
votes
1answer
1k views

Text and figure alignment in chemfig reaction scheme?

I am new to chemfig, and I am trying to illustrate a reaction using the code: \documentclass{article} \usepackage{chemfig} \begin{document} \schemestart \chemname {\chemfig{-[7]N(-[5])-*6(=-=(-C^{+}(-...
4
votes
2answers
1k views

How I can write polymeric reaction in latex

Is it possible write this reaction in latex ? I used this code, but the "image" of raction is very big. How I can reduce it ? \documentclass[12pt,twoside,a4paper,openright]{report} \...
4
votes
1answer
683 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}...
3
votes
1answer
401 views

chemfig double bond gap at joint

I'm using chemfig to draw chemical figures. However, when drawing double bonds as side group onto a carbon chain, I get a little gap. This behaviour is different e.g. in chemdraw, where it looks ...
2
votes
0answers
108 views

package chemfig does not work with tikzlibrary circuits.pid.ISO14617

Using tikz and have a document with various libraries. In particular \usetikzlibrary{circuits.pid.ISO14617} works fine until I add \usepackage{chemfig} with \chemfig \documentclass[]{article} \...
2
votes
2answers
744 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 ...
8
votes
2answers
1k 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
3answers
419 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} \usepackage{...