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

learn more… | top users | synonyms

2
votes
1answer
39 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} ...
2
votes
1answer
34 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]} ...
3
votes
2answers
46 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} ...
2
votes
1answer
35 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 ...
4
votes
1answer
99 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} ...
0
votes
0answers
36 views

Writing chemical reaction with WP-Quick latex?

I want to show series of some chemical reaction on wordpress using popular chemfig and mhchem package however i always encounter some problem . For example . I want to show reaction in series like ...
3
votes
3answers
174 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 ...
0
votes
1answer
36 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
19 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
77 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
39 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
0answers
29 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 ...
0
votes
0answers
26 views

Enzyme Kinetic chemfig

I got problem using chemfig to draw chemistry as shown in Figure, Can one help?
2
votes
1answer
58 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
90 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 ...
2
votes
0answers
52 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
50 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
64 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
58 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} ...
4
votes
2answers
135 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 ...
1
vote
1answer
63 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
52 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
112 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
108 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} ...
0
votes
1answer
62 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} ...
2
votes
1answer
62 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
77 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
87 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
69 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
59 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
22 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} ...
2
votes
1answer
64 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 + ...
3
votes
1answer
110 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 ...
4
votes
1answer
70 views

Issue with cram bonds in chemfig

Using chemfig v1.1a, cram bonds are not drawn well in a way similar to the issue found in previous versions. Edit: My precise question here would be: does anyone know how to fix this? Or, worst case, ...
3
votes
1answer
103 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 ...
5
votes
1answer
142 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} ...
6
votes
2answers
86 views

How to draw Cu-ATSM compound?

I am trying to draw the following compound in tex using chemfig but I am only getting part of it and do not know how to finish the compound. This is what I got using \documentclass{article} ...
0
votes
0answers
54 views

LibreOffice + TeXmath on Using Chemfig

With the LaTeX example \documentclass{article} \usepackage{chemfig} \usetikzlibrary{arrows.meta} \tikzset{ elmove/.style={-{Stealth[#1]},shorten >=3pt,shorten <=2pt} } \begin{document} ...
3
votes
1answer
65 views

why bounding box dimensions are inherited from previous chemfig molecules in beamer?

I'm sure my problem is related to my OS but I can't tell why and how. Last year I was on Debian wheezy, while at present I'm on Mint Rebecca. I'm revising my slides for the lessons and, after ...
3
votes
2answers
112 views

How can I draw an ellipse in benzene molecule?

Can you help me to draw an dash ellipse in benzene molecule and adsorption bond from the molecule center to the metal? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{chemfig} ...
4
votes
1answer
180 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 ...
6
votes
2answers
140 views

Use of # in align block

I have a chemfig command which involves the use of #. It compiles properly on itself. \chemfig{**[135,405,dash pattern=on 2pt off ...
4
votes
1answer
107 views

Color functional groups in chemfig syntax

I want to color simple functional groups in organic molecules using the chemfig package. I've come up with a solution that achieves what I want (MWE), but I find it very cumbersome. I thought it could ...
3
votes
1answer
56 views

How to set departure atom with chemfig lewis macro?

I'm drawing a molecule and its radicals with chemfig. For the molecule, the bond departs from the C of CH_3, but in the radicals, the departing bond is centered. I tried splitting the \lewis structure ...
0
votes
1answer
84 views

Aligning Species of a Reaction Horizontally

how do you align the following horizontally: \begin{center} \schemestart \chembelow[3ex]{\chemfig{*6(=-=-(-[,.65]OH)=-)}} \chemsign{+} \chembelow[8ex]{\chemfig{CH_2O}}{Formaldehyde} \arrow{->} ...
2
votes
1answer
130 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} ...
1
vote
1answer
117 views

Refers to a node on a chemfig inside a node in a tikzpicture. Macro definitions

Consider the minimal example: \documentclass[12pt]{article} \usepackage{tikz} ...
6
votes
1answer
193 views

How to draw NO2 in LaTeX?

It would be nice if you could help me to draw NO2 in LaTeX. The figure should look like the example image. On this website is some information about the chemfig/chemmakro package. My code untill now ...
3
votes
1answer
177 views

Using the mhchem and chemfig packages in conjunction

I am trying to write a chemical reaction in which I want to include a chemical structure. I am having some trouble regarding alignment and bond length. Here is a minimal working example: ...
2
votes
2answers
213 views

how to set a fixed interatomic distance in chemfig package?

Using - with the \chemfig command of the chemfig package, interatomic distance is automatically calculated and the link between atoms is drawn. But interatomic distance is set as the distance between ...