Questions tagged [chemfig]
{chemfig} is for questions pertaining to the use of the chemfig package for drawing 2D molecules and reaction schemes.
728
questions
1
vote
1
answer
31
views
Aligning a chemfig diagram and lines of text in different columns of a tblr table
I'm having trouble using the \tblr environment to make a chemistry handout. I am using TeXstudio to make a table with eight columns. The third column has a \chemfig diagram of the geometry of generic ...
4
votes
2
answers
242
views
How can I put a withdrawing or donating group in an aromatic ring in chemfig?
I need to put an undetermined electron withdrawing or donating group in an organic molecule (an aromatic ring), using arrows instead of lines as bonds, but with the barbs just in the middle.
This is ...
0
votes
2
answers
34
views
Superscripted and subordinated Terms with chemfig
I have this code
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\schemestart
2\chemfig{\charge{90:3pt={\tiny $-$1},90:8pt={\tiny $+$5}}{S}_2\charge{80:3pt={\tiny $-$2}}{O}^{2-}_{3 \, (...
1
vote
1
answer
36
views
Representation of a chemical bond as an arrow [duplicate]
With which options and above all where can the head of the arrow (coordinative bond) be designed (e.g. triangle as head)? This should be possible with TikZ?
\documentclass{article}
\usepackage{chemfig}...
2
votes
2
answers
57
views
Chemfig Scheme: wrong alignement of a reaction
I'm trying to use chemfig to put a reaction in my document, but the diferent molecules are missaligned. How I coul fix it?
This is my code:
\documentclass{article}
\usepackage{chemfig}
\usepackage{...
1
vote
1
answer
37
views
Signs outside brackets in the chemfig environment
I'm using chemfig environment inside Latex and I have a big molecule inside brackets.
I need to put a plus sign outside the brackets.
\chemleft( \chemfig{*6(---=--)} \chemright) (The plus sign must be ...
0
votes
2
answers
86
views
Add separation between atoms and charges in Chemfig
I am drawing Lewis diagrams and need a little more space between the atoms, electrons, and charges. I cannot find anything that adds more separation between the atoms and \charge. Anyone know how I ...
2
votes
2
answers
104
views
How to draw arrows for organic mechanism
How can I draw the arrows for organic mechanism as in the attached pictures?
An edited MWE from the answer below:
\documentclass[a4paper, 10pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{...
0
votes
1
answer
52
views
Chemical equation with multiple arrows in multiple directions
I need to draw chemical equations with multiple arrows pointing out or in from a single "node". I tried rigging the curved arrow example given in the texdoc help for chemfig package.
The ...
1
vote
1
answer
52
views
How to move a chemfig figure up or down
I want to centralize this equation:
\documentclass{article}
\usepackage{chemfig}
\begin{document}
% Tartaric acid code \chemfig{HO-[1](=[7]O)(-[2](-[3]OH)-[1](-[7]OH)(-[2](=[1]O)(-[3]OH)))}
$$...
2
votes
2
answers
131
views
cycle with chemfig
I am trying to draw cyclobutane with chemfig
\documentclass{standalone}
\usepackage{chemfig}
\begin{document}
\chemfig{H_2C?[a]-CH_2-[:-90]CH_2-[:180]H_2C?[a]-}
\end{document}
How do I get rid of the ...
4
votes
2
answers
135
views
How to rotate the bracket index in a chemfig structure
I am trying to draw a structure of a large molecule using chemfig, where the repeat unit is vertical. Is there a way to rotate the index of the bracket? In my attempt, it is rotated by 90 degrees and ...
1
vote
1
answer
68
views
Layout chemfig/schemestart
for a report I'm currently writing I wanted to include some chemical reactions. Most of them are fairly easy to put into LaTeX but I'm having some trouble with the more complex reactions. A picture is ...
5
votes
2
answers
241
views
Formatting Chemfig inside of table
I am trying to create a list of organic compounds as part of a table. However, when I add the chemfig elements into the table they touch the top and bottom of the cell which is undesirable. ...
4
votes
2
answers
193
views
Added an eye for the Newman projection
To better understand the axis of vision in the Newman projection, I would like to add a symbolic eye (while searching, I found this code: Symbol for eye (looking for a library) ) in the middle of my ...
0
votes
0
answers
26
views
chemfig: atom vertically shifted when using \Charge
When using \Chargethe atom is shifted vertically
\documentclass{standalone}
\usepackage{chemfig}
\begin{document}
\chemfig{-C(-[2])(-[6])-\Charge{20=\|,110=\|}{O}(-[:290]H)} \qquad \chemfig{-C(-[2])(...
0
votes
2
answers
70
views
Represent a square of reactions with their reaction rates
I would love to be able to represent a network of reactions in a square like so (pardon the scribbling)
note: I don't care about the squares around the nodes of the reaction, I can live without those....
2
votes
3
answers
135
views
How can I rotate a pentagon in chemfig?
I want to draw the following molecule (see figure below), but I don't know how to rotate the above pentagon:
Here's my attempt to do draw it:
\documentclass[12pt, a4paper]{article}
\usepackage{...
2
votes
2
answers
100
views
Problem with chemfig :
I need to draw the following scheme of equilibrium state of Fluorescein
Using chemfig package, and here's my code for that:
\documentclass[12pt, a4paper]{article}
\usepackage{chemfig}
\begin{document}...
0
votes
4
answers
81
views
Diverging arrow in chemfig
I need to create a reaction scheme where a single molecule is hit by light generating 2 states each evolving to one state(refer to picture)
Since merge don't work in reverse (connect one molecule to 2 ...
0
votes
0
answers
33
views
latex chemistry TMP not labeling
I have tried using the following method as John Doe said, but unfortunately it is does not working.
CODE
\documentclass[12pt]{report}
\usepackage[T1]{fontenc}
\usepackage[runs=2]{auto-pst-pdf}
\...
1
vote
1
answer
26
views
`chemname` alignment issues
The following code…
\documentclass[border=2mm]{standalone}
\usepackage{chemfig}
\usepackage{chemformula}
\begin{document}
\schemestart
\chemname{\chemfig{Ca^{2+}}}{Calcium ion}
\+
\chemname{\...
2
votes
1
answer
95
views
Amstext (chemmacros) causes problems in selecting math fonts in chemfig
As the package typeface causes fatal error after the LaTeX core updates I have to use the common \usepackage{font} to load my favourite set of fonts (see question Typeface returns fatal coding errors ...
1
vote
3
answers
168
views
Difficult hexagon chain
I’m trying to draw this path graph of hexagons but it is disconnected beginning at a certain hexagon and then continues to the next.
I know how to create the hexagon path graph and have created ...
4
votes
1
answer
68
views
How can I use chemfig atom sep with aromatic rings?
I'm using chemfig and I would like to set atom sep globally. However, it seems to disrupt aromatic rings:
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\chemfig{**6(------)}
\end{...
1
vote
2
answers
49
views
Plus charge style in organic molecules
I want to change the format of \oplus command but I can't change the style.
Style wanted :
To explain a little bit, I don't want the circle of \oplus to touch the + sign.
Help's appreciated 😊
Thanks
1
vote
3
answers
83
views
Same size branch in chemfig
Here is my MWE:
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\section{I need caffeine.}
\setchemfig{atom sep=2em}
\chemfig{*6((=O)-N(-H)-(*5(-N=-N(-H)-))=-(=O)-N(-H)-)}
\end{document}...
0
votes
2
answers
52
views
How would i draw a carboxylate ion with the "chemfig" package?
I'm unsure how to draw the dotted lines, any help would be greatly appreciated.
0
votes
1
answer
105
views
Horizontal hexagonal chains (chemfig/tikz)
I am using LaTeX for research with hexagonal chains and would like to know some ways to create a horizontal hexagonal chain.
Is it possible to use chemfig or tikz to create a chain similar to either ...
0
votes
1
answer
50
views
How to label individual molecules in a chemfig reaction scheme?
I've looked all around, and can't even find this information in the chemfig manual. I'm attempting to label individual molecules in my chemfig reaction scheme. How to do this?
I've tried inluding the ...
0
votes
1
answer
29
views
Arrow not fitting text above it
Here's my code:
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{**6(--(-COOR)-(-COOR)---)}
\arrow{->[hydrolisation][]}
\chemfig{**6(--(-COOR)-(-COOH)---)}
\...
0
votes
1
answer
94
views
How to rotate single benzene ring with `chemfig`?
In chemfig, creating a benzene ring results in the second atom being at the very bottom:
\chemfig{**6(A------)}
How do I get one of the benzene ring sides to be parallel to the horizontal? In other ...
1
vote
1
answer
30
views
How to use the chemfig tags to draw an esterification scheme (@tags in charge env)?
So for the love of me I cannot figure out chemfig. I tried for hours now to replicate a reaction mechanism and honestly regret not having just used photoshop. But here we are.
I cannot find out how ...
0
votes
0
answers
106
views
Chemical drawing software with latex script export
I have a query
Any chemical drawing software is available that is able to export the structures or reactions to latex script, and then compiled by a latex editor
Thanks in advance
0
votes
2
answers
39
views
Alignment about the chemical equation
\schemestart $\chemfig{C(-[:50])(-[:130])=[:-150]C(-[:150])-[:-90]C(-[:-150])=[:-30]C(-[:-50])(-[:-130])}$ \+{0mm,0mm,-1cm} $\chemfig{[:144]O*5(-(=[:72]O)-=-(=[:-72]O)-)}$ \arrow{->} $\chemfig{*6((-...
1
vote
1
answer
33
views
How can I align arrows in different schemes?
\documentclass[margin={2mm 2mm}]{standalone}
\usepackage{chemfig}
\usepackage{amsmath}
\newenvironment{aasa}{$\displaystyle\aligned}{\endaligned$}
\begin{document}
\begin{figure}[h]
\centering
\...
-1
votes
2
answers
74
views
Arrow deletes heteroatoms in chemfig
I neither know nor understand why arrow delete all heteroatoms in a reaction mechanism using chemfig.
\usepackage{chemfig,tikz}
\begin{document}
\begin{figure}
\centering
\schemestart
\definesubmol\N{\...
1
vote
1
answer
95
views
how to break line on a chemfig?
noindent \textbf{Dehydrogenation}
\begin{figure}[h]
\label{dicosimo_mechanism}
\centering
\scalebox{.8}{
\begin{center}
\setchemfig{scheme debug=false}
\schemestart
%%%%%%%%%%%% ETEP 1 part1 %%%%%...
0
votes
1
answer
51
views
how to get a name for a hooked bond on chemfig?
I do not know the correct syntax to create @{l4} name for the bond. I want to put the last arrow forward to the dotted bond.
%%%%%%%%%%%% ETEP 1 %%%%%%%%%%%%%%%%%%%%%%
\chemfig{M(
-[@{l2}2,,,,dotted]...
1
vote
2
answers
67
views
ChemFig diagram adjustments
I am trying to draw a diagram of methanol with chemfig and there are a few problems that I want to sort out. (1) How do I make the 𝛿+ not overlap the C-H bond? i.e. How can I move it slightly (2) How ...
0
votes
1
answer
55
views
How can I create the following reactions with help of chem figure package?
I am trying to draw the following reactions with help of chem figure package in latex.
i am not able to figure out how to draw the molecules under which π is written (last five molecules in which Pt ...
0
votes
1
answer
46
views
searching for old chemfig versions
I would like to have older chemfig version packages. Unfortunately ctan has only the last version. I would especially need versions 1.3, 1.31, 1.32, 1.33, 1.34, 1.4, 1.41. If someone has any of these ...
0
votes
0
answers
45
views
Chemfig polymer brackets without compiling twice
I'm working on the following picture:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{chemfig}
\begin{document}
\schemestart
n \quad \chemfig{C(-[3]H)(-[5]H)=C(-[1]H)(-[7]H)}
\...
1
vote
2
answers
66
views
How to write name under molecule?
How can I add a name under the molecule? I want to add "Cellulose":
I only have this so far:
$\chemfig{[:30]6((<HO)-(<:OH)-(<:O>:6(-(<HO)-(<:OH)-(<:O)-O-(<)--))-O-(&...
3
votes
2
answers
106
views
How to align this chemfig equation?
I'm new to chemfig and I've tried every solution available on the internet for it. But nothing is working for me.
\documentclass[12pt, a4paper]{report}
\usepackage{amsmath,chemfig}
\begin{document}
\...
0
votes
1
answer
71
views
Chemfig: how to make a vertical dashed line in the center of the bond
I'm doing presentation about red-ox reactions in beamer, and I need to make a dashed line like on the photo
\chemfig{H-C(-[2]H)(-[6]H)-C(=[:35]O)-[:-35]O-H}
Can someone help me, please?
3
votes
1
answer
117
views
Nanokid in creation
Hello, I want to create the Nanokid with latex, but I need some help for the hands. How do i create the Hands, where 3 snakes in 3 different direction?
I have this so far
$\chemfig{*6(=(-~-*6(=-(-~--[:...
-1
votes
2
answers
122
views
How can I create this?
I tried this:
\documentclass{standalone}
\usepackage{chemfig}
\begin{document}
$\chemfig{HO-(-[::+30]*6(-*6(------)-----))=[::-60]O}$
\end{document}
It is not 60°, how can you know what angle ...
0
votes
1
answer
103
views
Chemfig: Curved arrows in specific locations
Using chemfig I want to draw something like that
but I don't know how to make these arrows. I stuck in this place:
\documentclass[a4,10pt]{article}
\usepackage{chemmacros}
\usepackage{chemfig}
\...
1
vote
1
answer
70
views
Chemfig: How to Make the Boundry of an Atom be Circular?
I am using \makebox to control how atoms are printed for consistent results. I would like to print my atoms as a circle instead of a box so that all bonds at all angles will be equidistant from the ...