Questions tagged [chemfig]

{chemfig} is for questions pertaining to the use of the chemfig package for drawing 2D molecules and reaction schemes.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Redefining some simple \cee type command in package {mhchem}, to avoid using the package

Is it possible to define a simple macro replacing \cee in package {mhchem} (since the package leads to errors) Thanks
user avatar
  • 157
1 vote
1 answer
23 views

Aligning xilene isomeri with chemfig

Ho can vertical align this scheme to the red line? \documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \usepackage{chemfig} \setchemfig{% % ...
user avatar
1 vote
1 answer
28 views

Center reaction with chemfig: subscript causes shifting

As can be seen, the second molecule of the reagents is not aligned with the first, probably due to the presence of the methane subscript 4. I tried this solution, but it doesn't work. Any idea? \...
user avatar
2 votes
2 answers
68 views

Center-align stacked molecules with chemfig

At right, the vertical arrow from ethylene to M is a coordination bond. Is it possible to centrally align the two molecules (ethylene and the solid catalyst surface), aligning their centers with the ...
user avatar
1 vote
2 answers
81 views

Formatting chemistry reaction

This is a draft of the reaction I would like to draw \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[full]{textcomp} \usepackage[greek,italian]{babel} \...
user avatar
0 votes
1 answer
48 views

Draw vertically using chemfig

Consider the following drawing of a glucose molecule: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig[atom sep = 2em]{C(-[2]OH)(-[4]H)(-[6]H)-C(-[2]OH)(-[6]H)-C(-[2]OH)(-[6]H)...
user avatar
1 vote
1 answer
49 views

Is it possible to write organic chemical substance in inline math mode?

Is it possible to write organic chemical substance in inline math mode? For example:
user avatar
1 vote
0 answers
33 views

Understanding how to apply different colors in chemfig

In the answer to this post, Symbol 1 (the answerer's nick) generated the following chemical figure with different colors using the code below. \documentclass{article} \usepackage{chemfig} \begin{...
user avatar
  • 1,174
2 votes
1 answer
66 views

Different colors in chemifig

I am trying to get the following chemical structure I saw this page, but I wasn't able to apply it to my case. Anyone has a solution? Here follows my MWE: \begin{tikzpicture} \node (mol) at (0, 0){% ...
user avatar
  • 1,174
1 vote
1 answer
64 views

chemfig: Spacing and fitting a big reaction mechanism

I want to replicate the following reaction mechanism: Problems are: Arrows are not middle centered to the compounds Vertical and horizontal spacing is insufficient and unequal Names appear at ...
user avatar
  • 13
0 votes
2 answers
66 views

Chemfig: How to get multiple arrows to one compound

I'm very new to the ChemFig package. I would like to generate the following reaction scheme: I'm having trouble coding the first four reactants that all lead to the \emptyset. This is what I've ...
user avatar
  • 1
2 votes
2 answers
45 views

Chemfig Adjacent Atom Help

I am struggling with placing an H right beside my O. I don't want any dash between the O and H; just them beside each other. Here is a photo of what I want: Here is a photo of what I attempted: Here ...
user avatar
2 votes
2 answers
74 views

How to combine multiple rings on chemfig

I am trying to create the following structure on chemfig, but some things are not aligning or going to the correct places. Please help. My MWE is: \documentclass{article} \usepackage{chemfig} \begin{...
user avatar
1 vote
2 answers
57 views

Chemfig: aligning multiple equations

I am trying to visualize the reaction to obtain fat. I want to align each of fatty acids on top of each other, without a connection. How can I stack them without a connection? I have tried using \...
user avatar
2 votes
2 answers
44 views

Bracket overlap with chemmacros

I'm trying to position the brackets such that there is no overlap, while ideally aligning their vertical positions. The solutions here don't seem to help much. Also is there a way to move the ...
user avatar
  • 75
2 votes
1 answer
53 views

Chemfig - is it worth to invest in? Reactions and mechanisms

It's probably a silly question, but I wanted to hear more experienced people in using chemfig package and generally if it is worth to invest in? Normally I've done my reactions and mechanisms in ...
user avatar
2 votes
2 answers
64 views

Chemfig Electron Pair + Charge + Branch Help

I need help figuring out how to branch from an atom with an electron pair and charge. The \charge command doesn't seem to allow any branching. \Lewis won't work as this is no longer supported by ...
user avatar
2 votes
3 answers
51 views

Misalignment of bonds in atom with exponent

Normally, I could write H20 with \chemfig{H-[:30]O-[:-30]H} which produces: Beautiful! Now, If I try to add a delta symbol as an exponent, it becomes messy and the bonds does not point to the atoms, ...
user avatar
3 votes
2 answers
96 views

Chemfig is drawing out of the box, on my text

I'm trying to make a figure to show hydrogen bounds. But the figure, draw using chemfig and tikz, but the figure overlaps the surrounding text. Here is my MWE: \documentclass{article} \usepackage{...
user avatar
0 votes
1 answer
54 views

Change Lewis line width using chemfig

I'm drawing chemical molecules with Chemfig and, in the preamble, I defined a 0.8pt width for the lines. However, the line style doesn't apply on Lewis ones... How can I do to fit them so that they ...
user avatar
1 vote
1 answer
82 views

About chemistry mechanism [closed]

I have asked so many questions in drawing chemistry mechanism. I would like to draw the catalytic hydration mechanism. In step 2, the curly arrow is crossing the bond. Can I make the curly arrow to ...
user avatar
0 votes
3 answers
73 views

Question about position of charges

I would like to have this compound but I want the \oplus on the left of the oxygen and also the bond is directly bond to the oxygen. I would like to use \chemleft, but it come out with many errors. ...
user avatar
0 votes
2 answers
68 views

vertical arrow in chemistry mechanism

I have decided to mark down the mechanism that I have learnt. However, I have got some problem. I would like to use a vertical arrow on the second step but I do not know any command that can form a ...
user avatar
0 votes
1 answer
102 views

How to draw the following Bohr's Atomic Model in LaTeX?

I'm a new user in LaTeX. I want to draw Bohr's Atomic Models like the following picture. Can someone please help me?
user avatar
0 votes
1 answer
64 views

The tex file suddenly does not work

\documentclass[12pt,a4paper]{report} \usepackage{chemfig} \usepackage[version=4]{mhchem} \begin{document} \title{mechanism} \maketitle \newpage \begin{center} \section*{addition of \ce{HX} to ...
user avatar
1 vote
1 answer
50 views

How do you add two different lines of text using tikz and chemfig?

So I have kind of a problem, I want to recreate this chart: Here's the current code: \begin{center} \fcolorbox{black}{gray!20}{ \schemestart \begin{tikzpicture} \draw[fill=...
user avatar
  • 83
1 vote
1 answer
65 views

Lewis structure with 5 atoms

I need to obtain something similar to this: This looks like a Lewis structure, so pairs of small x-es should rather be double dots. My attempt: \documentclass{article} \usepackage{chemfig} \begin{...
user avatar
0 votes
1 answer
48 views

Aligning charged molecules

I've been trying to get the bond between the Hydrogen and Chlorine to line up with the arrow and + signs. However whenever I add the delta + and delta - for the dipoles, the molecule is offset ...
user avatar
1 vote
1 answer
43 views

Sign and Arrow alignment

I'm trying to get the arrow and the right hand side of both these equations to align horizontally with the 'n's and + sign. I tried rewriting the chemfig molecules, though that only helped align the '...
user avatar
1 vote
2 answers
53 views

Horizontally aligning molecules

I'm trying to get the plus signs in both reactions to line up with the arrow and other plus sign in the equation. I've tried rearranging the \arrow{0}[,0] around to see if that changes anything, ...
user avatar
2 votes
1 answer
45 views

Chemfig set colour for multiple atoms

I have a molecule where I only want to highlight two atoms in a different colour (O- and Na+). However, whenever I place both atoms in \textcolor{olive}{O\textsuperscript{-}Na\textsuperscript{+}} the ...
user avatar
0 votes
2 answers
63 views

Scriptstyle has no effect - Chemfig

Just noticed that adding \scriptstyle{\oplus} or \scriptsize{\oplus} doesn't actually change anything. I'm not sure if I have been using the command wrong (I'm trying to decrease the size of the \...
user avatar
2 votes
1 answer
43 views

Vertical alignment in \tabular environment with \chemfig

How can I vertically align my rows to the center of the molecules? This is my table: \documentclass[12pt, a4paper,oneside]{book} \usepackage{adjustbox} \usepackage{chemfig} \usepackage{multicol} \...
user avatar
1 vote
1 answer
57 views

Displaying Bond Angles Chemfig

I was trying to draw in bond-angles for a SOCL2 molecule, however, I'm unable to correctly set the anchor points (from S=O bond to Cl<S bond). Was wondering if anyone could give me a pointer? \...
user avatar
3 votes
1 answer
79 views

Resolving font issue in chemfig

When writing chemical formula I use both \chemfig{} and \ce{} commands but I noticed that the two bring outputs having different font style as shown below. Currently working with these codes: \...
user avatar
3 votes
2 answers
100 views

Chemfig - how to make different colored bonds in a molecule

I want to draw an ethanol molecule with a hydrogenbond to a water molecule. I want the bond between them to be a dotted, red, line, but all the other bonds to be normal, yet I can't figure out how. My ...
user avatar
3 votes
2 answers
165 views

Completing Chemfig Scheme

I'm currently writing a lab report using LaTeX and I'm tasked with rewriting one of the chemical reactions (in this instance isoborneol to camphor, reaction provided in pic). I have the basic ...
user avatar
1 vote
1 answer
59 views

molecule isocyanurate not drawing correctly

I'm having trouble drawing the Isocyanurate molecule. The link between nitrogen (N) and carbon (C) on the right side does not link correctly, as per the code - it moves a little inbound to the carbon (...
user avatar
0 votes
1 answer
76 views

Writing Chemical Reactions - Lewis Structure

How are you? I'm having a hard time doing this chemical reaction with a Lewis structure, could someone help me? Thank you very much!
user avatar
1 vote
1 answer
77 views

how to add color to symbol used in chemdown command?

I'm trying to color the "]" symbol used in the "\chemdown" command (package chemfig, \chemdown] ). When I get it colored, the "]" symbol becomes small, much smaller than ...
user avatar
  • 1,280
4 votes
2 answers
109 views

Align atoms with chembelow/chemabove (chemfig)

I am building the selegiline structure and for this I use \chembelow and \chemabove from the chemfig package. The problem is that I cannot align the hydrogens (H_2) with the carbon (C), that is, the ...
user avatar
2 votes
2 answers
103 views

How to reduce vertical distance between compounds in chemfig

When writing reaction mechanism in chemfig with subscheme there are wide vertical gaps between the two compounds as seen in the figure attached. How can I achieve the desired position shown in the ...
user avatar
1 vote
1 answer
74 views

arrow with cross into chemfig

was trying to make an arrow with a cross (when a chemical reaction does not occur) using tikz and chemfig, but the results were not good. I would like to do something similar to the drawing below. Any ...
user avatar
  • 1,280
1 vote
1 answer
73 views

Drawing a chemical molecule structure - chemfig - [ ] in centering

I would like the [ ] to be in the center and I'm not succeeding. \chemfig{HO-[@{left,0.25}]CH_{2}CH_{2}O-[@{right,0.25}]OH} \polymerdelim[delimiters ={[]}, height = 10pt, depth = 10pt, indice = n]{...
user avatar
0 votes
1 answer
159 views

Triple bond in Chemfig

I have built the following resonance structures, but I would like to represent bonded electrons with dots and not dashes. In the case of a double bond I can use \: and get something like X::Y, but in ...
user avatar
1 vote
1 answer
78 views

Triglyceride using chemfig

I can't seem to replicate this triglyceride structure in LaTex, I can connect the carbon atom with a 270 degree angle [6], but I can't figure out how to add the hydrogen on the left of the carbon. Any ...
user avatar
  • 47
1 vote
1 answer
60 views

how to cut the left side of a "U" arrow in chemfig?

I would like to reduce the left side of the "U" arrow in chemfig. \arrow{-U>[][\chemfig{ROH}][][.25]}[0,2] Using the "shorten" command results in deformation. \arrow{-U>[][\...
user avatar
  • 1,280
0 votes
1 answer
27 views

\setarrowdefault gives error when using chemfig

I have a problem, I wnat to change the arrow tip style while using \chemfig. I've read to use the command \setarrowdefault but it gives the error "Undefined control sequence". Where do you ...
user avatar
0 votes
3 answers
80 views

chemfig: Drawing arrow from intermediate back to same starting molecule - u> arrows involved

I am trying to reproduce a very old article figure. I want to draw a straight arrow from the intermediate A back to starting molecule A. Do I have to do this with tikzpictures and arcs etc? Is there ...
user avatar
4 votes
2 answers
148 views

Chemfig align at middle

I Want ammonium oxalate and calcium oxalate to be at middle of the line. But can't figure out how to do so :( \documentclass[a4paper,11pt]{article} \usepackage[version=4]{mhchem} \usepackage{chemfig} \...
user avatar
  • 455

1
2 3 4 5
14