I am not a specialist of ASYMPTOTE, but I've just looked into the
documentation. They directly tell about makefile for latex with asymptote:

document.pdf: document.tex
    pdflatex -shell-escape document
    asy document
    pdflatex -shell-escape document

It means that ASYMPTOTE need an additional step during document generation
which launch "asy" command between two "pdflatex" invocations. This is what
LyX is *not able* to do. Generation process is compiled in, automatic... and
as some people suggests, not user configurable.

Maybe it is worth to put feature request in bugzilla, to get this to work
when \usepackage{asymptote} is used in preamble definition.


2008/5/13 Peleg Michaeli <[EMAIL PROTECTED]>:

> Hello!
> I am trying to embed Asymptote in LyX documents.
> I am following this tutorial:
> http://www.dse.nl/~dario/projects/asylatex/asylatex.pdf<http://www.dse.nl/%7Edario/projects/asylatex/asylatex.pdf>
> I am doing everything as suggested:
> * I have included \usepackage{asymptote} and
> \usepackage[pdftex]{graphicx} in the LaTeX preamble
> * I have done Crtl-L in the middle of the document and added this LaTeX
> code:
> \begin{figure}
> \centering
> \begin{asy}
> size (3cm);
> draw (unitcircle);
> \end{asy}
> \caption{Embedded Asymptote figures are easy!}
> \label{fig:embedded}
> \end{figure}
> When I generate the document (using pdflatex), I get nothing special: a
> "figure" with "PDF" written there, but no image (no "unitcircle")...
> when I do the same, but with DVI, I get "EPS" written instead of the
> unitcircle. Either way, I don't see any picture...
> I have a new version of Asymptote: 1.18 - so it should work
> automatically with pdflatex.
> Any ideas?
> Maybe I should ask a different list?
> Thanks ahead,
> Peleg.

gg: 1624001

Reply via email to