Tag Info

2

\chemname sets the name below the compound depending on the depth of the compound and the previous usages of \chemname. The chemfig manual says: In fact, to draw the <name> the command \chemname inserts 1.5ex + the largest of the depths of the molecules thus far below the baseline of each molecule [...]. The command \chenameinit{<stuff>} ...

3

You can draw an invisible bond to the center of the ring, name that position with chemfig's @{name} syntax and draw a slightly longer bond from there to Me. With the \chemmove macro and a little bit of TikZ you can draw the ellipse around the marked center: \documentclass{article} \usepackage{chemfig} \begin{document} \begin{center} \setcrambond{2pt}{}{} ...

1

With a lot of stacking, and a little tikz. EDITED to provide thinner ring, and ability to break ring. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{chemfig,stackengine,graphicx} \usepackage{xcolor,tikz} \newcommand\dottedcirc[2]{\tikz{\draw[dashed] (0,0) arc [x radius=.8,% y radius=.4,start angle=#1,end angle=#2];}} \begin{document} ...

3

If you change \chemfig{-[7]N(-[5])... in your first formula into \chemfig{N(-[5])(-[3])... the baseline of said formula will be determined by the N which in this case suffices for the wanted alignment. The baseline of the OH- is then the same as baseline of the N of the first formula. The rest in the code below is just indentation. I also added | in one ...

3

In theory, \chemfig{<code>} can be written in the argument of a macro since \CF@chemfig@iv does a \scantokens of the <code>. Unfortunately, there is a bug because via \scantokens, # becomes ## in the argument of a macro and this behaviour is not taken into account by \chemfig. For example, if you write \fbox{\chemfig{A-#(0pt)B}}, the code of the ...

6

The \chemfig command relies on category code changes, in particular it changes # to an “other character” (category code 12). Such commands cannot appear in the argument to another command. While equation and equation* are safe on this respect, align* isn't: the multiline alignment environments of amsmath absorb their content as the argument to a command. ...

1

I am not really an expert on pgf and tikz so probably this can be done even better. But here is my solution, where I define a new style of the bond. Inspired by Creating delocalized double bonds in chemfig without tikzset? and Passing parameters to \pgfdeclaredecoration \documentclass[a4paper]{article} \usepackage{chemfig} \usetikzlibrary{decorations} ...

3

Look at the page 23 of the manual. You have to split CH_2 as follows: \chemfig{{C}|\lewis{0.,H_2}-[6,,1]*6(------)}

Top 50 recent answers are included