Tag Info

Hot answers tagged

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 ...


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

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}{}{} ...


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>} ...


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} ...



Only top voted, non community-wiki answers of a minimum length are eligible