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

learn more… | top users | synonyms

6
votes
1answer
132 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.. \...
0
votes
1answer
72 views

Create with chemfig a repeating unit of Si-O

I want to recreate this picture found on wikipedia, but with only the group in the parentheses.
0
votes
1answer
102 views

Chemfig error while trying to make a polymer

I have the following code (which I found somewhere around this page) to make polymer figure \usepackage{chemfig} \usepackage{mhchem} \makeatletter \newcommand*\setpolymerdelim[2]{\def\polymer@...
1
vote
0answers
25 views

How to draw the wavy line meaning that part of a molecule has been omitted, in chemfig [duplicate]

[EDIT] I've just found this answer, but I'm working on it because I'd like the wavy line to be separated from the bond. I'm trying to write this reaction scheme: I had defined a macro for the ...
1
vote
1answer
115 views

Molecule positioning in chemfig reaction schemes

I need to write this reaction scheme: But I can't figure out how to place the NADH molecule like it is in the figure. Help me please, thanks! Thanks to Clemens' comment, I've worked out this MWE:...
3
votes
1answer
229 views

Match chemfig arrow with mhchem arrow style

I really need to have all arrows set as the TikZ stealth arrow, or similar, by default for the whole document. The arrow style must be consistent, the length and spacing aren't a real problem. Most of ...
4
votes
1answer
139 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?
2
votes
1answer
48 views

Need help to make space ind the bondings \chemfig

I am trying to build a Sucrose structure scheme in LaTex but i have some trouble. I can't figure out why i can't make the binding between the vertical H's longer so there is more space for the ...
4
votes
2answers
128 views

The two components of a double bond in different colors?

Using chemfig with the beamer class, I need to show the two "single bonds" of a double bond in different colors. It should be possible to change these colors for a given double bond on different ...
4
votes
2answers
132 views

Scale chemfig molecule in beamer with tikz

I want to show three different molecules on a beamer slide. The slide contains a tikzpicture (for positioning and uncovering together with the other elements), three nodes contain one molecule each. ...
2
votes
1answer
97 views

Chemfig – Charges in skeletal formulas

I’m trying to write a reaction mechanism but there’s a problem. If I want to add charges to ”invisible“ C-Atoms, the skeletal formula get’s broken (see right molecule). Here is a minimal example: \...
2
votes
2answers
167 views

How do I get the right arrow with chemfig / chemsign

I have a short question about the arrow in the reaction I made with chemfig. As you can see in the picture underneath the code the arrow is just "<=>". What I need is this: How can I produce ...
2
votes
1answer
97 views

copy reaction scheme using tikz

I would like to copy the reaction scheme similar to the image provided. This is what I have attempted so far, but I am new to chemfig so I'm not sure what I'm doing. Please provide your expertise. ...
4
votes
2answers
197 views

Generate pdf document consisting in just one figure

Related to this question I am trying to generate a figure using package chemfig. Actually, my problem is that the lower part of the figure is cropped, specifically the H under the N. This is the code:...
2
votes
1answer
119 views

Adding dipole moments in chemfig

I haven't been able to find anything in chemfig for adding dipole moments to my molecules beyond creating custom arrows with tikz, which is more involved than I'd like at the moment. Is there some ...
4
votes
1answer
71 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,...
2
votes
1answer
120 views

Resonance hybrids in chemfig

How would I best create the dotted/solid paired bond line for a resonance structure? For example, I have $ \chemfig{ C(=[:90]\lewis{1:3:, O}) (-[:210]\lewis{3:5:7:, O}) (-[:330]\lewis{1:5:7:, O}) } \...
0
votes
1answer
71 views

chemfig molecule shifts tikzpicture (in beamer)

I have a beamer slide with a title. On it I have a tikzpicture, which contains a molecule drawn with chemfig. Without the molecule the picture is just fine: However, as soon as I put the molecule, ...
3
votes
1answer
106 views

Write the charge of an ion as an apex outside the square brackets with chemfig

I have the structure of the nitrate ion written down in chemfig and I'd like to add its charge as an apex outside the square brackets (see below). Is there a correct way to do it or do I just \...
2
votes
1answer
64 views

Runaway argument in pgfmodulshapes.code.tex

While trying to compile the file: \documentclass[11pt]{article} \usepackage[active,textmath]{preview} \usepackage{amsmath} \usepackage{chemfig} \usepackage{amsfonts,amssymb} \pagestyle{empty} \begin{...
2
votes
1answer
158 views

Vertical alignment of reaction mechanism

How can I align the following reaction mechanism of the Aspirin synthesis in chemfig? Code: \schemestart \definesubmol\nobond{-[2,0.2,,,draw=none]} \chembelow[5mm]{\chemfig[][scale=0.7]{HO-[:-30]@{5}...
3
votes
2answers
119 views

Right aligning atom in chemfig

I'm using chemfig (perhaps improperly) for relational algebra graphs. Here, for example, is a simple one: \documentclass{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \usepackage[...
2
votes
1answer
52 views

Bonding to specific element letter using chemfig

Im trying to reproduce this molecule using chemfig, I have the basic structure with this code: \begin{figure} \centering \schemestart \chemfig{*6((-F)=-*6(-(-*6(=-=-=-))=*6(-=(-F)-(=O)-=-)--O--)=-=...
4
votes
1answer
158 views

Reaction sheme for Saponification with chemfig: horizontal and vertical placement

I want to draw the formation of a fat molecule like shown in the picture below I tried with hspace/vspace and yshift: \documentclass[margin=2cm]{standalone} \usepackage{chemfig} \begin{document} ...
1
vote
1answer
139 views

Writing chemical reaction with WP-QuickLaTeX?

I want to show series of some chemical reactions on wordpress with QuickLaTeX using the popular chemfig and mhchem packages. However, I always encounter some problem. For example I want to show ...
3
votes
3answers
339 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 (-[2]OH)-...
0
votes
1answer
73 views

chemfig: order of atoms

I want to change the order of the "OH"-group at carbon 4: the "H" should be left of the "O". \documentclass{standalone} \usepackage{chemfig} \begin{document} \setatomsep{4em}\setcrambond{3pt}{}{} \...
0
votes
0answers
20 views

Chemfig too large distance between Compounds and names? [duplicate]

There is large space between the compound name and compound . I used arrow[0]{,0} also and cyclohexane is not aligned properly at center :( picture explains clearly :( How do i remove distance ...
3
votes
2answers
121 views

Showing Chemical reaction on websites?

I have been writing latex code for showing chemical reactions thorugh chemfig . Now i want to show it in website . The only solution i find is to capture screenshot crop it and publish it ? Is there ...
1
vote
1answer
187 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 ...
0
votes
2answers
119 views

How to illustrate an isomerisation mechanism with chemfig

I'd like to produce a scheme of the isomerisation mechanism of hop alpha-acids during wort boiling in beer as featured in Verzele, 1986. (Don't worry, I'll post the link for the article). I'd like to ...
2
votes
1answer
125 views

Latex on chemical reaction

There is some problem with my code. It don't show Mg(OH)X correctly and arrow passes to reactant sites also \documentclass[11pt]{article} \usepackage{chemfig} \begin{document} \schemestart ...
0
votes
2answers
158 views

Drawing organic reaction?

I have been trying to draw this but i couldn't accomplish it :( I have tried but failed . I tried like this \chemfig{**(-=-=-=)} \+ \chemfig(3O_3) \arrow(->) No idea here \arrow{->[\chemfig{...
2
votes
0answers
105 views

Aligning Chemical Reaction

In latex i have written 3 different type of reaction and the problem is the middle arrow align according to reactants . Eg. A + B -> C A + B + C -> D I want to align like this A + B -&...
1
vote
1answer
179 views

Writing Chemical Reaction?

I want to show the reaction between Sodium benzoate and soda lime to give benzene and na2co3 Here is my code \documentclass[11pt]{article} \usepackage{fullpage} \usepackage{chemfig,chemmacros} \...
3
votes
1answer
156 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} ...
2
votes
1answer
137 views

Shift the start and end points of curved arrows (electrons paths) in chemfig

I'm trying to draw a McLafferty rearrangement with chemfig (great tool btw). With MWE: \documentclass[a4paper,landscape]{article} \usepackage[utf8]{inputenc} \usepackage{chemfig} \renewcommand*\...
4
votes
2answers
308 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)-[:...
2
votes
1answer
157 views

Using sans-serif font for chemfig

In my document, I'm currently using chemformula for chemical formulae. To draw reaction mechanisms I'm trying to use chemfig, but it's proving very difficult to get chemfig to use the same sans-serif ...
1
vote
3answers
89 views

Is there a shortcut to draw 30 degree bond angle increments in ChemFig?

I really like the facility in ChemFig to choose the bond angle in 45 degree increments by specifying an integer, instead of the angle directly: \chemfig{-[1]}. Right now, I'm drawing a bunch of ...
3
votes
1answer
137 views

precompile molecules for faster compilation

I have something like one hundred of chemfig-drawn molecules in a single file, that I consider a sort of database. Compiling this file takes approximately five minutes. I'm going to write a report of ...
2
votes
1answer
196 views

chemical reactions

I would like to reproduce the same as this picture using the chemfig package: \documentclass[french,12pt,oneside,openright]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...
0
votes
1answer
112 views

Arrow label on Chemfig image?

I have this code: \documentclass[varwidth, margin=2cm, png]{standalone} \usepackage[utf8]{inputenc} \usepackage[english, ngerman, danish]{babel} \pagestyle{empty} \usepackage{chemfig} \usepackage{...
2
votes
1answer
109 views

electronegativity brackets with chemfig (?)

I've been trying to draw something like this with chemfig: Specifically I'm trying to create those red brackets around the bonds indicating that due the Oxygen's higher electronegativity, it has a ...
1
vote
1answer
154 views

Help needed in showing halobenzene resonance in LaTeX

I am new to LaTeX, can someone please help me in showing the following using LaTeX, I can make the halobenzene rings, and I am comfortable with \lewis, I just want help in those arrows. Thanks in ...
2
votes
1answer
135 views

Siunitx adding the \cdot and \chemfig to get extra top space in a tabular

i am having a problem compiling, i get an error of missing $ and { also } when i use \si....... [siunitx package] ----> I tried the \sisetup... but it gives me an error, may be it has conflicts with ...
3
votes
2answers
80 views

How can I solve the vertical alignment with a CH2 and a ring?

I draw a picture like this: You may find that the right side of the molecule is under the base line. I know this problem is 'Vertical alignment' mentioned in P25 of the offical documantaion. After I ...
3
votes
1answer
85 views

How to make a ring have vertical alignment correctly?

I want to use xelatex to draw a chemistry equation which contained a horizontal benzene. But it counld not be placed well, like this: And I want this, except the unpleasant blank: Here is my code: ...
1
vote
0answers
25 views

How do I get a centered charge into the ring with chemfig? [duplicate]

I would like to draw a Sydnone with chemfig. How do I get the -+ into the ring? \documentclass{article} \usepackage{tikz} \usepackage{chemfig} \begin{document} \chemfig{N**5(-[,,1]\chembelow{...
2
votes
1answer
97 views

How to type gas sign and equality sign in chemfig?

I want to type some inorganic chemistry equations and some organic chemistry, but I can't type =, ^(means that there is gas) or |(means that there is solid). For example, how to type 2NaClO = 2NaCl + ...