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
1answer
87 views

A complex picture with lots of curved arrows

I have a figure that I need to add to my working. But I don't understand how to make or start. Can anyone please help?
1
vote
1answer
134 views

Difficulty in making the big square braces with n at bottom right end

I have made the code for following using \chemfig. But I am having issue making the final [D] at the end of the equation. Can anyone please help me how to define this and the final output. I have ...
0
votes
1answer
132 views

Want to make the following forked arrows using mhchem and chemfig and arrow

I have a figure which i want to do using mhchem and chemfig package. Is it possible to make forked arrows using mhchem/chemfig? Please help. I do not have any MWE created for this sort of figure. \...
-1
votes
1answer
60 views

\chemfig{} pentagon is tilted slightly, need the bottom of pentagon to be flat

When I try and write the following command \chemfig{*5(-----)} It gives me a slightly tilted pentagon. I need one whose base line is parallel to my line of page. Like the one shown below.
4
votes
1answer
259 views

Positioning of Polymerbraces with \chemfig

I want to create a polymer like this. Here is what I got so far. \documentclass{article} \usepackage{chemfig} \usepackage{mhchem} \makeatletter \newcommand*\setpolymerdelim[2]{\def\polymer@...
2
votes
1answer
386 views

How do I generate a bold chemical formula with chemfig?

I've been doing T-shirt designs using LaTeX, converting PDF to PNG with GIMP, and have run into some issues. How do I change the following so the formulae will be darker? \documentclass{article} \...
0
votes
1answer
315 views

Chemfig: \chemmove proper anchor

How can I do so that the arrow drawn through the \chemmmove command does not overlay with the C-R''' bond? \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[...
2
votes
1answer
98 views

chemfig: Addition with \chemabove is not counted as part of the picture

Additions with \chemabove or \chembelow seem to be not considered part of the picture. \documentclass[margin=1mm]{standalone} \usepackage{chemfig} \begin{document} \chemfig{HO-[:30]**6(---(-\...
3
votes
1answer
441 views

Chemfig: \chemname and vertical align

Until I use the \chemname command for molecular descriptions, I can vertically align them. But when I use it, happens this: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}...
2
votes
1answer
375 views

Chemfig: scheme vertical align

How can I vertical align this scheme to the same bottom line? \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[ a4paper, margin=...
2
votes
1answer
258 views

Chemfig: \color doesn't work

Why \colordoesn't work? I need to color the -OH oxydrilic function: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[ a4paper, ...
2
votes
1answer
127 views

How to draw a dative bond between two distant atoms with the `?` hook?

\documentclass{article} \usepackage[left=3.17cm,right=3.17cm,top=2.54cm,bottom=2.54cm,includeheadfoot]{geometry}% normal page sutep \usepackage[rgb,svgnames,dvipsnames]{xcolor} \usepackage[utf8]{...
2
votes
1answer
344 views

Using tikz-cd to draw a complex reaction network

I am trying to draw the following schematic (generated using ChemDraw) using tikzcd. Here's is what I have so far. I don't understand how the positioning of labels above and below the arrows ...
1
vote
1answer
62 views

More row space for chemfig in longtable

i want to include an overview of several molecules and their names in my thesis. I need a long table as there are qute a few of them. Problem is that the Tikz drawn by chemfig allign and there is no ...
1
vote
1answer
133 views

Upside-down -U> arrow in chemfig

I'd like to draw something like this: The most versatile solution would be something analogous to the -X> type arrow defined in "Easy way to write below arrow (\arrow{-U>}) in chemfig?", which ...
2
votes
1answer
848 views

Chemical bonds and atom position with chemfig

I have been working in the cylindrospermopsin structure using chemfig. The structure is: I draw it with te following code: \documentclass[12pt, border={10pt 10pt 10pt 10pt}]{standalone} \pagestyle{...
1
vote
1answer
178 views

Connect atoms with chemfig in nested rings [duplicate]

I'm trying to draw a cylindrospermopsin molecule using chemfig. There's my code \documentclass[12pt]{standalone} \pagestyle{empty} \usepackage{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{...
2
votes
1answer
307 views

Position label of curved arrow in chemfig?

I'm trying to create the following image in LaTeX: However, I'm having trouble positioning the label on the second curved arrow. Below is what I have been able to generate. If you'll notice that the ...
1
vote
1answer
57 views

Chemfig breaks tabular

I tried using \chemfig in a tabular. The document compiles if the tabular has one line, but not two. It also compiles if I remove the opening brackets. The error produced is Missing number, treated ...
2
votes
1answer
100 views

Chemfig: align all letters (atoms) on a line

How to align all letters (atoms) on one line in the following example \documentclass{standalone} \usepackage{chemfig} \begin{document} \chemfig{\lewis{35,O}=C=\lewis{2,N}-[,1.5]{{(CH_2)}_2}-[,1.5]...
1
vote
1answer
139 views

Using acro and mhchem inside of chemfig

After a blog post by Joseph Wright, I wanted to use mhchem in chemfig. All went well, until I decided to include acronyms by the acro package. With the following MWE, the acronym is defined as used, ...
2
votes
1answer
154 views

Chemfig misaligned in subfigure environment

I don't know how to align the both following molecules, written with chemfig, correctly. Both structures are aligned with the [t] option following \begin{subfigure}. The second structure is misaligned ...
3
votes
1answer
122 views

Conflict in chemfig between cap=round and cram bonds

I'm having an issue with chemfig: in order to have better looking bonds joints I enabled the cap=round option, following a post published on this website. Everything is great until I start using ...
8
votes
4answers
708 views

Connect a 5-Ring to two 6-Rings in chemfig

\chemfig{*6(-(*5(---))-(*6(------))----)} gives me that: How do I connect it like this? EDIT: Thanks to all suggestions I came up with this: \documentclass{article} usepackage{chemfig} \begin{...
3
votes
2answers
326 views

How to add a vertical space in the text above/under the arrow in the chemfig package [duplicate]

I'm trying to add a vertical space between H$_{2}$O$_{2}$ 30\% and \SI{25}{\degreeCelsius}, \SI{30}{\minute}, but I can't. Do you have any idea how to do it? \documentclass[letter,10pt]{article} \...
3
votes
1answer
513 views

How to align text, structures, and arrows in chemfig package

Any idea how to align the names of structures to the same height. The arrow and the plus signs, and the chemical structures, too. I tried to align them with \chemnameinit, but does not work. \begin{...
8
votes
1answer
1k views

TeXstudio chemfig commands marked as unrecognized

I included the chemfig package to draw chemical stuff in LaTex. But the commands aren't recognized by TeXstudio. I even added the package to the autocompletion list in the settings to get recognized ...
0
votes
1answer
73 views

Chemfig: put + between two formulas

I want to draw a simple structural chemical formula with the chemfig package in Latex. It schould look like the output of the code below, but i don't think that this is the right way to write it ...
3
votes
2answers
407 views

position between molecules in chemfig

I am trying to illustrate the hydrogen bonding between two nucleotides. However, chemfig is positioning one below the other. How can I place them adjacent horizontally? \documentclass[11pt,...
4
votes
1answer
288 views

Get depth from a generated PNG with chemfig package

I generate PNG images from latex code to display in web/mobile applications. The general flow is: Client makes an API call with the formula I should render I wrap the formula in a preamble and run ...
1
vote
1answer
158 views

Vertical alignment in tables containing chemfig figures

So I'm making a table with chemfig figures in a particular row. I want these figures to be centered vertically. I tried the answers in this answer, which seemed to work fine. However, I wanted some ...
1
vote
1answer
156 views

How to use different arrow tips and typs in \definearrow in chemfig

Users @runiq and @clemens showed in Easy way to write below arrow (\arrow{-U>}) in chemfig? how to define a new arrowtype in chemfig using \definearrow which works great. I am not a tikz expert, ...
2
votes
2answers
94 views

Chemfig names not correctly aligned vertically underneath equation

I would like to name the molecules in the following equation: but they don't seem to correctly align vertically, even though I hope that I have studied the chemfig documentation thoroughly enough ...
1
vote
2answers
175 views

Chemfig bond not starting at correct position of 13C-labeled atom

I am trying to draw the following reaction but as you can see, the single bond does not start at the lower right corner of the carbon-13-labeled atom (^{13}C) but instead somewhere below that atom. ...
4
votes
1answer
362 views

Align molecules above each other in chemfig and change label size

I am using chemfig to draw a reaction that splits into two and then goes to one final molecules. I have managed to use nodes to get the arrows to go from the second molecule and split into the two ...
0
votes
1answer
61 views

Need help making Structure in chemfig

May someone help me with that one: I don't got it myself. Thanks Greetings KillTrot
-1
votes
1answer
102 views

chemfig radical inside of aromatic structure

I'm trying to get a delocalized radical inside an aromatic structure. Example: \chemfig{**6(------)} should be made to:
1
vote
1answer
265 views

tikzpicture & chemfig, create line above of Double bond

I'm trying to combine tikzpicture and chemfig, but I don't understand how to do this: As you can see, it's not what it should be by the following code: \begin{tikzpicture} \draw [line width=0.25mm,...
7
votes
1answer
211 views

Electron movement arrow and an extra pair of electrons

How can I show that one, then another pair of electrons is moving from N to C in HCN? This is what I tried, and my "hacky way" of creating the extra pair between :C: and :N: worked for the last ...
1
vote
3answers
300 views

Is there a way to circle charges in chemfig?

Id like to have a little circle around my minuses in my chemfig: \chemname{\schemestart \chemfig[][scale=.7]{*6(-=-=(-OH)-=)} \arrow{->[H$^+$]} \chemleft[\subscheme{ \chemfig[][scale=.6]{*6(-=-=(-...
1
vote
1answer
746 views

Working with chemfig (and Benzene)

I'm writing a paper about benzene derivatives, and I'd love to add them into my document using chemfig. Can anyone either explain how I can create these or give me the code for the cementations below?...
3
votes
2answers
293 views

How can I remove the space around chemfig figures?

I want to create mesomeric formulas for Benzol, but for some reason, there is a lot of space around the benzol rings in the output... How can I fix this? $ \left[ \chemfig[][scale=.7]{-[:-30]=^[:30]-[...
2
votes
2answers
304 views

Is it normal that the left bond is sloped, and can it be made vertical?

When I tried to show the C and H atoms in the ring of cyclohexane, the left bond became sloped. \documentclass{standalone} \usepackage[version=3]{mhchem} \usepackage{chemfig} \begin{document} \...
1
vote
1answer
198 views

How can I spread the dots around Iodine atome further apart in a Lewis diagram?

When I place the dots around a Iodine atom, they are too close together. I tried to place some blank spaces around I to no avail: \documentclass{report} \usepackage{mhchem} \usepackage{chemfig} \...
3
votes
1answer
286 views

Step by step drawing of Lewis diagram - how can I hide the bonds?

For a chemistry assignment I need to produce a few Lewis diagrams. It was very simple with a linear molecule where I replaced the bond lines with \quad, but then I had to draw a 3D molecule and when I ...
4
votes
1answer
227 views

How to draw a Corrin-ring with chemfig?

From modification of the porphyrine example i got to: \documentclass[]{article} \usepackage{chemfig} \begin{document} \chemfig{ a-?[a]=[::+63]*5( -N?[b]=( -(-[::63]d)=[::-54]*5( -N?[...
6
votes
2answers
368 views

How to set superscript for expandable parentheses?

The following code compiled with error: \documentclass{report} \usepackage{chemfig} \begin{document} \schemestart \chemfig{R-C(=[:60]O)-[:-60]O-H} \arrow{<=>} \chemleft[\chemfig{...
5
votes
1answer
372 views

Chemical Structures

I have trouble in entering the following chemical reaction in LaTeX. I will be very grateful for every help.
1
vote
1answer
294 views

Horizontal alignment of chemfig structures

I'd like to align these two chemfig structures, seen below, horizontally but I cannot get my head around how. \documentclass{article} \usepackage{chemfig} \begin{document} \begingroup \centering \...
5
votes
2answers
200 views

How to create molecule bondings movement using chemfig and animate package

I wanted to have a simple way of showing moving atoms within a molecule structure. I was inspired by this website: http://chem.libretexts.org. Here's one example of how to create that. Others may add ...