# [OS X TeX] Asymptote tutorial?

Sun Apr 21 00:12:22 EDT 2013

Some wonderful examples:

http://www.piprime.fr/files/res/geometry_en.pdf

http://www.piprime.fr/asymptote/

http://marris.org/asymptote/

D.

On Apr 20, 2013, at 10:08 AM, J. McKenzie Alexander wrote:

> Hello,
>
> Does anyone know of there any detailed tutorials for Asymptote available online? I've found the following web resource:
>
> http://www.artofproblemsolving.com/Wiki/index.php/Asymptote_%28Vector_Graphics_Language%29
>
> but, aside from that, all I have is the full Asymptote manual, which isn't particularly easy-going for a novice...
>
> The problem I'm trying to solve arises from the following diagram, which illustrates a neighborhood of a point on the unit 2-simplex. I'm trying to figure out how to transform the labels U and \sigma so that they are drawn in the plane of the simplex. (The way it's done now looks weird if you rotate the diagram to a different perspective in Adobe Reader.)
>
> \begin{asy}
> import three;
> import graph3;
> unitsize(1cm);
> size(4.5cm);
> currentprojection=orthographic(5, -2, 3);
> xaxis3( Label("$s_1$"), 0, 1.25, Arrow3);
> yaxis3( Label("$s_2$"), 0, 1.25, Arrow3);
> zaxis3( Label("$s_3$"), 0, 1.25, Arrow3);
>
> path3 simplex = (1,0,0)--(0,1,0)--(0,0,1)--cycle;
> draw( surface(simplex), gray+opacity(.5) );
> draw( simplex );
> draw( circle((.3,.4, .3), .2, (1,1,1)), linetype( new real[] {4,4}) );
> dot( (.3,.4,.3) );
> label("$\sigma$", (.3,.4,.3), S );
> label( "$U$", (.27,.27,.46), N );
> \end{asy}
>
> Cheers,
>
> Jason
>
> --
> Dr J. McKenzie Alexander
> Department of Philosophy, Logic and Scientific Method
> London School of Economics and Political Science
> Houghton Street, London WC2A 2AE
>
> Please access the attached hyperlink for an important electronic communications disclaimer: http://lse.ac.uk/emailDisclaimer
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>