Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've just tried using chemfig for the first time to try and recreate a figure (below). enter image description here

I had a quick look through the manual so see if there was an example that I could adapt to my needs, and this is what I've managed code-wise and in terms of output.

\documentclass{article}
\usepackage{chemfig}
\begin{document}
\chemfig{P(=[2]O)(-[7]C_{5}H_{11})(-[5]C_{5}H_{11}O)(-[3]C_{5}H_{11}O)}
\end{document}

enter image description here

Now whilst, this looks to be correct, I think that the bond lengths are a little bit too long, and also the angles of the bonds are too steep. How would I go about changing this? Also, the method that I've used to set the angles of the bonds doesn't seem to be that flexible, as I only seem to be able to set the bonds at 45 degree intervals, is there another way to do this where I can specify custom angles?

share|improve this question
add comment

1 Answer 1

up vote 9 down vote accepted

Something like this?

enter image description here

MWE:

\documentclass{article}
\usepackage{chemfig}
\begin{document}
\chemfig{P(=[2,0.7]O)(-[:-30,0.8]C_{5}H_{11})(-[:150,0.8]C_{5}H_{11}O)(-[:210,0.8]C_{5}H_{11}O)}
\end{document} 

To specify an angle you have to use the notation [:<angle>], while to specify a custom length for the bonds you have to use [,<length>], so for example, if you want something at 150° and with a bond length of 0.8 you have to use [:150,0.8]

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.