Asymptote is a powerful graphics language that can produce pdf with 3D feature and be easily integrated with Latex.
Here are the steps needed to produce this pdf under windows, with TexMaker and MikTeK and of course asymptote.
First, installation:
- Install TexMaker (and MikTex or TexLive depending of your OS). Follow the french instructions here.
- Install Asymptote from the guide here. The installation of ImageMagic is not necessary. But psview and Ghostscript are needed. Remind that asymptote uses mingw.
- Configure TexMaker:
Then, use it:
- Download and expand the following archive (zip)
- Compile the TestAsymptote.tex file (this file is well inspired from the asymptote example). With Texmaker it is just openning the file and pressing ‘F1’. The pdf file should be created.
Futur use:
- Remember to copy the asymptote.asy file in your project directory (included into the archive)
- The example I do is reading two ASCII text files and displaying the data in an interactive 3D box with axis.
More reading on this topic
- Nice how to “Miktex and Asymptote” with many screenshots (in French).
- One may be interested by PdfAdd software.
- It is also possible to compile asymptote file (.asy) directly from NotePad++, steps perfectly detailed here (in French). For big document this is the good way of working (and to debug your asy files also!)