i installed asymptote.exe that i downloaded from the sourceforge homepage. i dont know what to do next.
i tried this code from a pdf. but its showing many errors. should i add path or something like that to make LaTeX detect that asymtote is there in my system.
Code: Select all
\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{asymptote}
\begin{document}
\begin{figure}
\centering
\begin{subfloatenv}{Square.}
\begin{asy}
size(3cm,0);
fill(unitsquare,red);
\end{asy}
\label{fig:shapes:square}
\end{subfloatenv}\hfill%
\begin{subfloatenv}{Triangle.}
\begin{asy}
size(3cm,0);
fill(2N--E--W--cycle,green);
\end{asy}
\label{fig:shapes:triangle}
\end{subfloatenv}\hfill%
\begin{subfloatenv}{Circle.}
\begin{asy}
size(3cm,0);
fill(unitcircle,blue);
\end{asy}
\label{fig:shapes:circle}
\end{subfloatenv}
\caption{Threegeometricshapes.}
\label{fig:shapes}
\end{figure}
\end{document}
regards,
sgp.