Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
40 views

How can I specify an arrow from a distant bond to another bond in chemfig

I have an issue regarding regarding using Chemfig to display an electron movement arrow from a distant bond to another. I have tried every possible arrangement of arguments but not found a solution. I ...
Jonathan-Schaefer-git's user avatar
0 votes
1 answer
41 views

Making parentheses in the simplest way possible

I looked at some community posts asnwering how to use brackets in chemfig, but it was only for their specific case and looked very overcomplicated for what I´m trying to do. Here is a picture of what ...
MahoneyTree's user avatar
1 vote
1 answer
17 views

Locally increase the size of an arrow

I want to show a sequence of reactions (for chemists, Cannizzaro reaction) on the same line. In my case, I have to write a long molecule (Ph-CH=O) on the arrow but I have a problem in my code: either ...
Nicolas's user avatar
  • 1,205
2 votes
1 answer
52 views

Problem with delimiter using the chemfig package

This is my first post here, so please excuse me if I do anything wrong. I have a problem using the \chemleft and \chemright commands. I use LuaLaTeX to compile. Whenever I try to compile the MWE given ...
Florian R.'s user avatar
0 votes
2 answers
32 views

Why is this error showing up when I run this section with a list in it?

I put a list in the section title of my document. Here is the code: \documentclass{article} \usepackage{enumerate} \usepackage{chemfig} \begin{document} \section{My Controversial Opinions: \begin{...
Vector's user avatar
  • 103
0 votes
1 answer
37 views

Problem with reaction mechanism in chemfig

Why these two arrows aren't in their places? First two chemmoves lines are in properly positions, and other two are something else and I can't find a problem in code. I compiled it few times. Also I'd ...
Michał Szymankiewicz's user avatar
0 votes
1 answer
34 views

Text above bonding and bond angle

Taking this pictures as example, how can I display r_1, r_2 and theta_1 in my 'ABC' molecule in a similar way? \documentclass[12pt]{article} \usepackage{chemfig} \begin{document} \begin{figure}...
user3204810's user avatar
  • 1,489
2 votes
3 answers
66 views

Drawing multiple arrows to the same complex with chemfig

I'm currently trying to draw a chemical reaction network in latex using chemfig, however I have got stuck when drawing multiple arrows to the same complex within a linkage class. Here is my script so ...
George's user avatar
  • 21
1 vote
0 answers
46 views

How to get Anki working with TikZ-based packages in 2024?

I want to learn the LaTeX language to study chemistry with chemfig package and make Anki flashcards. The problem is that I am unable to make it work with Anki (normal LaTeX works fine) I tried these ...
Fancôme's user avatar
0 votes
1 answer
24 views

Chemfig error using charge macro: Argument of \charge_c has an extra }

the following code compiles for the first two chemfig macros but not for the third: \documentclass{article} \usepackage{chemfig} \begin{document} This works: \chemfig{H-C(-[2]H)(-[6]H)-C(-[2]H)(-...
thilbricht's user avatar
0 votes
2 answers
71 views

Chemfig and TikZ

How can I make a chemical graph, with empty boxes, like this: In chemfig + TikZ? Or there is some other way? Somebody try something like this before?
Michał Szymankiewicz's user avatar
3 votes
2 answers
260 views

Aesthetic of a chemical compound

I am drawing the following chemical compound \chemfig[atom sep=24pt]{\textcolor{green}{CH_3}-C(-CH_2-CH_2?[a])(-[:-45,,1,1]CH_2-CH_2?[e])-[:45,,1,1]CH_2-CH_2-[:-45,,1,1]C?[a]?[e]-CH(-[:-45,,1,1]CH_2?[...
xxxx036's user avatar
  • 139
1 vote
1 answer
56 views

LuaLaTeX strange error with Noto CJK and babel onchar=ids fonts

I am converting a multilingual project to LuaLaTeX when it gave a strange error in a chemfig command: ! LaTeX Error: Command \rmfamily invalid in math mode. See the LaTeX manual or LaTeX Companion ...
M. Zhang's user avatar
  • 113
5 votes
2 answers
316 views

How can I curve the line around a molecule in chemfig and add a floating line?

So I want to make my chemical formulars in TikZ and I have this right now: My problem is that I want to curve the yellow line below the molecule to make the text more visible and to not cut the ...
SkillerRaptor's user avatar
2 votes
1 answer
148 views

How to draw Benzo(k)fluoranthene with chemfig?

Target Trial I drew benzene rings one by one. To get the rightmost benzene rings aligned correctly, I used [:0]. I attempted to use a pair of hooks ? so that the two positions will be connected. \...
4 votes
2 answers
597 views

Draw Saccharides

I would like to draw the following two pictures (source1, source2) using chemfig but I have no idea how to do it: I can copy paste the example from the bottom of page 41 of the manual (and make ...
Svend Tveskæg's user avatar
0 votes
0 answers
42 views

`\polymerdelim` issue with `tikz-external` crash

Error when i have both tikz-external and a chemfig molecule \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{external} \tikzsetfigurename{figure_\arabic{part}.\arabic{section}.} % set ...
Felipe9's user avatar
  • 329
0 votes
2 answers
101 views

Chemical formula: Bond an atom to a bond between other atoms

How to draw this? im having trouble drawing the cycle as it must be connected by the bond, also anyway to diminish the cycle bond size (atom sep) without having to add the sep to each bond? \...
Felipe9's user avatar
  • 329
2 votes
3 answers
148 views

chemfig -- \charge writes into surrounding text

\documentclass{scrartcl} \usepackage{chemfig} \begin{document} \par ggg jjj ggg jjj ggg jjj ggg jjj \par \schemestart \chemfig{A-\charge{90:5pt=\textcolor{red}{+}}{B}-C} \...
Wolfram's user avatar
  • 408
0 votes
2 answers
59 views

chemfig -- How to add horizontal space around an arrow?

Trying to add space around an arrow with \qquad leads to an asymmetrical result. This can be prevented with additional braces, but why are they needed? 1. The resulting image: In the first line, the ...
Wolfram's user avatar
  • 408
2 votes
2 answers
131 views

Chemfig double bonds have inconsistant appearance

I have drawn the molecule meso-Tetraphenylporphyrin using the following Chemfig code: \documentclass[12pt,twoside]{report} \usepackage{chemfig} \setchemfig{% atom sep = 1.75em, stack sep = 0....
Jackpen7's user avatar
3 votes
3 answers
167 views

Shift up a bond in ChemFig

In ChemFig, the "bond join=true" option does not work with "cram" bonds (see A, it is zoomed at join). It is possible to increase the length of the bond with the "shorten"...
CrocoDuck's user avatar
  • 3,980
4 votes
3 answers
559 views

Drawing chemistry rings with charges on them

I'm new to using chemfig. I'm trying to create chemistry handouts and I want to draw the tropylium cation: However I am unable to get the charge to come out of the ring. Any help would be appreciated....
algorhythm's user avatar
1 vote
3 answers
179 views

Difficult Spiro Para-Hexagonal Ring?

How can I draw the following diagram in LaTeX? this is code but it is different, \begin{center} \begin{tikzpicture}[scale=0.4,cap=round,>=latex] \draw[thick,blue] (0,0) -- (2,1.5) (2,1.5) -- (...
Liu Li's user avatar
  • 31
0 votes
0 answers
43 views

From chemfig to .mol file

Yes, I know this package can generate structure from .mol and SMILES files. I'd like to know: is it possible to follow the reverse path, i.e. once the structure has been drawn with chemfig, generate ...
user3204810's user avatar
  • 1,489
1 vote
1 answer
128 views

How to Draw Molecule

How do I draw the molecule Coronene, and place the ticks around the molecule with the letter H at the end of the ticks, using Tiks? here is the code ` \section{Conclusão} \begin{frame} ...
conrado10000's user avatar
0 votes
0 answers
32 views

How to prevent placing chemfig pictures in tabularx producing error when attempting to externalize it?

I am attempting to put some chemfig diagrams into my tabularx. I have got the table appearing as I want it, however I just tried to externalize the tikz drawings to speed up compilation and I am ...
Cale M's user avatar
  • 1
5 votes
3 answers
224 views

How to make a complex chemical diagram

I did everything possible to recreate this picture but I got stuck. My best result is SOOO far from perfect. \documentclass[border=1cm]{standalone} \usepackage{chemfig} \usepackage[utf8]{inputenc} %...
Максим Однорал's user avatar
0 votes
1 answer
85 views

How to use `\polymerdelim`

\chemfig{N-[1]N-[7]N}\polymerdelim[delimiters ={[]}, height = 45pt, depth = 40pt, indice = n]{op}{cl} May I know why it is not working? I am new to chemfig. (Also I know that this is not a real ...
11pro12's user avatar
3 votes
2 answers
193 views

Adjustments to the Fe2(CO)9 structure design with Chemfig

I'm trying to draw the structure of Fe2(CO)9 using chemfig, but I'm not getting the bridging ligands of the structure quite right. \documenteclass[]{article} \usepackage{chemfig} \begin{document} \...
PEDRO SOUSA's user avatar
2 votes
1 answer
137 views

Drawing a hexagon structure similar to a Grötzsch graph with TikZ

I am trying to draw a hexagon that is connected to a set of vertices and edges within the borders of the hexagon itself. It is similar to a Grötzsch graph but is a hexagon rather than a pentagon. So ...
phys's user avatar
  • 49
0 votes
1 answer
65 views

use of chemfig package - conflict with graphicx package

I am using the following code, which works well: \documentclass{scrbook} \usepackage{chemfig} \begin{document} \section{Tetracene} \vspace{2cm} \chemname[2ex]{\chemfig{*6(1?-2-3*6(-4-5*6(-6-7*6(-8-...
None's user avatar
  • 23
0 votes
1 answer
59 views

How to draw double line one dashed?

\documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{Co(-[0,,1,,very thick,dotted]Cl)(-[1]NH_3)(-[2]Cl)(-[2,,1,,very thick,dotted])(-[3]H_3N)(-[4,,1,,very thick,dotted]Cl)(-[5]H_3N)(-...
Ghassan Hamad's user avatar
1 vote
1 answer
27 views

Chemfig superscript and \llap

Does anyone have any idea how to avoid the overlap between the bond and the "12"? Thanks! \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{H-{\llap{${}^{12}$}C}(-[2]...
Marc's user avatar
  • 13
1 vote
1 answer
133 views

How to make chemfig and xymtex chemical reaction equation look better?

I am trying to make my assignments look better. Here is the code and the current output: \documentclass{article} \usepackage[version=4,layout=stacked]{mhchem} \usepackage{graphicx} \usepackage{chemfig}...
Aman's user avatar
  • 63
2 votes
2 answers
102 views

Lewis structure with chemfig inside chemformula inside align?

Hi. I am creating a beamer presentation on Lewis dot structures. I got most of my code from this question (Draw Lewis structures like a book)... But then I got stuck with BH3...(3rd reaction). I am ...
Francisco Murphy Pérez's user avatar
4 votes
3 answers
189 views

What to do to align text with chemfig molecules?

I'd like the letters to be in the middle of structures. I know that the letters are in the place where the code of each structures begins, but I have no idea how to change it, without changing the ...
Michał Szymankiewicz's user avatar
1 vote
2 answers
53 views

I have a problem with arrows' tips in chemfig

Arrows' tips aren't in the accurate place, they are slightly shifted to the left. Does anyone have an idea how to fix it so that they could be in the middle? \documentclass{article} \...
Michał Szymankiewicz's user avatar
0 votes
1 answer
58 views

Completing the diagram using chemfig

I intend to draw the chemistry of the reaction as depicted below using chemfig. Here is what I have done studying examples: \documentclass{article} \usepackage{graphicx} \usepackage{chemfig} \begin{...
teddiclax's user avatar
0 votes
2 answers
67 views

misplaced group in chemfig with coloured atom and charge

I want to colour only the hydrogen atoms in a cyclic molecule using the Chemfig environment. The atoms are placed over a nitrogen atom, with a positive charge. But when y draw the molecule, the group &...
Juan Michalowski's user avatar
2 votes
1 answer
81 views

Tips when drawing a large molecule using chemfig?

I am trying to draw a large molecule using the chemfig package. In this case I made a figure for cobalamin variants. I somehow managed to write this code spending hours over it, but find that ...
Miloop's user avatar
  • 900
0 votes
1 answer
50 views

Chemfig didn't put the bond in the correct atom

I'm trying to draw a simple molecule (isopropanol) with chemfig, marking the hydrogen atom attached to the oxygen in red. But the bond is missplaced at the midle of the group OH, instead just below ...
Juan Michalowski's user avatar
-3 votes
1 answer
123 views

How can I draw like this picture? [closed]

I can not make code for this picture.
Ghassan Hamad's user avatar
1 vote
1 answer
59 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 ...
jmanner's user avatar
  • 11
4 votes
2 answers
262 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 ...
Juan Michalowski's user avatar
0 votes
2 answers
40 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 \, (...
Henss's user avatar
  • 25
1 vote
1 answer
66 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}...
Delorian's user avatar
2 votes
2 answers
68 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{...
Juan Michalowski's user avatar
1 vote
1 answer
49 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 ...
Juan Michalowski's user avatar
0 votes
2 answers
139 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 ...
larryjb's user avatar
  • 45

1
2 3 4 5
16