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
3
votes
0answers
44 views

I need help with this reaction

I'm writing this reaction: I want to have my molecules correctly spaced horizontally. I put that the arrow points the plus sign so it was centered, but now the molecules get over the text. Apart from ...
0
votes
1answer
39 views

Histidine Chemfig from a Picture

The last one from this picture set. I have this Histidine which I have already done a series of questions. I did what I knew this time: I need help to finish the triangle that is in the histidine. ...
9
votes
2answers
213 views

Aligning molecule names

I'm writing a reaction but the names of the D-Glucose and D-Mannose are not aligned with the name of the D-Fructose. Here's what I have. I tried to use \chemnameinit{} but it simply didn't work :( ...
0
votes
0answers
33 views

Tyrosine Chemfig Help

I am trying to draw this tyrosine and I have this diagram I tried the following code and it did not work as expected. \documentclass[grid,avery5371]{flashcards} \usepackage[utf8]{inputenc} \...
4
votes
3answers
56 views

\input{} inside \chemfig{}

I'm likely ignoring something fundamental here and was hoping for some hints. Please see the inset mwe. Towards having a library of chemfig symbols, I see value in being able to point to a ...
2
votes
1answer
82 views

Help in drawing Proline Chemfig

I have tried to do Proline with this attempt, however, I don't know how to consolidate this bond to CH_2 at the bottom. \documentclass[grid,avery5371]{flashcards} \usepackage[utf8]{inputenc} \...
3
votes
1answer
52 views

Getting \setbondstyle undefined error with mol2chemfig

