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

learn more… | top users | synonyms

3
votes
1answer
115 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 ...
3
votes
1answer
91 views

Using mhchem and chemfig: how to make image smaller and let it fit vertically?

Code \documentclass[10pt, a4paper]{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage{chemfig,stackengine,graphicx} \usepackage{xcolor,tikz} \usepackage[version=3]{mhchem} \...
5
votes
2answers
262 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} \...
2
votes
1answer
124 views

Using chemfig for copolymers i.e. polymers and 2 sets of parentheses

I'd like to use chemfig for copolymers. I have followed the demo for creating parentheses for polymers, but I've been having trouble figuring out how to get the two middle brackets to line up without ...
6
votes
1answer
138 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
74 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
105 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
124 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
237 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
150 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
49 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
131 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
142 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
103 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
170 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
102 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
123 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
72 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
124 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
72 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
110 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
164 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
122 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
56 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
165 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
141 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
346 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
77 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
21 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
124 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
201 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
123 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
127 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
162 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
110 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
180 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
157 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
141 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
317 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
162 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
95 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
138 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
209 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
114 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
110 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
167 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
138 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 ...