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

learn more… | top users | synonyms

4
votes
1answer
98 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 ...
2
votes
0answers
20 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
1answer
57 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
0answers
37 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 ...
2
votes
1answer
48 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
91 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 ...
0
votes
0answers
66 views

How can I draw a Proton Sponge?

This is known as a Proton Sponge, or 1,8-Bis(dimethylamino)naphthalene. How do I draw this using the chemfig package?
6
votes
1answer
71 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
33 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 ...
0
votes
0answers
34 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
49 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
62 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
56 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
74 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
113 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
164 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
82 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
112 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
141 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
151 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
43 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
148 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
118 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} ...
0
votes
0answers
43 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
66 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} ...
1
vote
0answers
143 views

Chemical Structural formula in math latex without package [closed]

I need to draw the chemical structures of carbon compounds like benzene, acetone. The problem I am having is that I am using script from ...
3
votes
1answer
207 views

How do I insert the double dagger symbol for transition state?

I'd like to use the double dagger symbol of the transition state after a squared parentheses in chemfig. Here it is what I've managed to do: \documentclass{article} \usepackage[italian]{babel} ...
2
votes
0answers
140 views

chemfig: reaction above arrow

I want to typeset a small reaction above a reaction arrow inside a scheme. Putting a \subscheme{} into the first of argument of \arrow unfortunately breaks the layout. Should I just try to position ...
5
votes
1answer
89 views

Error with newcommand and \def

Can anyone ples help with this problem: \documentclass[fontsize=12pt,paper=a4,headsepline]{scrartcl} \usepackage{chemfig,chemmacros} \def\nc{\arrow{0}[,0]} \begin{document} What it is: ...
2
votes
1answer
63 views

Name in chemfig: on rotation it is placed above, rather than below the molecule itself

please consider the following \documentclass{minimal} \usepackage{chemfig, xstring} \begin{document} \definesubmol{allicin}{% % 1 =[::90]S% 2 ( -[::60]% 3 ...
6
votes
1answer
172 views

Chemfig: length and angle of bonds

I've just tried using chemfig for the first time to try and recreate a figure (below). I had a quick look through the manual so see if there was an example that I could adapt to my needs, and this ...
0
votes
0answers
48 views

Saving Chemfig submolecules in a separate file, to be recovered into beamer

Please consider the following code \documentclass[t]{beamer} \usepackage{chemfig} \begin{document} \begin{frame} \frametitle{1st frame} \definesubmol{x}{-[:+30,.6]-[:-30,.6]} ...
3
votes
1answer
83 views

Problem with mesomeric effect in chemfig

I'm trying to draw mesomeric effect for a molecule using chemfig I would like to create something like this: From the documentation page (see chapter 11 "Representing electron movements")seems easy ...
4
votes
2answers
118 views

How to move bond position with chemfig package?

I'm using this code to generate chemical structure with chemfig package: \documentclass[12pt,a4paper]{standalone} \usepackage{chemfig} \begin{document} \setatomsep{2.5em} ...
1
vote
0answers
120 views

Numbering of equations in chemfig

This might be a stupid question, but how do I number my equations in chemfig? I've drawn this rather complicated equation in chemfig, but I have no idea how to number it. I was hoping to have it ...
5
votes
1answer
187 views

Chemfig - command arrow - alignment doesn't work

I'm writing my bachelor thesis. I wanted to insert a chemical equation, but the reactant and the product are not horizontally aligned well. I found in Chemfig manual a solution to this problem but ...
3
votes
1answer
121 views

In chemfig, grouping with \color ineffective, unlike \textcolor

Some strange behaviour which contradicts the documentation was encountered when creating a figure of 5-cafeoylquinic acid with chemfig. It is stated in the manual that The atoms are displayed in ...
1
vote
1answer
218 views

Draw molecule charge in latex using chemfig?

I've got a lewis dot structure diagram as seen in the following image: However, I would like to have brackets on the outside to indicate the positive charge, since this is supposed to represent H3O ...
12
votes
2answers
320 views

Ugly bond joints in chemfig

Making my first scientific poster I have noticed that Chemfig does not join bonds in a very aesthetic way (see attached image). How can I avoid the small gaps shown here, and make sure the transition ...
6
votes
2answers
299 views

How to draw counter-ions using chemfig package?

For my thesis I need to draw this: With this code I could get everything except for the counter-ion (shown with red arrow, I do not need the red arrow and the line on the figure). ...
5
votes
1answer
152 views

Ring as a submolecule

Is there a nice way to define a ring submolecule and then reuse it in a bigger molecule (maybe something similar to “chemfig and lego-style molecule construction”? (append one ring after another) I ...
5
votes
1answer
179 views

change fontshape for lewis dot in chemfig chemmacro

I wish to draw a chemical reaction showing a radical chain reaction. I am using chemfig and chemmacros and beamer. beamer uses sans serif fonts which is good for display and less fussy. When I write ...
2
votes
1answer
70 views

Bug in \arrow label?

I am trying to scale a molecule which I have as a label over an arrow in a reaction. For some reason, it seems I can't do it and I always get the following error: Argument of \CF@chemfig@i has an ...
16
votes
3answers
1k views

Plus sign in the middle of a ring

I would like to draw in chemfig the following picture: But I am struggling with the "+" sign in the middle of the circle. Is there a way to draw it? Thank you! What I have so far is this: ...
4
votes
1answer
144 views

How do we mirror a reversible reaction arrow in chemfig

In Chemfig, the reversible reactions are represented with a double harpoon. The top one goes from the left to the right, the bottom from the right to the left. One can rotate this double arrow. But I ...
4
votes
1answer
160 views

chemfig: Colored atoms don't align, and how to draw bonds to an electric charge?

So I want to show the ionic interaction between a molecule and a charged element. But when I use color to highlight a part of the molecule, the bond alignment is no longer correct. The first example ...
2
votes
1answer
165 views

Vertical alignment of molecules

\begin{scheme}[h] \centering %\setcrambond{3pt}{1pt}{1pt} %\setbondoffset{3pt} \scriptsize\chemfig{(-[::60]R_1)(=[::180]O)-[::-60]O-[::-60]-[::60](-[::60]O-[::-60](- ...
2
votes
1answer
132 views

Creating delocalized double bonds in chemfig without tikzset?

I'm trying to create a delocalized double bond, similar to the example given in the chemfig documentation. They suggest using the tikz library package {decorations} to implement this. Before running ...
5
votes
2answers
111 views

Angles in Chemfig

I want to draw this formula using chemfig: This is what I've got so far: \chemfig{Cu^+(-[:180]N**6(-**6(------)--(-OOC-)---))(-[1]N)(-[5]N)(-[7]N)} I don't get the angle from N to Cu+ right. I ...
3
votes
1answer
99 views

How to change the default value bond length to an absolute value in chemfig?

Chemfig allows you to set bond length in the second argument of the bond, like -[,2] (a multiple of 2 to the default value). How to set the value of bond length for an absolute value (like 5mm), ...