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
1
vote
1answer
34 views

Problems with chemical molecules in subfigures

I am trying to arrange a subfigure like 1 big on the left, one in the upper right and 4 left below. The figures are framed with a custom tcolorbox. All of my subfigures worked so far but for some ...
1
vote
1answer
52 views

How to offset one end of a bond in Chemfig

I'm trying to draw hydrogen bonding between two molecules, however, the dotted line is intersecting with the charges on the oxygen. I was wondering if there was a way to offset the hydrogen bond while ...
0
votes
0answers
42 views

Write chemical equation with square arrow?

I asked this question previously but when I used \polyglossia package code does not give me the same result, If any one can help. \documentclass{article} \usepackage{chemfig} \usepackage{fontspec} \...
4
votes
3answers
159 views

Adjust chemical names to the width of the text

I have several little questions: How do I get the names of the chemical compounds to adapt to the width of the text? The problem occurs with propyl 4-hydroxybenzoate. Is the code okay, or could ...
3
votes
1answer
78 views

Why does using tabular inside of chemfig's chemname alter the vertical position of the text?

chemfig offers the \chemname command that allows us to add an annotation (name, number,...) to a chemical compound. To save space and avoid repetition when dealing with similar compounds, "R&...
3
votes
2answers
106 views

Names of chemistry compounds are too long and overlap

How do I ensure that the structural formulas are adapted to the width of the text and that the names of the compounds do not overlap? The only thing I could still imagine would be to split the ...
2
votes
1answer
59 views

How to draw bonds between departure and arrival atoms correctly in chemfig?

I tried to draw hydantoin's structure with the code like this: \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{chemfig} \def\Hv@scale{0.65} \makeatother \DeclareMathAlphabet{\foo}{OT1}{...
1
vote
4answers
156 views

How can I write this chemical equation?

How can I write this chemical equation, especially the arrows? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{chemfig} \begin{document} \schemestart \chemfig{CH_3CH_2CH_2CH_2-OH} ...
2
votes
3answers
222 views

I am using the chemfig package, but for a formula it doesn’t not draw the last oxygen atom

