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

learn more… | top users | synonyms

1
vote
1answer
114 views

How do I selectively change bond length in chemfig?

Hi I am trying to create a triacylglycerol molecule with the chemfig package.. I am pretty close. The backbone has three side chains and double bond off the C atom is running into the previous side ...
5
votes
1answer
140 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 ...
20
votes
1answer
468 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 ...
7
votes
1answer
516 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. ...
14
votes
2answers
861 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
163 views

Anchor point seems incorrect for Chemfig package

I'm trying to use chemfig to draw a basic schematic for enzymatic browning and have encountered a problem. In the bottom reaction (bottom right to bottom left) quinone is formed by the enzyme (denoted ...
4
votes
1answer
246 views

How to annotate this chemical scheme using chemfig package?

To depict a chemical scheme with more than one reactant and more than one product, I used the handy package chemfig. I found some issues though annotating the below chemical reaction in a better way. ...
6
votes
1answer
517 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 ...
3
votes
2answers
244 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 ...
1
vote
1answer
279 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 ...
5
votes
2answers
426 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' ...
3
votes
0answers
242 views

Is it possible to use nodes as anchors? [closed]

I'm trying to recreate a rather complicated reaction scheme with chemfig and TikZ. For that, I'd like to position several amino acid side chains at specific positions. What I'd like to do is to use ...
3
votes
1answer
97 views

Using \chemabove/\chembelow with \vflipnext

I have a molecule with a \chemabove command in it, and I'd like to mirror it vertically with \vflipnext. Everything is flipped just fine except for the atom positioned with the \chemabove command, ...
4
votes
1answer
218 views

How to line up a chemical structure in the table (chemfig)?

I have a table which has three rows of chemical structures. The structures in the second row are not lined up with the first and third rows. I tried to use \vspace to bring the structure down but it ...
1
vote
1answer
75 views

A hyphen is not displayed in chemfig

I have a problem with a hyphen that is not displayed (according to my pdf file) in a chemical structure (after the arrow, {n}-Bu_4N^+)=-=)), although it is present in the code. My sample code is ...
5
votes
1answer
197 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 ...
3
votes
1answer
90 views

How to cross off the structure with an anchor in chemfig

I am trying to cross of the structure after the arrow (with an anchor) but I get a mess. I've been told how to do that without the anchor. I was trying to move a "cross off" command to different ...
4
votes
1answer
229 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 ...
0
votes
2answers
190 views

Latex with chemfig to Word document

I have the following situation: I am writing my thesis in Latex and my adviser, who has never heard about Latex, decided to edit my thesis in MS Word (initially, he made corrections on the printed ...
3
votes
1answer
173 views

Can I annotate the links in chemfig?

chemfig is really great chemical picture editor, but just one problem doesn't allow me to continue the work. In the picture below, you see the chemical picture from the book with numbered links and ...
3
votes
1answer
154 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} ...
4
votes
2answers
196 views

Two arrows in a row in chemfig

I have a problem drawing two arrows in a row in chemfig. I need : A->->B but when I place two arrows, I get a space between them which I don't need: A-> ->B How to fix that? Any help is ...
2
votes
1answer
93 views

Where does the \setarrowlabelsep argument go within the scheme environment in chemfig?

I tried looking in the documentation, but I can't seem to find the exact position for the \setarrowlabelsep in the \schemestart environment of the chemfig package. I would like the label Gpx shifted ...
5
votes
2answers
242 views

Two chemfig lewis diagrams side by side with labels below

MWE: \documentclass{report} \usepackage{chemfig} %for chemistry diagrams \begin{document} \vspace{10mm} \setatomsep{2em} \begin{center} \chemfig{% ...
3
votes
1answer
247 views

Representing movement of a single electron

I would like to represent the movement of a single electron in a reaction mechanism (grignard-reaction) Is there a predefined arrow (something like a harpoon) for that in chemfig? Or does anyone have ...
2
votes
2answers
215 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 ...
1
vote
1answer
446 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 ...
3
votes
1answer
622 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 ...
2
votes
1answer
243 views

Generate png images of chemical structure using LaTeX, dvipng and chemfig

How to generate .png images of chemical structures using LaTeX, dvipng & chemfig ? What packages need to be included ? Is there any reference article for same ?
2
votes
3answers
375 views

How to scale a scheme in chemfig, using the figure environment

I am trying to scale a reaction scheme generated with chemfig to .9/textwidth. Below is my MWE. \documentclass{report} \usepackage{chemfig} \usepackage[version=3]{mhchem} \begin{document} ...
1
vote
1answer
303 views

Chemfig, TikZ, circle diagram

I have a problem with drawing such a complex diagram in using Chemfig (a picture of diagram should be attached) . The Chemfig manual describes how to draw curved and U-type arrows but all my attempts ...
4
votes
1answer
2k 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
1answer
386 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, ...
2
votes
1answer
88 views

Zero length bond in chemfig?

As you can clearly see in the high quality diagram above, I'm looking for a way to get the nitrogen and hydrogen bonded like that in chemfig.
8
votes
2answers
399 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 ...
5
votes
1answer
314 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 ...
2
votes
1answer
233 views

Scaling molecules on top of arrow with chemfig

i've a problem with chemfig-package. I want to draw some mulecules above an \arrow{-U>}, but i can't scale them in the right way. Does anybody has an idea to work around or do I just made a ...
2
votes
2answers
147 views

Changing space between atoms in Chemabove

Consider this example: \documentclass{memoir} \usepackage{fontspec} \usepackage{chemfig} \usepackage{unicode-math} \pdfmapline{+arial arial <8r.enc <sAarial.ttf} \begin{document} ...
2
votes
0answers
190 views

Chemfig artifacts next to bonds [closed]

When drawing reaction schemes with chemfig I get unwanted small dots next to certain molecules. These dots remain the same size weither I zoom in the document or not. \documentclass{article} ...
4
votes
1answer
189 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} ...
2
votes
2answers
208 views

How can I float molecules in \chemfig around an element? (without the lines)

For example: I just want to show that the H2O molecules are attracted to the Carbon atom. I can't find a way to remove the lines connecting the Oxygens to the Carbons or how to extend the Hydrogens ...
4
votes
1answer
216 views

Relative positioning of Lewis electrons in chemfig

I am defining a submolecule in chemfig (2,2'-bipyridine) and I want to show the lone pair of electrons on both the Nitrogens. (For those who care, I wish to show a coordination bond between the lone ...
3
votes
1answer
156 views

Chemfig reaction to wide for twocolumn

For a paper I have to describe certain reactions. I am using the chemfig package to do this. The paper has to be two columns and this is where it goes wrong. When I compile this reaction: ...
4
votes
1answer
552 views

joining atoms in chemfig. Two adjacent molcules

This is a follow up of drawing cellulose and aligning monomers in chemfig. I'm trying to refine the structure adding some hydrogen bonds. No problem with the intra-chain ones, but I cannot figure ...
10
votes
1answer
543 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
2answers
312 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
414 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
votes
2answers
700 views

Drawing Kinetic Schemes in Latex

Do you think it would be possible to use the mhchem package and their arrows (e.g. <=>>) in drawing a cyclic kinetic scheme such as : or do you think it would be better to use a different ...
5
votes
2answers
1k 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 ...
5
votes
1answer
183 views

Problem with alignment

I have the following tikz code: \schemestart \chemname{\chemfig[][scale=0.6]{ ...