File formats/3D PDF

From Jmol
Revision as of 15:04, 16 July 2010 by AngelHerraez (talk | contribs) (compiling instructions for making a PDF with 3D model from Jmol)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PDF documents with integrated 3D interactive models

(This is a draft)

Installations

LaTeX to PDF

There are several pdfLatex software, like teTex, MiKTeX...

  • Installation of MiKTeX (Windows)
  1. Download and install Miktex "basic" from http://miktex.org/
  2. Do an update [Start...Programs...MikTex...Maintenance]
  3. Open the download manager and download the movie15 package [Start...Programs...MikTex...Maintenance]

IDTF to U3D

(See also descriptions and comments for IDTF and U3D formats regarding Jmol.)

  • Installation of IDTFConverter (Windows)
  1. Download and unzip http://www.iaas.msu.ru/tmp/u3d/u3dIntelWin.zip into, perhaps, File icon.gifc:\idtf
  2. Create a simple command file File icon.gifu3d.bat and place it in a folder where it is easily accesible (e.g. the Windows directory or a folder included in the system's path). This File icon.gifu3d.bat file must contain this text:
c:\idtf\idtfconverter.exe -input %1.idtf -output %1.u3d

Creating the document

1. Within Jmol:

write c:/temp/xxx.idtf
That will create two files: {{file|xxx.idtf} and File icon.gifxxx.idtf.tex

2. Within Windows, call the File icon.gifu3d.bat file to convert the File icon.gif.idtf to File icon.gif.u3d format:

u3d c:\temp\xxx

3. Run the MikTeX program TeXworks and open your File icon.gifxxx.idtf.tex

4. Click menu item Typeset

You will see a blank document, because MikTex can't display the model, but File icon.gifdoc.pdf should have been created.

5. Open File icon.gifdoc.pdf using Adobe Reader v. 7 or later.

Contributors

AngelHerraez, Vdlee