Hi Hans and list members,
some time ago I asked Hans if he could implement a context analogon to the LaTeX asymptote package. This resulted in the context module asymptote.
It would be a nice addition (if this is not implemented yet) if the following functionality could be implemented in this module:
Writing a LaTeX file like the one attached using the asymptote package LaTeX and asymptote produce a pdf that contains a rendered version of the asymptote graphic and an interactive version of it as well. Both are embedded in the pdf file. The usually visible rendered pdf version can be made active (using Adobe Acrobat) if one clicks it – then the embedded interactive version gets visible and can be manipulated by the reader.
The LaTeX user does not need to specify anything, all is simply done by the asymptote package.
Could something like that be possible in ConTeXt, too? That would be really great! I suppose that asymptote is required to run twice to achieve that, one time to render the pdf version and a second time to render the prc file that contains the interactive version of the graphic. ConTeXt should then embed the interactive version of the graphic and the static one as well and should display the rendered pdf version until the reader clicks the static pdf version to make it active. Then the interactive graphic should get active and replace the static preview.
You can see the desired behaviour in the attached pdf output of the LaTeX file.
To compile the attached file using LaTeX and asymptote you can write in a terminal (after having navigated into the folder that contains the example file)
pdflatex latex-asymptote
asy latex-asymptote-*.asy
pdflatex latex-asymptote
Kind regards,
Mathias Schickel