A package for drawing 2D molecules using the TikZ package.

learn more… | top users | synonyms

1
vote
1answer
21 views

chemfig: abbreviate a constitutional formula with round brackets

I'd like to abbreviate a constitutional formula with round brackets. In math mode it works: \documentclass{scrartcl} \begin{document} $\mathrm{CH_3-(CH_2)_3-CH_3}$ instead of ...
3
votes
2answers
101 views

Aligning benzene wrt. its centre, in chemfig

Back again, with more questions. This time, I need to align a reaction scheme involving benzene. This is what I currently have: \diagram[1.0]{ \schemestart[0, 1.5, thick] ...
0
votes
0answers
22 views

How can i write Chemical Equation using Chemfig

i want to ask where i have to write code \chemfig{A*5(-B=C-D-E=)} so that it will produce output as chemical Equation. same as : https://www.sharelatex.com/project/56a9a475a56d800704791d83
2
votes
1answer
69 views

How to draw an arenium ion with chemfig?

This question is fairly straightforward, I hope. I want to achieve this, including the plus and the incomplete circle. I can already draw the benzene bit with chemfig, positioning the plus and ...
3
votes
1answer
37 views

Parentheses within chemfig are shifted in height

I am trying to draw a polymer with repeating units using chemfig. However, my opening and closing parentheses are shifted in vertical direction. This is my minimal working example: ...
0
votes
0answers
63 views

Real-time editor(whiteboard) using Latex Editor

After studying tex for more then 3 weeks, I am still wondering, how can I create a real-time editor(whiteboard) to prepare notes with complex structure. Suppose I am having dictionary of latex symbols ...
4
votes
1answer
52 views

chemfig: L-shaped arrow

I have a reaction scheme with three compounds. In this I'd like to use a L-shaped arrow having the possibiliy to put labels on. This kind of arrow is not provied by chemfig, so I customized my first ...
2
votes
1answer
57 views

How to get \lewis or \Lewis (in chemfig) to have custom angles and not just 0-7?

I'm drawing a molecule (p-anisaldehyde) in which one of the bonds is at a 60 degree angle and the atom at the end is inside \Lewis{}. I would like to have the two electron groups on the end atom to be ...
4
votes
1answer
41 views

Inconsistent spacing between a molecule and its name with chemfig

Why am I getting all this blank space after the phenylalanine molecule? \documentclass{article} \usepackage[dvipsnames, svgnames, x11names, table]{xcolor} \usepackage[version=4]{mhchem} ...
3
votes
1answer
30 views

How to define the exact starting point of a mechanistic arrow in chemfig

I want to draw a radical reaction mechanism and obviously the arrow should start at the lone electron and not at the corresponding atom. How could I achieve this? This is my code: ...
5
votes
1answer
35 views

can't get to run chemfig module properly

I did structure formulas with latex before, but now I wanted to reaction mecanisms with electron movement arrows and everything. I used some example code to try and get to know the principles, but it ...
2
votes
1answer
37 views

How do you draw a dative bond with chemfig?

How do you draw a dative / coordinate bond with chemfig? I would like to have the bond to appear as an arrow.
6
votes
1answer
51 views

Updated chemfig gives errors for previously working code

I've just installed TeX Live 2015 vanilla and I tried to compile some old sources just to be sure that everything worked. TeX Live works, but I have problems with some code that I've unashamedly ...
0
votes
1answer
46 views

chemfig formula in table - vertical alignment

I want to create numbered chemical formula via chemfig environment. MWE: \documentclass[a4paper,fleqn,leqno]{article} \usepackage{polyglossia} \usepackage{tikz,tikz-3dplot,graphicx} ...
1
vote
1answer
28 views

Reducing arrow margin in chemfig

Im trying to get a figure with a chemfig drawing to fit in my column. I cannot scale the entire figure with scalebox, as the text set with \chemname{} will be scaled too. \setatomsep{1.2em} ...
3
votes
1answer
84 views

Looking for help of Chemfig professional to draw a complex molecule

Can someone help me with the complex drawing of iron(II) protoporphyrin IX using chemfig or else? I know this is a bad question but this exceeds my skills by far (i just began using this package) and ...
1
vote
1answer
63 views

Help drawing myoglobine scheme with chemfig

Can someone help me to get a result like this with chemfig (or something else)? i know to get this: \documentclass{article} \usepackage{chemfig} \usepackage{mhchem} \begin{document} ...
1
vote
0answers
78 views

how do I call a function to compute angles in chemfig?

I want to generate chemfig code that instead of having fixed angles allows for some modification of groups of figures in a consistent way. So, I want to write things like the last line below, ...
5
votes
2answers
94 views

How to align all the molecules, the + sign and arrow at the same level?

I use the chemfig package to draw molecules in a chemical reaction. However, I cannot align the molecules, the + sign and arrow at the base line. I have tried the \vphantom command, like in this ...
4
votes
2answers
62 views

How to prevent \underbrace from overlapping with a \chemfig?

A chemical formula I'm annotating overlaps with an underbrace, unless I use brackets. How can I prevent overlap without placing brackets? MWE: \documentclass{article} \usepackage{chemfig} ...
1
vote
0answers
39 views

I am trying to make these chemical molecules into a nice table

I am writing a organic chemistry report and would like to create a nice table with these two molecules with captions A and B to fit into a lab report ehtyl acetate toluene Here is my code: ...
3
votes
1answer
80 views

How to align molecules structure at the base line?

I am using ChemFig package to compile some molecule structures, however, I cannot align them at the base line. See picture 1. How could I align all the molecules, the arrow and "+" sign in the ...
3
votes
1answer
55 views

Using mhchem and chemfig: how to make image smaller and let it fit vertically?

Code \documentclass[10pt, a4paper]{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage{chemfig,stackengine,graphicx} \usepackage{xcolor,tikz} \usepackage[version=3]{mhchem} ...
5
votes
2answers
177 views

Wall, molecules and drawing with tikz/chemfig

I would like to get to this result: This is the code till now: \documentclass[10pt, a4paper]{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage{chemfig,stackengine,graphicx} ...
2
votes
1answer
47 views

Using chemfig for copolymers i.e. polymers and 2 sets of parentheses

I'd like to use chemfig for copolymers. I have followed the demo for creating parentheses for polymers, but I've been having trouble figuring out how to get the two middle brackets to line up without ...
6
votes
1answer
105 views

chemfig: how to align the arrows of different schemes?

I am trying to get the arrows of three different schemes aligned but would like to have text in between them, as you can see below. Despite searching for hours, i haven't found a solution.. ...
0
votes
1answer
56 views

Create with chemfig a repeating unit of Si-O

I want to recreate this picture found on wikipedia, but with only the group in the parentheses.
0
votes
1answer
76 views

Chemfig error while trying to make a polymer

I have the following code (which I found somewhere around this page) to make polymer figure \usepackage{chemfig} \usepackage{mhchem} \makeatletter ...
1
vote
0answers
25 views

How to draw the wavy line meaning that part of a molecule has been omitted, in chemfig [duplicate]

[EDIT] I've just found this answer, but I'm working on it because I'd like the wavy line to be separated from the bond. I'm trying to write this reaction scheme: I had defined a macro for the ...
1
vote
1answer
65 views

Molecule positioning in chemfig reaction schemes

I need to write this reaction scheme: But I can't figure out how to place the NADH molecule like it is in the figure. Help me please, thanks! Thanks to Clemens' comment, I've worked out this ...
3
votes
1answer
132 views

Match chemfig arrow with mhchem arrow style

I really need to have all arrows set as the TikZ stealth arrow, or similar, by default for the whole document. The arrow style must be consistent, the length and spacing aren't a real problem. Most of ...
3
votes
1answer
86 views

How to set default arrow tips in Chemfig?

I want, for example, \arrow{->} (and \arrow{<->}, \arrow{<=>}... too) to draw an arrow with the "stealth" style tip. How can I do that?
2
votes
1answer
37 views

Need help to make space ind the bondings \chemfig

I am trying to build a Sucrose structure scheme in LaTex but i have some trouble. I can't figure out why i can't make the binding between the vertical H's longer so there is more space for the ...
4
votes
2answers
110 views

The two components of a double bond in different colors?

Using chemfig with the beamer class, I need to show the two "single bonds" of a double bond in different colors. It should be possible to change these colors for a given double bond on different ...
4
votes
2answers
84 views

Scale chemfig molecule in beamer with tikz

I want to show three different molecules on a beamer slide. The slide contains a tikzpicture (for positioning and uncovering together with the other elements), three nodes contain one molecule each. ...
2
votes
1answer
57 views

Chemfig – Charges in skeletal formulas

I’m trying to write a reaction mechanism but there’s a problem. If I want to add charges to ”invisible“ C-Atoms, the skeletal formula get’s broken (see right molecule). Here is a minimal example: ...
2
votes
2answers
105 views

How do I get the right arrow with chemfig / chemsign

I have a short question about the arrow in the reaction I made with chemfig. As you can see in the picture underneath the code the arrow is just "<=>". What I need is this: How can I produce ...
2
votes
1answer
59 views

copy reaction scheme using tikz

I would like to copy the reaction scheme similar to the image provided. This is what I have attempted so far, but I am new to chemfig so I'm not sure what I'm doing. Please provide your expertise. ...
4
votes
2answers
157 views

Generate pdf document consisting in just one figure

Related to this question I am trying to generate a figure using package chemfig. Actually, my problem is that the lower part of the figure is cropped, specifically the H under the N. This is the ...
2
votes
1answer
85 views

Adding dipole moments in chemfig

I haven't been able to find anything in chemfig for adding dipole moments to my molecules beyond creating custom arrows with tikz, which is more involved than I'd like at the moment. Is there some ...
4
votes
1answer
60 views

chemfig, how to do these wavy markings?

I am trying to reproduce this: So far I have: \documentclass{memoir} \usepackage{tikz} \usepackage{chemfig} \usetikzlibrary{decorations.pathmorphing} \begin{document} ...
2
votes
1answer
71 views

Resonance hybrids in chemfig

How would I best create the dotted/solid paired bond line for a resonance structure? For example, I have $ \chemfig{ C(=[:90]\lewis{1:3:, O}) (-[:210]\lewis{3:5:7:, O}) (-[:330]\lewis{1:5:7:, O}) } ...
0
votes
1answer
65 views

chemfig molecule shifts tikzpicture (in beamer)

I have a beamer slide with a title. On it I have a tikzpicture, which contains a molecule drawn with chemfig. Without the molecule the picture is just fine: However, as soon as I put the molecule, ...
3
votes
1answer
74 views

Write the charge of an ion as an apex outside the square brackets with chemfig

I have the structure of the nitrate ion written down in chemfig and I'd like to add its charge as an apex outside the square brackets (see below). Is there a correct way to do it or do I just ...
2
votes
1answer
56 views

Runaway argument in pgfmodulshapes.code.tex

While trying to compile the file: \documentclass[11pt]{article} \usepackage[active,textmath]{preview} \usepackage{amsmath} \usepackage{chemfig} \usepackage{amsfonts,amssymb} \pagestyle{empty} ...
2
votes
1answer
80 views

Vertical alignment of reaction mechanism

How can I align the following reaction mechanism of the Aspirin synthesis in chemfig? Code: \schemestart \definesubmol\nobond{-[2,0.2,,,draw=none]} ...
3
votes
2answers
81 views

Right aligning atom in chemfig

I'm using chemfig (perhaps improperly) for relational algebra graphs. Here, for example, is a simple one: \documentclass{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} ...
2
votes
1answer
44 views

Bonding to specific element letter using chemfig

Im trying to reproduce this molecule using chemfig, I have the basic structure with this code: \begin{figure} \centering \schemestart ...
4
votes
1answer
141 views

Reaction sheme for Saponification with chemfig: horizontal and vertical placement

I want to draw the formation of a fat molecule like shown in the picture below I tried with hspace/vspace and yshift: \documentclass[margin=2cm]{standalone} \usepackage{chemfig} \begin{document} ...
1
vote
1answer
97 views

Writing chemical reaction with WP-QuickLaTeX?

I want to show series of some chemical reactions on wordpress with QuickLaTeX using the popular chemfig and mhchem packages. However, I always encounter some problem. For example I want to show ...