Why do you want to abandon the advantages of the vector format in favour of a picture in a pixel format?GianlucaT wrote:[…] Now, how can I draw the molecule and save it as a TIFF? I mean can I save only the image in the tiff format and not all the page? […]
Nevertheless you can produce a PDF document that only contains the actual image and convert it subsequently with your favourite image manipulation software.
Code: Select all
\documentclass{minimal}
\usepackage{chemfig}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength{\PreviewBorder}{1pt}
\setatomsep{2em}
\begin{document}
\chemfig{%
H_2C=[:-30]
(-[:-90]CH_3)
-[:30]
(=[:90]O)
-[:-30]\chembelow[1.2em]{O}{\hspace{4em}Cl^-}
-[:30]
-[:-30]
-\chemabove[3pt]{N}{\hspace{-20pt}+}
(-[2]CH_3)
(-[6]CH_3)
-CH_3
}
\end{document}