Tag Info

Hot answers tagged

9

Something like this? 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 ...


4

Here is how to draw the 2 first arrows: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{*6((-[@{a1}]H_2@{a2}\Lewis{26,N})=[@{r1}]-[@{r2}]=(-N=N-*6(=-=(-OH)-=-))-=-=)} \chemmove[-stealth,shorten <=1pt, shorten >=1pt]{% \draw(a2)..controls +(90:5mm) and +(135:5mm)..(a1);% first arrow \draw(r1)..controls +(225:12mm) and ...


3

Here is another idea: if you place each of the parentheses between braces ({(} and {)}) they are treated like an atom (i.e. like C or H) and you can use the optional argument of the bonds to determine where the bond arrives: <bond>[<angle>,<length factor>,<departure atom>,<arrival atom>,<TikZ options>] Where ...


2

It can be done like this: \documentclass[12pt,a4paper]{standalone} \usepackage{chemfig} \newcommand\setpolymerdelim[2]{\def\delimleft{#1}\def\delimright{#2}} \def\makebraces[#1,#2]#3#4#5{% \edef\delimhalfdim{\the\dimexpr(#1+#2)/2}% \edef\delimvshift{\the\dimexpr(#1-#2)/2}% \chemmove{% \node[at=(#4),yshift=(\delimvshift)] {$\left\delimleft\vrule ...


1

You used two parameters for \chemfig, but according to page 64 of the chemfig manual, only one parameter can be used. So the second parameter was just a group of text placed next to the molecule. Therefore I used \chembelow. I tried to modify it to get the picture of Allicin at Wikipedia, but it still requires some polishing. \documentclass{minimal} ...



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