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
2
votes
1answer
28 views

newenvironment and chemfig

Since can't set a label to a chemical reaction with chemfig package, the only solution is put the scheme between \begin{equation} and \end{equation} \begin{equation} \schemestart 2 \ce{H_{2}O} \arrow{&...
1
vote
1answer
17 views

chemfig: chemical reaction label

Can I set a label for a chemical reaction with chemfig, just like I can do with equation? My MWE \documentclass[12pt]{article} \usepackage{chemfig} \usepackage[version=3]{mhchem} \begin{document} ...
1
vote
1answer
27 views

Attach atom to center of ring in chemfig [duplicate]

Sometimes chemists want to signify that something is attached to a C-ring without specifying the exact position to which it is bound, for example because it's random. Instead they to something like (...
3
votes
1answer
69 views

Create Coloured Electron Pairs in chemfig

I'm trying to create coloured electron pairs similiar to the picture below. However, when I try to recreate this example, I get black dots surrounded by red for the electron pairs. \documentclass[...
1
vote
1answer
31 views

How to draw a 'detached' ion with chemfig

What is the best way to have a 'detached but attracted' ion in chemfig? So I have a large molecule with a positive charge and want to position a negatively charged ion close by it. According to my ...
0
votes
0answers
20 views

Undefined control sequence \mcfbelow when using chemfig in LaTeX