I have observed a Command \setbondstyle undefined error while using the mol2chemfig package with the following mwe: \documentclass[preview,border=7pt,active,tightpage]{standalone} \usepackage{...
2
votes
1answer
118 views

Trying to to Draw Trytophan Using chemfig

Hello I am trying to draw as I stated tryptophan in a chemfig I tried this code but it does look like it any tips on how I can do it? I have been reading this document for help. MWE \documentclass[...
1
vote
1answer
34 views

Labelling the branches in branching chemical equations using chemfig

The picture below shows what I intend to achieve: The tex script that I wrote: \usepackage{chemfig} . . . \schemestart[0,1.25] \chemfig{*6(-=-=(-CH\textsubscript3)-=)}\arrow{->[Alk. $KMnO_4$][$...
2
votes
2answers
31 views

Chemfig Increasing the length of a vertical bond in a branched alkane

Currently I am having an issue due to intersection between substituent species off of a branched alkane that I want to make in a 'complete structure' form. I figured increasing the vertical bond ...
2
votes
1answer
40 views

chemical reaction, arrow misplaced

I am new on latex and on chemfig. Here are the molecules that I would like to draw. My problem is that I can't put the arrow where I would like it to be. I have tried with the anchors but apparently ...
3
votes
1answer
73 views

Help with chemistry equation

I'm trying to reproduce the following equation using the chemfig package : I've been at this for a few hours, trying out different approaches but as soon as one thing works, something else seems to ...
0
votes
0answers
28 views

My file chemfil short out

I would like my file not to leave the sheet, not to be cut, but I can't do it \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[francais]{babel} \usepackage[T1]{fontenc} \...
3
votes
1answer
69 views

Chemical reaction

Good morning, everyone, I am a Bachelor of Science in Physics student, and I would like to be able to reproduce the routing of this example here on Latex, not necessarily draw the molecules, I learn ...
3
votes
0answers
25 views

Using chemfig, how to make individual bonds longer or no longer visible

I am currently trying to draw the structure of a complex for a project \documentclass[12pt]{report} \usepackage[margin=1in]{geometry} \usepackage{chemfig} \begin{document} \chemfig{ La(-[:0](**5(...
6
votes
2answers
141 views

Curved double arrow in tikz?

High all, this is related to a previous question I asked (see here). I would like to make the double arrow between the alcohol and the amine curved (annotated with blue nodes above and below the arrow)...
3
votes
1answer
96 views

Drawing a Chemical Reactions Flow Chart

I know I should probably separate the questions into multiple stems but I don't want to spam. I am attempting to recreate this diagram but there are a few parts I am unsure of: Here is my code for ...
4
votes
2answers
42 views

Chemfig: Bond line partly passing through atoms when shrinking

How can I fix the bond to the top OCH3 group to not pass partly through the O? \documentclass[12pt, norsk, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[norsk]{babel} \usepackage{fullpage}...
5
votes
1answer
62 views

How to create cram bonds with anchors

I want to recreate the chemical structure of 1,8-cineol in chemfig. On Wikipedia it's shown like this: The best I can come up with is this code, with an anchor for the oxygen atom: \documentclass[...
0
votes
0answers
34 views

How to install and use chemfig latex package on ec2 server?

I want to use some extra latex package like chemfig for converting chemical latex equation into PNG image. Thanks in advance
4
votes
1answer
119 views

How to draw organometallic compounds?

I'm trying to draw this molecule using the chemfig package but honestly don't know where or how to start. Please help. Thank you. \documentclass{article} \usepackage{chemfig} \setcrambond{3pt}{}{} \...
2
votes
2answers
240 views

Horizontal and vertical alignment of chemfig structures

I'd like to align these four chemfig structures, seen below, horizontally and vertically. (The centers of the rectangles are vertices of a new rectangle. I would prefer an automatic solution.) \...
2
votes
1answer
49 views

Retrosynthetic double arrow in chemfig

How to draw a double arrow in chemfig scheme:
0
votes
0answers
38 views

How To Draw a Monomer on Latex [duplicate]

I'm new to drawing chemical figures in LaTeX, so I can't really show my "attempt" Could somebody show how to draw the monomer for starch in LaTeX? It should look something like this by the time I'm ...
2
votes
1answer
83 views

chemfig: Error when using fine adjustment of bond

I'm having some problems when using fine adjustment of bond #(<dim1>,<dim2>) inside a definesubmol code. The output is correct, but return a error message: line 7: Illegal parameter ...
5
votes
1answer
82 views

Is there a simple/elegant way to color atom groups in chemfig?

I have a lot of molecules to draw. For teaching purposes I need to color certain atoms or group of atoms. Due to alignment of the main chain, I'm using a | symbol after each atom on group, combined ...
3
votes
2answers
83 views

Change font chemfig on LaTeX

Is it possible to change the font that chemfig uses (for example to Helvetica) without using XeLaTeX or LuaTeX, but keep the normal math font throughout the document? I tried \usepackage[helvet]{...
3
votes
1answer
103 views

Error when rendering svg

I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error: ! Undefined control sequence. \pgfsys@svg@newline ->\Hnewline when running the command make4ht -u "...
1
vote
1answer
78 views

LaTex ChemFig how to put parentheses around polymer?

\documentclass[12pt]{article} \usepackage[a4paper, margin=2.5cm]{geometry} \usepackage{chemfig} \begin{document} \begin{center} { \chemname {\chemfig{HO-[:30]-[:-30]-[:30]OH}} {Diol}\\ \bigskip \...
3
votes
1answer
45 views

How to vertically align (center) components in a chemical reaction?

is there a way to somehow align the components [-M-] and the arrow so that everything is vertically centered? Thank you in advance! \documentclass{article} \usepackage{chemfig} \begin{document} \...
3
votes
1answer
28 views

How to vertically align letter before brackets in chemfig?

how can I vertically center this little letter n before the left bracket? I want it to be not at top but instead at middle. Thanks in advance. \documentclass{article} \usepackage{chemfig} \begin{...
0
votes
0answers
35 views
4
votes
2answers
82 views

Chemistry Lewis Dot Diagram: Moving Square Bracket

\documentclass{article} \usepackage{chemfig} \begin{document} \schemestart \chemfig{\lewis{2.4.6.,C}-\lewis{2.6.0.,N}} \arrow \chemleft[ \chemfig{\lewis{4:,C}~\lewis{0:,N}}\chemright ] ...
4
votes
1answer
79 views

Color changes of orbitals in chemmacros

I'm trying to change the colors of these orbitals. So instead of the clear and blue color, I want them to be red and blue only. I tried changing the setup color, but just becomes red and clear or blue ...
1
vote
1answer
40 views

Moving labels for chemfigs

How do I modify or adjust the vertical and horizontal alignment of the labels? If I add spaces before or after the desired label, I can make a horizontal adjustment. But, I can't figure out the ...
3
votes
1answer
65 views

Chemfig arrow has a gap

I got the following problem. When I draw a <-> arrow with chemfig it has a gap in the middle. The funny thing is the gap is only if my arrow goes from right to left. Vertical arrows are drawn ...
2
votes
1answer
98 views

chemfig: double harpoon + curved arrow in reaction + rate constants

I've been trying to draw the following reaction scheme using chemfig: Following the response given here: chemfig: double harpoon + arched in/out arrow in reaction, I've managed to draw the following ...
0
votes
1answer
71 views

Using the \chemfig package to draw inorganic compounds

I'm trying to draw a similar molecule as the picture below using the \chemfig package, but don't really know where to start. How would I do it?
1
vote
1answer
157 views

How to write organic chemical equation of the following form

I need to write this transesterification reaction and give it an equation number. How can I do so?
3
votes
1answer
71 views

ps2pdf error with \arrow in chemfig package [duplicate]

The conversion of dvi to pdf fails when using the \arrow command. For instance, the file \documentclass{article} \usepackage{chemfig} \begin{document} \schemestart A\arrow B \schemestop \end{...
4
votes
1answer
71 views

How to align rings after rotating

Rings are aligned with each other using LaTeX chemfig package at their C-1 positions (southwest corners). Rotating one of the rings will cause a misalignment although both rings are still aligned at ...
3
votes
1answer
91 views

Aligning multiple subfigures in figure

I'm using the chemfig package for some structural diagrams I'm preparing for a lab report, and I need to align five structural diagrams (with their own name captions) in a 2x3 column-and-row format. ...
4
votes
1answer
237 views

Chemfig: a 3d molecule

I want to draw the molecule attached with chemfig. Could not find anything for the core of the connections. Any idea?
5
votes
1answer
99 views

Fail to pass arguments to orbital module of chemmacros when used inside chemfig

While illustrating atomic orbitals for 1,3-butadiene guided by examples in chemmacros' manual, I receive the following error: Argument of \orbital has an extra }. } MWE: \documentclass{article} \...
0
votes
0answers
44 views

Chemfig doesn't show bonds at all [duplicate]

I tried using chemfig but I've run into a problem. For example I tried drawing a methane molecule with this code: \documentclass[a4paper]{article} \usepackage[czech]{babel} % czech \usepackage[...
1
vote
0answers
72 views

Weird chemfig 1.33 behaviour with polymerdelim

I observed a very weird behaviour regarding chemfig and the polymer delimiters. I have created a minimal working example: main.tex: \documentclass[12pt,a4paper,ngerman]{article} \include{preamble} %\...
1
vote
1answer
105 views

ChemFig: Numbering each step in (defined) scheme environment

Before asking my question I have several related issues concerning chemfig and chemmacros packages. While defining a new scheme environment (link) for chemfig, I keep having Errors if I have ...
4
votes
1answer
170 views

Incorrect positioning when using tikz overlay and remember picture

When I use chemfig in conjuction when \tikz[overlay,remember picture] the positioning does go in the correct position. I am using XeLaTeX and the yLaTeX class (see this link: https://github.com/...
1
vote
2answers
47 views

Arrival atom numbering doesn't work with \chemabove

Consider the following MWE: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{ X -[:30,,,2]^{18}\chemabove{O}{H} -[:-30]X } \end{document} This code returns an ...
2
votes
1answer
153 views

Chemfig MakeBraces error

I want to make polymer structures with chemfig like this: \documentclass{article} \usepackage{chemfig} \begin{document} \newcommand\setpolymerdelim[2]{\def\delimleft{#1}\def\delimright{#2}} \def\...