Graphics, Figures & TablesTikZ for 3d stick pictures of molecules

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ruth
Posts: 2
Joined: Thu Jan 15, 2009 1:05 am

TikZ for 3d stick pictures of molecules

Post by ruth »

I would like to use tikz (or something else possibly) to produce some figures for a presentation I am preparing. I want to produce a pdf file, but texniccenter falls over when I try LaTex -> pdf. LaTex -> ps works, so it's not my (very little piece of test) code. I'm using adobe reader 9.0 if that makes any difference. I want to use it (or possibly sketch) to produce some 3d stick pictures of molecules, so if anyone has any suggestions for a better package to use, I'd be grateful for that too (it doesn't have to be TeX-based). Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: problem with tikz and pdf

Post by josephwright »

tikz works fine for PDF output, in general. Could you give us an example of what you are trying, so we can see what might be wrong.

On another point, what type of molecular diagrams are we talking here? If they are "serious" chemistry, TeX-based approaches are not necessarily best.
--
Joseph Wright
Joseph Wright
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Re: problem with tikz and pdf

Post by Stefan Kottwitz »

Hi Ruth,

welcome to the board!
Perhaps post also your .log file as attachment here, we could try to find the cause there.

Stefan
LaTeX.org admin
ruth
Posts: 2
Joined: Thu Jan 15, 2009 1:05 am

Re: problem with tikz and pdf

Post by ruth »

No, not serious chemistry - these are going to be diagrams of ammonia with axes attached to show how to relate body-fixed axes to space-fixed axes (hence the need for 3d projections), and also to show the effect of nuclear permutations.

Cancel the question re pdf problems! Bizarrely, today it works. But any guidance on other graphics packages to use is always welcome!
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

TikZ for 3d stick pictures of molecules

Post by phi »

Asymptote is an extremely powerful vector graphics language that is very well suited for 3-D graphics. Have a look at the gallery, on page 2 there is an example molecule (cyclohexane). It can produce high-quality vector graphics with 3-D Postscript, render images with OpenGL (giving nice shadows and other features), and even create interactive 3-D models that Acrobat Reader users can zoom, drag and rotate. Furthermore, it comes with a powerful Java-like programming language that can be used for complex mathematics, numerical algorithms (nonlinear root-finding, integration, linear equation solving...) and much more.
Post Reply