I came across an error when trying to incorporate a simple chemfig diagram in a document. Here is a minimal working example (the code for the diagram was generated using mol2chemfig): \documentclass{...
0
votes
1answer
35 views

chemfig: bonds shifting downward after subscripts

I am trying to use chemfig package, and some bonds seem to slip lower. I want all bonds to be the same height (of course?). There is a similar issue posted 2 years ago, and I have included the ...
0
votes
1answer
57 views

Unable to use chemfig with pdflatex

I wanted to use the chemfig package and installed it using tllocalmgr in arch Linux. However when I tried to use pdflatex on a tex file like this one, \documentclass{article} \usepackage[utf8]{...
2
votes
1answer
51 views

Chemfig: set points at ends of bonds

I'm trying to represent the electrons in the bonds between atoms by drawing points at the end of each bond segment. Something like this: Is there any way I can do this? I can get something similar ...
2
votes
1answer
49 views

Control of \chemfig positioning within tabular

Implementation below seeks to center \chemfig objects horizontally within a center-aligned column of a tabular environment. Getting unexpected results. Please see commenting around the \begin{...
0
votes
1answer
51 views

This organic chemistry .tex file used to compile. Using the current release of TeXliv2 2020 this fails at line 75. I can't see the error

\documentclass[12pt]{book} \usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry} \usepackage{amsmath} \usepackage{array} \usepackage{amssymb} \usepackage{amsthm} \usepackage{booktabs} \...
0
votes
0answers
37 views

old versions mhchem chemfig

Could someone help to advise how to install older versions of mhchem and chemfig? I just want to go back to the old system that worked. No upgrade please. The latest version create error code: ...
1
vote
1answer
18 views

Chemfig: bond alignment in sigma complexes

I want to make a sigma complex with chemfig, but the alkene is anchored to the south-west corner, and not the center. How can I fix this? MWE \documentclass{article} \usepackage{chemfig} \...
1
vote
1answer
25 views

Trouble on positioning electron movement arrows using chemfig

I have trouble on positioning the red arrow using chemfig version 1.52. The code return an error: line 8: Package pgf Error: No shape named `db2' is known. ...rols +(+180:5mm) and +(+210:5mm) .. (...
2
votes
1answer
64 views

Parenthesis inside chemfig environment

How to display "(" or ")" inside chemfig environment. For example I what to write following chemical formula: My try, I used \text{(} and \text{)} to get "(" and ")" inside the chemfig environment. ...
1
vote
1answer
55 views

Alignment of the bond

I'm trying to draw the Lewis structure of hydrocloric acid, including the partial charge and dipole moment. Unfortunately, the bond is not aligned "in the middle". Is there a way to "move" the bond? ...
0
votes
0answers
38 views

Chemfig example from documentation doesn't compile

I'm taking a chemfig example about the \charge macro and trying to copy, paste, and compile to get some practice with it. I get a Undefined control sequence error with a recently updated full TeX Live ...
2
votes
1answer
49 views

Hidden or background segment using chemfig package

In relation to this question How to create cram bonds with anchors, I wanted to put the segment in the background and the black triangle hiding it in the foreground. How is this possible with chemfig?...
0
votes
0answers
20 views

Set distance between anchors and arrows in chemfig?

I have the following problem: In some of my reaction schemes, the distance between the outer boundaries of molecules and the reaction arrows is way too small, making the scheme look very crowded. ...
-1
votes
1answer
61 views

Spiros in Chemfig

Hello I need help: How to draw a spiro compound? Thanks for help me.
2
votes
1answer
42 views

Long Chemfig reaction scheme in two lines above each other

The reaction scheme shown below is to long to fit in one line. I would like to place the two left compounds atop one another, so the + is in the middle between them, vertically centered with the arrow....
0
votes
1answer
44 views

two forms of chiral molecule

I need to draw a chiral molecule with CHEMFIG in two forms, one with the branches to the left and the other with the branches to the right. the shape with the branches to the right is easy, but with ...
2
votes
1answer
49 views

Correcting rotated molecule

I use chemfig to draw cyclic molecules. Quite often, it is desirable to reorient the molecule for which I use the optional directive [rotate=-18]. Sometimes this is barely acceptable but most often ...
11
votes
1answer
501 views

Drawing a 3D molecule in TikZ

I'm trying to make a methane molecule in tikz-3d. All that's left is to make the "chemically correct" wedges and dashes. I tried with chemfig, but that only allows for a 2D molecule that pretends to ...
0
votes
0answers
51 views

Lewis in chemformula

I want to create a picture representig a chloroethane molecule having all lone pairs on chlorine, also if possible, to create an arrow which transfers C-Cl bonding pair only on chlorine. Code done ...
2
votes
1answer
31 views

How to specify atom link on chemfig

So I am trying to draw the following reaction with chemfig, but for the triglyceride part, I can't get the H's to the left of the C. It just switches to bonding with the H. Please and thank you. \...
1
vote
1answer
36 views

Adding underbrace to certain parts of chemfig

So I am trying to create something like this with an underbrace. How should I do it? Also, how should the charge part be done as well? Please and thank you. \documentclass[tikz,border=3mm]{article} \...
0
votes
0answers
49 views

“pgfkeys package error ” using chemfig

Good evening. I am trying to use the latest version of Chemfig (I've been using Chemfig for years without any problem). I want to draw an electron pair or an electron vacancy in the new macro "charge"...
0
votes
1answer
41 views

How to adjust horizontal arrow length of a defined multi-directional arrow {-X>}?

So I'm using this piece of code I found for having arrows going off in different directions as part of some reaction schemes I'm putting together. I have been able to adjust the internal font sizes of ...
1
vote
1answer
36 views

Modifying chemmacros arrow labels

How can I recreate the following image? I tried using the chemmacros package, but it doesn't seem to work all the way. Please let me know. \documentclass[tikz,border=3mm]{article} \usepackage{tikz} \...
0
votes
0answers
28 views

Change the Font of a Chemical Structure from an .eps file in TexWorks

I am currently using TexWorks to write my lab report and I am using an .eps file to show a chemical structure. Below is the code in my report. \documentclass{article} \usepackage[utf8]{inputenc} \...
1
vote
1answer
74 views

Chemfig ans ACS style [closed]

Hellos, someone can help me? I need draw with chemfig but I need ACS style, I found this: \usepackage{chemmacros} \usepackage{chemfig} \setatomsep{14.4pt} \setdoublesep{2.6pt} \setbondstyle{line ...
1
vote
1answer
43 views

Chemfig newcommand for Lewis structures

So I'm trying to create my own style package for drawing simple lewis structures. I want to do a \newcommand type of thing that has the option for me to not only put in the atoms, but also an option ...
0
votes
1answer
52 views

Moving lone pairs horizontally or vertically

I'm trying to draw a Lewis structure with a lone pair, but when I typeset, the lone pair is not centered. How do I freely move it slightly up or move it horizontally? Please let me know. \...
1
vote
1answer
36 views

Scaling and \chemfiginput

Given the following mwe (kindly provided by a contributor in this post), how would one go about implementing scaling functionality to control the size of the chemfig object? Passing the option ...
3
votes
3answers
191 views

Trying to draw benzene triozonide using chemfig

I am new to latex. I was trying to draw benzene triozonide using chemfig but can't figure out how to do so. I tried \chemfig{*6(CH-(-[5]O-[7]O-)(-[7]O-)CH-CH(-[0]O-[2]O-)(-O-)CH-CH(-[3]O-[5]O-)(-O-)CH-...
2
votes
1answer
47 views

vertical alignment in chemfig reaction scheme

The vertical alignment for my reaction scheme is all over the place. The horizontal bonds should be in one line The OH-group's bond is further away from the C-atom then the O There's a gap between ...
0
votes
1answer
68 views

Chemfig: fixed bond length and vertical alignment

I have two reaction schemes and one is a skeletal representation. I want all of my bonds to be a certain length, so I set the option fixed length = true and atom sep=1.5em. This gives me the above ...
1
vote
1answer
46 views

Arrows problems in complex mechanism in chemfig

I'm using overleaf as my latex editor and I have a problem with the arrows in my reaction mechanism, the blue ones are how they should be, but they stay in the first molecule (red arrows) \tikzset{...
2
votes
1answer
130 views

Lewis structure and chemfig

I would like to use chemfig to draw something like this: \documentclass{article} \usepackage{chemfig} \begin{document} \setchemfig{lewis sep=24pt} \chemfig{@{x1}\lewis{2:,Sn}(-[:-150]Cl)-[...
3
votes
2answers
96 views

How to draw a molecule using chemfig without attaching ring substituents to a specific position?

I'm trying to draw a molecule using chemfig in a way which is shown in the following picture: The side-rings are not supposed to be attached to a specific atom, to clarify that this substance is ...
0
votes
0answers
96 views

Package pgfkeys Error: I do not know the key '/tikz/cram width'

I'm trying to draw the D-glucopyranose using the chemfig package, so I copied the piece of code from chemfig manual: \chemfig[cram width=2pt]{HO-[2,0.5,2]?<[7,0.7](-[2,0.5]OH)-[,,,,line width=2pt](...
2
votes
1answer
83 views

Drawing tribloc polymer structure with chemfig

I need to draw a generic tri bloc copolymer such as presented in this MWE and figure. The problem I have is with the left and right sides of the molecule. I want them to end with "(" and ")" only and ...
3
votes
0answers
143 views

Chemfig schemes and tikz external

Is there any way to externalise a chemfigscheme with tikz? At the moment a good fix to externalise simple chemfig pictures is to place them inside a \begin{tikzpicture}...\end{tikzpicture}...
8
votes
2answers
262 views

Resonance structure of acetate

I need to draw a scheme to show the stabilization of the acetate ion by resonance and I'm going crazy :-( I started using chemfig not so long ago and it seems that I need a lot more practice! In the ...
1
vote
1answer
81 views

Chemfig illustration in a tabular environment appears out of the box

I need to prepare a sum-up for my student. But when I mix chemfig with tabular environment, the Lewis structures are out of the box. How can I fix that? \documentclass[12pt]{article} % Type d'écrit \...
6
votes
1answer
124 views

New command with three optional arguments for chemfig

This works fine. \documentclass{article} \usepackage{chemfig} \usetikzlibrary{decorations, decorations.markings, positioning} \begin{document} \chemfig{ H-[,,,,draw=none, postaction={...
3
votes
1answer
101 views

Incorrectly determined boundaries of a chemfig structure with arrow in outer area

It appears as if the TikZ arrow(s) set in \chemmove{…} environment are not taken into consideration when the boundary box for the chemfig structure, e.g. for an arrow pushing mechanism, is determined. ...
1
vote
1answer
97 views

More chemfig figures with fishhook arrows

I asked a similar question yesterday, but i havn't quite learned how to make these molecules yet. Therefore i'll see if there is a kind soul in here again today, who wants to help me with this one, ...
4
votes
1answer
164 views

Chemfig drawing with arrows and Lewis dots

If I wanted to draw something like this with the chemfig package, how would I do that? I'm especially wondering how to draw the arrows in the most simple and beautiful way possible. Update: With ...

1
2 3 4 5
11