Consider: \schemestart \chemname{\chemfig{*6(-N(-CH_3)-(=O)-N(-CH_3)-(=O)-(-N(=[:90]O)(=[:210]O))=)}}{1,3-dimethyl-5-nitrouracil} \arrow{->[\ce{Fe}, \ce{HCl}]} \chemname{\chemfig{*6(-N(-CH_3)-=...
2
votes
0answers
55 views

Unexpected output when using chemfig package in Latex

I'd like to write a reaction mechanics in Latex, but the output differs from what I expected. \documentclass{jlreq} \usepackage[dvipdfmx]{graphicx} \usepackage{chemfig} \usetikzlibrary{calc} \begin{...
1
vote
0answers
35 views

Approximate bounding box for chemfig figure

If I wanted LaTeX to automatically make an approximate bounding box for, say, the following figure, could I use some built-in feature of the chemfig package? Or would I need to code this up in plain ...
1
vote
0answers
55 views

How to write in modern chemfig to draw DNA?

I have found on https://plantgenerations.wordpress.com/tag/latex/ an article with nice DNA picture with the code as follows: \documentclass[11pt]{standalone} \usepackage{chemfig,xstring} %Draw ...
2
votes
2answers
109 views

Make custom plus arrow

I need a plus sign arrow between both second row compounds and third row. But the way my code is written I will need a custom arrow{+} style which I can't make. I read the documentation and even the ...
1
vote
1answer
48 views

How to label a chemical reaction with chemfig?

I am trying to add a label to a chemical reaction so that I can reference it just like equations. For example: \documentclass[12pt]{amsart} \usepackage{chemfig} \begin{document} \begin{center} \...
1
vote
0answers
40 views

Chemfig error: illegal parameter number in definition of \CF@compound

I'm using the Chemfig package version 1.2e I copied the \chemfig{A-#(,0pt)B-#(0pt)C} command from the manual to the editor, but the execution results in an error. I need to adjust the length of the ...
0
votes
1answer
50 views

How can I draw basic lewis structures with chemfig, and is there any recommended documentation to follow?

How would I reproduce something like this in chemfig, and is there any documentation I should follow? I understand this question has been asked multiple times, but I haven't found any post that goes ...
1
vote
2answers
92 views

Bring one atom to the front of a chemfig

I am trying to draw a 3D model of cyclohexane with some substituents. I am using the following code to draw my molecule. \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig[bond ...
2
votes
2answers
92 views

Chemical structures and width of the text

How do I manage to shrink the structural formulas to the width of the text below so that they are still on one line? If necessary, you can distribute the structural formulas on two or more lines, the ...
0
votes
2answers
90 views

How to draw energy cycle in chemfig

I am trying to draw an energy cycle in chemfig. I would like to get an arrow between C + 1/2O2 to 3CO2, then another one from 4H2 to 4H2O, unfortunately ended with what is in the image. Thanks in ...
1
vote
1answer
68 views

Draw Chemical reactors

I was wondering if there is a package or some way of drawing chemical reactors as in the following image I was looking in the documentation of chemfig, streetex and xymtex but the closest one was to ...
3
votes
1answer
40 views

general bivalence for aromatic groups in chemfig

I am trying to draw the general bivalent naphthalene with \chemfig (image attached). And I cannot figure out how to make the two dangling bonds. My code only let me draw naphthalene, and as soon as I ...
0
votes
2answers
48 views

how to put reactions on several lines and adjust them in CHEMFIG?

How to adjust several reactions vertically on top of each other in CHEMFIG?
1
vote
0answers
30 views

Why does \include change the output of my document? [duplicate]

This is essentially an expansion on my earlier problem (Chemfig curved arrows in the wrong place) to which I have found a fix, but not really a solution. I made a document using a header file which I ...
2
votes
0answers
54 views

Chemfig curved arrows in the wrong place [solved] [closed]

EDIT: I now know what causes the problem. I failed to mention in this post that I used a header file and the command \include. I thought it would make no difference, and I was wrong. \input, however, ...
0
votes
2answers
228 views

Chemical equation does not fit

Is there any possibility to get my chemical equation on the same line of the page? The water should be on the right side of the equation. It would also look nicer with the structural formula "...
1
vote
0answers
45 views

Chemmacros Orbital Broken

Currently using the latest versions of all TeX packages. However, the orbital module of chemmacros is broken, as shown in the screenshot. Why is this happening? This bug can be reproduced using the ...
2
votes
1answer
66 views

Chemfig alignment (-X> arrow)

I have a small alignment/spacing issue with a chemical figure. I'm using this -X> arrow that I stumbled across in this post I believe. But as you can see with the debug information on, the ...
1
vote
2answers
82 views

Compile LaTeX document to PNG automatically

I want to export chemical lewis structures as transparent PNG-files in order to use them in Word documents. So I want to achieve whats described in this post. I just can't get it to work because my ...
1
vote
1answer
46 views

Colored charges in chemfig?

I created a lewis formula with chemfig: Now I want to color only the charges like OP did in this question. This is my code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{verbatim} \...
5
votes
3answers
342 views

Misaligned numbers in aromatic ring

I try to number atoms in an aromate using a code of the chemfig manual on page 30. As seen in the picture the blue number 5 does not align with the other numbers. Any ideas why H in NH misaligns my ...
1
vote
0answers
24 views

Speed up compilation of document with chemfig drawings

I'm writing a document containing many chemical reactions drawn with chemfig. As I build it up, the compilation time is increasing unexpectedly fast and has reached nearly 1 minute for about 50 pages. ...
0
votes
0answers
28 views

“pgfkeys package error ” when doing a molecule (texmaker, linux)

The following code works fine when I run it on overleaf or texmaker for windows: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig[atom sep=2em]{*6(=-=-=-)} \end{...
1
vote
1answer
51 views

Merging curved arrows in chemfig (or tikz?)

I'm fairly new to Latex and I've been using chemfig to draw a couple of diagrams so far, but for this one I'm trying to do I've not found a way. I haven't used tikz before, but it seems to me that it ...
1
vote
1answer
45 views

Chemfig - distance between arrow and Compound

I would like to increase the distance between the arrow of the reaction and the compounds but when I change the value of arrow offset the direction of the arrow gets inverted. Also, when I change the ...
0
votes
0answers
44 views

Does somebody know a good online editor for writing chemical reactions in chemfig?

I use the following: https://py-chemist.com/mol_2_chemfig/home Which is based on the package mol2chemfig. but I am facing some problems: the function for writing full chemical reactions is not working,...
2
votes
1answer
43 views

Bond attributes with chemfig

I last used chemfig a while ago. Much has changed since then, especially the \charge command. I'm trying to draw a simple molecule. In number 3 it looks exactly as I want, but I'd like to be able to ...
1
vote
1answer
36 views

Is it possible to have a chemfig compound in a figure caption?

I am trying to insert a \chemfig compound in my figure caption but am unable to compile and I'm not sure why. I'm getting a generic \chemfig error message in my log file. Here is an example caption: \...
4
votes
1answer
55 views

Problems with shifted double bonds in chemfig

The next code produces the molecule shown in the picture: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig[bond join=true,atom sep=2em]{\charge{[extra sep=4.5pt]0=\.}{}(-[4]*6(=-...
6
votes
1answer
109 views

How to make good-looking linkages between single and double bonds in chemfig?

The following code produce the molecule shown in the first picture: \documentclass{article} \usepackage{chemfig} \begin{document} \setchemfig{bond join=true, atom sep=2.5em, bond style={line width=1....
0
votes
2answers
62 views

vertical reaction arrow pointing to one horizontal reaction arrow in chemfig

I'm having trouble writing the arrows below, can someone help me?
1
vote
1answer
81 views

Is it possible to rotate just the atoms of a molecule in chemfig?

In the first picture there is a regular molecule made with chemfig. Could it be possible to rotate just the atoms as shown in the second image?
2
votes
1answer
109 views

Chemistry LaTeX - help [duplicate]

I have recently started using LaTeX, to do my chemistry homework and I wish to display this but I have no idea on how to, is anyone able to help me
1
vote
1answer
105 views

I can't use \lewis with chemfig

I've got a simple but tough problem : Texmaker does not recognize \lewis ! When I compile, it says : Undefined control sequence. \lewis... I use chemfig of course. I've restarted my computer, a PC ...
2
votes
0answers
114 views

Chemfig doesn't work since MiKTeX update

Since I've updated all packages in MiKTeX, the chemfig-package doesn't work anymore. When I run the document in Texmaker, I get the errors "Undefined control sequence. \defKV", "LaTeX ...
1
vote
1answer
73 views

Align a molecule with notation including (+) in a scheme reaction in chemfig

I am doing the scheme shown in the first image. Second image shows the scheme done by the following code: \documentclass{article} \usepackage{chemfig} \begin{document} \schemestart \chemfig[atom sep=...
2
votes
1answer
48 views

Problem with the length of bonds in chemfig applying \charge command

I am doing the chemical reaction shown in the image. As you can see, when I apply the \charge command in the second molecule, the length of the double bond decrease. Also, the charge in the second ...
0
votes
1answer
69 views

Polymer brackets with chemfig

I am trying to do the mechanism shown in the image. I am stuck in the second molecule. I don't know how to use brackets properly. I also need to put the asterisk as an exponent.
1
vote
1answer
77 views

Something specific about my computer is not rendering chemfig submolecules

I previously asked this question. When I upgraded from TeXLive 2015 to 2020, submolecules defined using \definesubmol in chemfig would no longer render but simply print out the character sequence (the ...
0
votes
0answers
31 views

How to draw coordination complexes? [duplicate]

I am in need of drawing chemical complexes in space, with octahedral or tetrahedral or square or any other structure (for instance [Co(SO_4)(NH_3)_5]^+). Would anyone have any suggestion about which ...
1
vote
1answer
59 views

Partial coloring of double bonds in chemfig

I try to make a graph with various molecules and their modifications. The differences I want to highlight in red as seen in the picture. Pseudouridine has not only an additional NH but also the double ...

1
2 3 4 5
13