[texhax] asymptote in latex - how?
Philip TAYLOR
P.Taylor at Rhul.Ac.Uk
Wed Sep 16 17:22:45 CEST 2009
This works for me, Bo :
[asy-test.ltx]
\documentclass[10pt]{article}
\usepackage{graphicx}
\usepackage{asymptote}
\begin{document}
\begin{figure}
\centering
\input asy-source.ltx
\caption{This is a test. Let's see if it works...}
\label{fig:1}
\end{figure}
\end{document}
[asy-source.ltx]
\begin{asy}
size (3cm);
draw (unitcircle);
\end{asy}
Are you trying to avoid including the \begin {asy} / \end {asy}
in your included file ? That may be rather more tricky, but
I haven't tried it ...
** Phil.
--------
Bo Thide' wrote:
> Hi Philip,
>
> Thanks for your help.
>
> My problem went away when I replaced Ubuntu 9.04's version of asymptote
> (1.43) with the latest asymptote (1.86), compiled from source.
>
> A related question: I would like to have the asymptote code being read
> in into my latex file (preferable via an \input mechanism), rather than
> having the code embedded in the .tex file, but am not sure how to do it.
> Dario Teixeira's "ASYMPTOTE and LaTeX: An Integration Guide" is unclear
> and ambgious on this point. Everything I have tried in this direcation
> has failed so far. Perhaps there is an Asymptote FAQ somewhere that I
> have missed?
More information about the texhax
mailing list