2

How to generate .png images of chemical structures using LaTeX, dvipng & chemfig ?

What packages need to be included ?

Is there any reference article for same ?

cgnieder
  • 66,645

1 Answers1

1

Include \RequirePackage[log]{snapshot} before \documentclass{article} to see dependencies of chemfig in .log file. See snapshot documentation for more options.

Have a look at code example by cgnieder's answer using chemfig that uses chemfig and standalonepackage.

Use options [convert,border=2] to standalone class and run pdflatex --shell-escape chem-file-example.tex to get .png.Refer Martin Scharrer's answer to Better resolution of uploaded pictures Q at meta.tex.sx for full steps.