Math & Science ⇒ how to draw in chemfig
how to draw in chemfig
- Attachments
-
- chemstructure.png (5.36 KiB) Viewed 9400 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
how to draw in chemfig
Please have a look at the

how to draw in chemfig
My pieced attempts so far included this:
Code: Select all
\documentclass{book}
\usepackage{chemfig}
\begin{document}
\chemfig{-[::-30]O-(=[::45]O)-[::-30]}
\chemfig{Cl-[::-30]-[::60]Cl}
\chemfig{-[::90]-[::-45]-[::-135]-[::-50]}
\chemfig{-[::30]O-(=[::-45]O)-[::30]}
\end{document}
A
how to draw in chemfig
Code: Select all
\chemfig{
?-[:-150,1.5]
-[:-100]
-[:30,1.5]
-[:-30,1.5]
=^[:80]?
}
?
hooks names:Code: Select all
\chemfig{
?[a](-[:90]?[b])
-[:-150,1.5]
-[:-100]
-[:30,1.5](-[:90]?[b])
-[:-30,1.5]
=^[:80]?[a]
}
Code: Select all
\chemfig{
?[a](-[:90]?[b](-[:30,.7]Cl)-[:150,.7]Cl)
-[:-150,1.5]
-[:-100]
-[:30,1.5](-[:90]?[b])
-[:-30,1.5]
=^[:80]?[a]
}
Code: Select all
\chemfig{
?[a](-[:90]?[b](-[:30,.7]Cl)-[:150,.7]Cl)
-[:-150,1.5](-[:135](=[::-60]O)-[::60]O-[::-60])
-[:-100](-[:-135](=[::60]O)-[::-60]O-[::60])
-[:30,1.5](-[:90]?[b])
-[:-30,1.5]
=^[:80]?[a]
}

Regards
Re: how to draw in chemfig

All the best,
Audrey
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: how to draw in chemfig
Audrey, Clemens described his thought process. You can see, that he thought about the structure before coding. One molecule is put in one chemfig.
Maybe starting with some simple molecules and structures is better.
Re: how to draw in chemfig

Best regards,
Audrey