Questions tagged [chemfig]
{chemfig} is for questions pertaining to the use of the chemfig package for drawing 2D molecules and reaction schemes.
778
questions
1
vote
1
answer
121
views
How to use chemfig package?
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\chemfig∗6(−[:60](−[::−60]CH_3)−[:−60](−[::−60]CH_3)−[:−60]CH_3)
\end{document}
2
votes
1
answer
85
views
How to control arrowhead size in chemfig?
I read through the docs of chemfig, but it seems like there is no option to control the size of an arrowhead (except you define an arrow from scratch, what I can't do yet). The closest thing I have ...
0
votes
1
answer
59
views
Using two subschemes in a single compound messes up output
In a simple chemical reaction (A + B → C), I'm trying to draw 2 vertical arrows, one exactly below the letter "A" and one exactly below the letter "B". chemfig's documentation ...
1
vote
2
answers
156
views
How can draw the general structure of protein as in attached image?
\documentclass[border=2mm]{standalone}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{H_2N-C(-[2]R)(-[6]H)-C(=[2]O)-OH}
\+
\chemfig{H-N(-[2]H)-C(-[2]\charge{30:-1pt=$\prime$}{R})(-[6]H)-C(...
0
votes
2
answers
47
views
How to implement a multiline split when using chemmacros, chemformula & chemfig with LuaLaTeX
I've explored how to use \begin{split} and \begin{multline} to break the following long equation when using \ch. None have worked. I've assembled a not-so-short (apologies) MWE that will compile as is,...
1
vote
2
answers
57
views
chemfig: placing the starting atom at a coordinate in tikz
I have two molecules with the following code, but I want their first atoms to start at the same location. Any ideas?
\begin{tikzpicture}
\node (first) at (0, 0) {
\chemfig{-=-=}
};
\setchemfig{bond ...
3
votes
1
answer
45
views
Generate \charge arguments with a macro
I'm trying to use a macro to generate arguments that should be passed to \charge. I'm trying this:
\documentclass{minimal}
\usepackage{chemfig}
\begin{document}
\charge{-135:1pt=5}{C}
\...
3
votes
2
answers
132
views
Chemfig problem with bond to charge atom
I doing presentation in beamer (also I need to use LuaLatex, because of font), but I have a problem with one structure. Well I don't know what is wrong here, but a bond between ring and charge ...
0
votes
1
answer
46
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 ...
0
votes
1
answer
47
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 ...
1
vote
1
answer
22
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 ...
2
votes
1
answer
56
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 ...
0
votes
2
answers
36
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{...
0
votes
1
answer
51
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 ...
0
votes
1
answer
37
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}...