# Tag Info

## Hot answers tagged chemfig

15

Here are the fish you wanted, that I caught with texdoc chemfig. \documentclass{article} \usepackage{chemfig} \begin{document} \setatomsep{2em} \setdoublesep{.3em} \renewcommand*\printatom[1]{\ensuremath{\mathsf{#1}}} \chemfig[line width=1pt] { HO-*6(-=-(-(-[::90]CH_3)(-[::-90]CH_3)-*6(-=-(-OH)=-=))=-=) } \end{document} Now your turn to fetch the ...

4

Chemfig's bonds have an optional argument that takes several parameters one of them being a factor to scale the bond length: <bond>[<angle spec>,<length factor>,<other parameters>] So you can just add that option to the bonds you want shorter: \documentclass[a4paper,11pt]{scrartcl} \usepackage[utf8]{inputenc} ...

3

I must confess the question is a bit unclear to me but it seems like you simply want a {figure} environment. If by »refer to the [...] molecule« you mean the practice of refering to molecules with numbers in the text you may want to have a look at the chemnum package. \documentclass{article} \usepackage{chemfig} \usepackage{chemnum} ...

2

Here's a quick try. It's a bit inflexible since all the bond angles are hard coded... \documentclass{article} \usepackage{chemfig} \begin{document} \setcrambond{2pt}{}{} \chemfig{ O_2N-[:-18] N*5( -[,,,,line width=2pt]?[b] -[,,,,line width=2pt] (>[:-18]N(-[:-9]NO_2)-[:126,1.6] *5( -N(-NO_2)-?[a]-N(-NO_2) ...

2

\smash or (maybe even better) amsmath's \smash[b] can help here \chemfig{A-X-\smash[b]{\printatom{Mg}}}. For the sake of not having to type \smash and \printatom I define a \smashatom below: \documentclass{article} \usepackage{chemfig} \usepackage{amsmath} \newcommand*\smashatom[2][]{% \if\relax\detokenize{#1}\relax \smash{\printatom{#2}}% \else ...

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