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.

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 ?

share|improve this question
1  
Welcome to TeX.SX! You may have a look on our starter guide. –  texenthusiast May 14 '13 at 5:10
    
You may want to consider LaTeXiT if you are on the Mac. –  Harold Cavendish May 14 '13 at 6:01
    
Is there any unix command which provides list of package which need to be included in document for using "chemfig" ? –  user1952498 May 14 '13 at 6:03
    
I'm using Linux CentOS –  user1952498 May 14 '13 at 6:04
3  
include \RequirePackage[log]{snapshot} before \documentclass{article} to see dependencies of chemfig in .log file. See snapshot documentation. Have a look at for eg: cgnieder's answer using chemfig. Use options [convert,border=2] to standalone class and run pdflatex --shell-escape chem-file-example.tex to get .png. See Martin Scharrer's answer to Better resolution of uploaded pictures Q at meta.tex.sx –  texenthusiast May 14 '13 at 6:37

1 Answer 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.

share|improve this answer

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.