# Tag Info

3

I couldn't trace the cause for the change, but the problem is in your code and not in chemfig. The macro \CF@atom@sep expands to 3em, unless \setatomsep is issued. What happens is that, with previous versions of TikZ/PGF, your segment length=\the\dimexpr\csname CF@atom@sep\endcsname/5\relax was evaluated when the current font was the standard text font; ...

0

I just uploaded mhchem 4.03 (2015-11-29) which will make its way to the CTAN servers during the next couple of days. With that, you will be able to use any PGF arrow tip (as long as it is reasonably sized). For instance: \usepackage[version=4,arrows=pgf{Kite[length=0pt 4,width'=0pt 1]}{0.15ex}]{mhchem}

2

Why not use an equation for numbered reactions? BTW \chemsign and \chemrel are deprecated macros and have been removed in v1.3 of chemfig. \documentclass{article} \usepackage{chemfig} \setbondstyle{line width=.75pt} % \usepackage{showframe} \newcounter{reaction} \begin{document} \begin{center} \begin{tabular}{cc} \setatomsep{1.5em} ...

1

I managed to do this using clemens' comment, and some help from the chemfig manual. I added the follow lines: \setcompoundsep{1.5em} \setarrowoffset{1pt} And the result: \setatomsep{1.2em} \setbondoffset{0.1em} \setcompoundsep{1.5em} \setarrowoffset{1pt} \definesubmol{hydroxy}[HO]{OH} \definesubmol{foo}{ -[::180,2,,,dash pattern=on 2pt off 2pt]O ...

3

Here is something to get you started, based upon the Porphyrin example from the gallery in chemfig's manual: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{ a-?[a]=[::+63]*5( -N?[b]=( -(-[::63]d)=[::-54]*5( -N?[c]-( =(-[::63]g)-[::-54]*5( =N?[d]-( =(-[::63]j)-[::-54]*5( ...

4

The overall structure is a simple table, so a tabular should do fine \begin{tabular}{llll} \chemfig{...} & ... \\ Myoglobin & ... \\ Fleischfarbe \\ purpurrot & ... \end{tabular} As for the chemical formulas: using the bonds optional parameters they are quite easy with chemfig. Here is an example for one of the structures: ...

-1

Chemical formula are very difficult to do properly even with a good package like Chemfig. I would switch to a dedicated application like ChemDraw which has all of the functionality that you need for this problem as well all the extras for other more complex examples. Sometimes one has to recognise that TeX/LaTeX cannot do it all ... more's the pity

5

chemfig always places the first atom of the molecule on the baseline, so if you write \chemfig{O=[:-90](-[:-150]H)-[:-30]OH} the oxygen will be on the baseline. To put the carbon on the baseline it has to be the first atom: \chemfig{(-[:-150]H)(=[:90]O)-[:-30]OH} In other words, you must start from the atom you want to be on the baseline and treat the ...

0

The code with QuickLaTeX is just the same as you would do in LaTeX as QuickLaTeX uses a TeX Live distribution. The LaTeX code \documentclass{article} \begin{document} $xxx \\ yyy$ \end{document} just gives one line xxxyyy because you cannot have a linebreak in a single equation. This still holds of course when you use \ce{...} and it also holds ...

0

There is no free positioning. But with the help of invisible arrows it is not too hard: \documentclass{article} \usepackage{chemfig} \setatomsep{1.8em} \begin{document} \schemestart \chemfig{EtO-[:-30](=[6]O)-[:30]-[:-30](=[6]O)-[:30]} \arrow{0}[-60,.4] \chemname {\chemfig{*6(-N(-R)-=(-(=[2]O)-[::-60]NH_2)-(<:[:70]H)(<[:120]H)-=)}} ...

4

You can use the uppercase version \Chembelow (there's also \Chemabove) to extend the bounding box of the molecule: $\underbrace{ \chemfig{*6(-\Chembelow{N}{H}-(=O)--\chemabove{N}{H}-(=O)-)} }_{\textnormal{glycine anhydride}}$ BTW: you can use chemfig's tools and avoid mathmode completely: \schemestart[-90] \chemup. ...

2

Here, I just \addstackgap[10pt]{} to the \chemfig, which pads the argument, top and bottom, with a buffer the size of the optional argument (default 3pt). Alternately, it can be done without a package by adding a \rule. In the MWE below, both approaches are shown. \documentclass{article} \usepackage{chemfig,stackengine} \begin{document} ...

2

\vphantom aligns molecules, additional argument of \+ aligns plus signs and arrow: \documentclass{article} \usepackage{chemfig} \begin{document} \schemestart \vphantom{\chemfig{[,0.5]*6(-(-F)=-=(-CH_3)-=)}} % here - PS \chemfig{[,0.5]*6(-=-=(-CH_3)-=)} \arrow{->[\chemfig{F_2}][\chemfig{MeOH}][]}[,1.5] \chemfig{[,0.5]*6(-=-(-F)=(-CH_3)-=)} \+{,,5pt} % ...

2

I'm sure there is a more elegant way, but a crude approach is to calculate the difference in width between each of the smaller left compounds (the first two) and the largest (the last) and add that as \hspace before the start of the smaller reactions. Showing each step: \documentclass[a4paper,pdftex,ngerman,12pt]{article} \usepackage{chemfig} ...

5

Citing chemfig's manual ChemFig always places the first atom of the molecule on the baseline of the preceding code. This means that the first atom in a molecule determines the baseline of the whole molecule. A solution in this case it is rather easy: add an invisible bond upwards before the “wall” (i.e. three bonds scaled by .5 going down (the angle ...

6

Here is a “chemfig only” idea: \documentclass{article} \usepackage{chemfig} \definesubmol{wallpart}{-[:-90,.5](-[:110,.5])} \definesubmol{wall}{!{wallpart}!{wallpart}!{wallpart}} \begin{document} \chemfig{ !{wall} (-[:0]**6(---(-CH_3)---)) !{wall} } \end{document} As far as I know the size of the circle (relative to the size of the ring) is ...

1

I don't know how to do the chemistry part of the problem (changing the -45 seemed to have no effect, so I just rotated what was provided), but the wall can be emulated with a stack of slashes / and a \rule. \documentclass[10pt, a4paper]{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage{chemfig,stackengine,graphicx} ...

1

Looks like PHBV! Assuming I'm right, you are missing hydrogens on your third carbons in both HB and HV. Also, the bond angles for the hydrogens on the second carbons aren't right. I took the liberty of adjusting accordingly and cleaning things up a bit. As for your question, you can modify the \chemmove macro call in the preamble to draw both the right and ...

Top 50 recent answers are included