Ceci est une ancienne révision du document !
In-line source for graphics applications
Some of the free-standing graphics applications may also be used (effectively) in-line in LaTeX documents; examples are
- The package asymptote (provided in the
asymptote
distribution) defines an environmentasy
which arranges that its contents are available for processing, and will therefore be typeset (after “enough” runs, in the “usual” LaTeX way).
Basically, you write
\begin{asy} <asymptote code> \end{asy}
and then run the commands
latex document
asy document-*.asy
latex document
- egplot allows you to incorporate
GNUplot
instructions in your document, for processing outside of LaTeX. The package provides commands that enable the user to do calculation inGNUplot
, feeding the results into the diagram to be drawn.
- gmp allows you to include the source of MetaPost diagrams, with parameters of the diagram passed from the environment call.
- mpgraphics allows you again to program parameters of MetaPost diagrams from your LaTeX document, including the preamble details of the LaTeX code in any recursive call from MetaPost.
In all cases (other than asymptote), these packages require that you can run external programs from within your document.
Source: