Difference between revisions of "File formats/3D PDF"
Jump to navigation
Jump to search
AngelHerraez (talk | contribs) (→Creating the document) |
AngelHerraez (talk | contribs) |
||
Line 6: | Line 6: | ||
=== IDTF to U3D === | === IDTF to U3D === | ||
− | (See also descriptions and comments for [[File_formats/3D_Objects#IDTF|IDTF]] and [[File_formats/3D_Objects#U3D|U3D]] formats | + | (See also descriptions and comments for Jmol output to [[File_formats/3D_Objects#IDTF|IDTF]] and [[File_formats/3D_Objects#U3D|U3D]] formats.) |
* ''Windows'' installation of IDTFConverter | * ''Windows'' installation of IDTFConverter | ||
Line 20: | Line 20: | ||
There are several '''pdfLatex''' software, like teTex, MiKTeX... | There are several '''pdfLatex''' software, like teTex, MiKTeX... | ||
* Installation of MiKTeX (Windows) | * Installation of MiKTeX (Windows) | ||
− | # Download and install ''' | + | # Download and install '''MiKTeX "basic"''' from http://miktex.org/ |
− | # Do an update (<code | + | # Do an update (menu <code>Programs > MiKTeX > Maintenance > Update</code>) |
− | # Download the '''movie15''' package (<code | + | # Download the '''movie15''' package (menu <code>Programs > MikTex > Maintenance > Package Manager</code>) |
== Creating the document == | == Creating the document == | ||
− | 1. Within Jmol script console: <code>write c:/temp/xxx.idtf</code> | + | 1. Within Jmol script console: <code>write c:/temp/xxx.idtf</code> |
− | : or from the application's pop-up menu: <code>File > Export IDTF 3D model</code> (a dialog prompts for | + | : or from the application's pop-up menu: <code>File > Export IDTF 3D model</code> (a dialog prompts for destination folder and filename). |
: Either of those will create two files: {{file|xxx.idtf}} and {{file|xxx.idtf.tex}} | : Either of those will create two files: {{file|xxx.idtf}} and {{file|xxx.idtf.tex}} | ||
Line 32: | Line 32: | ||
: <code>u3d c:\temp\xxx</code> | : <code>u3d c:\temp\xxx</code> | ||
− | 3. Run the '''TeXworks''' program included in MiKTeX and open your {{file|xxx.idtf.tex}} | + | 3. Run the '''TeXworks''' program --included in MiKTeX-- and open in it your {{file|xxx.idtf.tex}}. |
− | 4. Click menu item <code>Typeset > Typeset</code>, or click on the green play- | + | 4. Click menu item <code>Typeset > Typeset</code>, or click on the green 'play'-like button (leftmost in the toolbar). |
− | : When processing ends, you will see a blank document, because MiKTeX can't display the model, but {{file|xxx.idtf.pdf}} should have been created. | + | : When processing ends, you will see a blank document in a new TeXworks window, because MiKTeX can't display the model, but {{file|xxx.idtf.pdf}} should have been created. |
5. Open the {{file|.pdf}} file using Adobe Reader v. 7 or later. | 5. Open the {{file|.pdf}} file using Adobe Reader v. 7 or later. | ||
− | : If you don't see the model in | + | : If you don't see the model in its panel inside the document, right-click on it and choose <code>Partial options > Fit visible</code> |
Revision as of 22:51, 16 July 2010
Contents
PDF documents with integrated 3D interactive models
Installations
Jmol
You need at least version 12.0.RC26 to do this.
IDTF to U3D
(See also descriptions and comments for Jmol output to IDTF and U3D formats.)
- Windows installation of IDTFConverter
- Download and unzip http://www.iaas.msu.ru/tmp/u3d/u3dIntelWin.zip into, perhaps, c:\idtf\
- Create a simple command file u3d.bat and place it in a folder where it is easily accessible (e.g. the Windows directory or a folder included in the system's path). This u3d.bat file must contain this text:
c:\idtf\idtfconverter.exe -input %1.idtf -output %1.u3d
- MacOS and Linux installation of IDTFConverter
- See IDTF for instructions on getting the converter.
- Create a command file similarly to the one described for Windows.
LaTeX to PDF
There are several pdfLatex software, like teTex, MiKTeX...
- Installation of MiKTeX (Windows)
- Download and install MiKTeX "basic" from http://miktex.org/
- Do an update (menu
Programs > MiKTeX > Maintenance > Update
) - Download the movie15 package (menu
Programs > MikTex > Maintenance > Package Manager
)
Creating the document
1. Within Jmol script console: write c:/temp/xxx.idtf
- or from the application's pop-up menu:
File > Export IDTF 3D model
(a dialog prompts for destination folder and filename). - Either of those will create two files: xxx.idtf and xxx.idtf.tex
2. At the system command line or terminal, call the u3d.bat file (Windows), or equivalent MacOS or Linux command file, to convert the .idtf to .u3d format:
u3d c:\temp\xxx
3. Run the TeXworks program --included in MiKTeX-- and open in it your xxx.idtf.tex.
4. Click menu item Typeset > Typeset
, or click on the green 'play'-like button (leftmost in the toolbar).
- When processing ends, you will see a blank document in a new TeXworks window, because MiKTeX can't display the model, but xxx.idtf.pdf should have been created.
5. Open the .pdf file using Adobe Reader v. 7 or later.
- If you don't see the model in its panel inside the document, right-click on it and choose
Partial options > Fit visible