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

learn more… | top users | synonyms

1
vote
2answers
18 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
92 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
63 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
55 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
46 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
66 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
47 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
63 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
52 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
21 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
59 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 + ...
1
vote
1answer
51 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 ...
3
votes
1answer
52 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
93 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
131 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
74 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
46 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
50 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
91 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
118 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
133 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
88 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
41 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
67 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
111 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
105 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
177 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
143 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
204 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 ...
3
votes
1answer
117 views

Problem with tikz external library and chemfig - fatal error in external image

I have a document with a lot of diagrams created with PGFPlots and want to externalize those. All other tikz snippets should not get externalized. I achieve this by setting \tikzset{external/only ...
3
votes
1answer
116 views

amino acid — peptides chemfig

Inspired by this question chemfig and lego-style molecule construction, I decided to make a generic method of drawing peptides...that's a series of amino acids bonded together to the uninitiated. I ...
1
vote
2answers
168 views

Electron movement between compounds in reaction schemes

I tried to draw some reaction schemes with some electron movements using the chemfig macros. Problem is: I can draw every electron movement but in schemes only inside a certain compound of the ...
6
votes
2answers
112 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} ...
4
votes
1answer
62 views

chemfig Horizontal Aligment

I need to align some molecules according to this picture. 1st Point of alignment should be the beginning of the ring, 2nd point of alignment should be the 'N' on the right-hand chain. The bound to ...
1
vote
2answers
99 views

Aligning labels of chemical reaction

how do I do this: so far I have: \begin{center} \schemestart \chemfig{CH_3Cl} \chemsign{+} \chembelow[.25ex]{\chemfig{Si(Cu)}}{Silicon/CopperAlloy} \chemrel{->} ...
1
vote
1answer
67 views

How can I create multiple connections in a molecule using the chemfig usepackage?

Dear fellow Tex users, I would like to draw some complex molecules using the chemfig package and am facing a problem when wishing to make several independent connections between atoms in my molecule. ...
4
votes
1answer
84 views

Distance between arrow and reaction product

Please tell me, How I can reduce a distance between arrow and feed substances. I want the same distances at all three directions. To make it clearer, I explain: I drew the side substances as a massive ...
6
votes
1answer
85 views

Placing the Head of a Curved Arrow of a Reaction Mechanism Slightly Above the Plus Sign

My Code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage{chemfig} \usepackage{tikz} \usetikzlibrary{arrows.meta} \tikzset{ ...
5
votes
1answer
137 views

font size in chemfig

I am using chemfig scaling and want to increase the font size, but not any other parameter of the molecule. So a MWE would be: \documentclass{article} \usepackge{chemfig} \begin{document} ...
3
votes
2answers
149 views

Labeling Species of a Chemical Reaction

My code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \setcounter{secnumdepth}{5} ...
7
votes
1answer
205 views

How to use chemfig for chemical reaction with skeletal forms

My code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \setcounter{secnumdepth}{5} ...
3
votes
2answers
159 views

chemfig chemname alignment in schemes

After careful consultation of the chemfig documentation and looking up a couple of questions here, I am struggling to find a solution to get these correctly aligned. They are inside a box which is ...
3
votes
2answers
229 views

chemfig: align multiple reactions

How can I align multiple reactions to the reaction arrow using chemfig? In the MWE, I want to align the two reactions to the arrow. \documentclass{minimal} \usepackage{chemfig} \begin{document} ...
5
votes
2answers
209 views

Drawing histidine with chemfig

I'm trying to draw histidine with chemfig and I'm stuck. I drew most parts correctly but I'm having trouble attaching the imidazole ring properly. Here's what I have so far: \documentclass{article} ...
2
votes
2answers
273 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} ...
1
vote
0answers
52 views

I have a problem with the command \chemleft[ of chemfig [closed]

I have a problem with the command \chemleft[ of chemfig. Someone of you can help me please?
3
votes
4answers
188 views

Chemical structures drawing: {table} vs \chemfig

I write a chemical structure as a table. Please help me understand, How can I reduce the distances between the rows and columns in a table? This is the structure of the zeolite and would like to make ...
1
vote
2answers
173 views

chemical scheme not elegant

I want to make this chemical scheme: I try with this code. But not very elegant. Somebody can I help me ? \documentclass[12pt,twoside,a4paper,openright]{report} ...
2
votes
1answer
87 views

increase zorder in chemfig+tikz

I have a chemfig structure where I want to highlight certain positions by drawing a simple circle at the atom site. This works so far, but I would also like to have the new nodes on top of the ...
2
votes
1answer
84 views

Custom label for chemical structures

I need a custom label for my chemical structures and everything works fine but the label isn't centered. Does anyone know how to center the label? \documentclass{minimal} \usepackage{hyperref} ...