[texhax] asymptote in latex - how?

Bo Thide' bt at phisp.irfu.se
Tue Sep 15 20:30:01 CEST 2009


Hi,

I have been trying to use asymptote (currently version 1.43) together
with latex to embed an asy figure.  To this end I use the following almost
trivial source, taken more or less verbatim from Dario Texeira's "ASYMPTOTE
and LaTeX: An Integration Guide":

\documentclass[10pt]{article}
\usepackage{graphicx}
\usepackage{asymptote}

\begin{document}

\begin{figure}
\centering
\begin{asy}
size (3cm);
draw (unitcircle);
\end{asy}
\caption{This is a test.  Let's see if it works...}
\label{fig:1}
\end{figure}
\end{document}

While the asy code works fine when I run it stand-alone, the embedding
in the latex file yields nothing.  Just blank, empty space.  

What am I doing wrong here?  The log file is enclosed below.

Bo

-- 

Professor Dr. Bo Thidé, Head of Programme,  http://www.physics.irfu.se/~bt
Address: Swedish Institute of Space Physics, P.O.Box 537, SE-75121 Uppsala
Phone:   Office +46 18-4715914  Mobile +46 705-613670  Home +46 18-4951801
Visiting address:  Ångström Lab,  Room # 84108, Lägerhyddsvägen 1, Uppsala
Växjö address: LOIS Space Centre, SE-35195 Växjö http://www.lois-space.net


Here's the log file:


This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex 2009.9.4)  15 SEP 2009 20:16
entering extended mode
 %&-line parsing enabled.
**asytest
(./asytest.tex
LaTeX2e <2005/12/01>
Babel <v3.8d> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV at toks@=\toks14
)
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/etc/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: dvips.def on input line 90.

(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\Gin at req@height=\dimen103
\Gin at req@width=\dimen104
)
(/usr/local/share/texmf/tex/latex/asymptote/asymptote.sty
Package: asymptote 2009/08/15 v1.10 Asymptote style file for LaTeX

(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
)
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)

(/etc/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: dvips.def on input line 130.

(/usr/share/texmf-texlive/tex/latex/graphics/dvipsnam.def
File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\AsyStream=\write3
\AsyTestStream=\read1
\AsyTestTeXStream=\read2
\openout3 = `asytest.asy'.

\ASYbox=\box26
\c at asy=\count87
) (./asytest.aux)
\openout1 = `asytest.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.


Package asymptote Warning: file asytest-1.eps does not exist on input line 12.

[1] (./asytest.aux) ) 
Here is how much of TeX's memory you used:
 826 strings out of 95087
 10608 string characters out of 1183303
 54586 words of memory out of 1500000
 4044 multiletter control sequences out of 10000+50000
 3640 words of font info for 14 fonts, out of 4000000 for 2000
 28 hyphenation exceptions out of 8191
 25i,5n,19p,202b,160s stack positions out of 5000i,500n,6000p,200000b,5000s

Output written on asytest.dvi (1 page, 440 bytes).


More information about the texhax mailing list