summaryrefslogtreecommitdiff
path: root/Master/texmf/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-05-28 16:52:13 +0000
committerKarl Berry <karl@freefriends.org>2011-05-28 16:52:13 +0000
commitdc8edc4b8f4c2f75e5785045925cd7cd6e7df871 (patch)
tree76149c373d7e59beeea52aef0793bf9189cb7b9b /Master/texmf/doc
parentc96567a73dfa159f9672fa2819ce0b3cd198d764 (diff)
asymptote 2.10
git-svn-id: svn://tug.org/texlive/trunk@22643 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/doc')
-rw-r--r--Master/texmf/doc/asymptote/CAD.pdfbin67565 -> 67539 bytes
-rw-r--r--Master/texmf/doc/asymptote/TeXShopAndAsymptote.pdfbin0 -> 1762062 bytes
-rw-r--r--Master/texmf/doc/asymptote/asy-latex.pdfbin0 -> 195177 bytes
-rw-r--r--Master/texmf/doc/asymptote/asymptote.pdfbin1705483 -> 1236242 bytes
-rw-r--r--Master/texmf/doc/asymptote/examples/NURBScurve.asy2
-rw-r--r--Master/texmf/doc/asymptote/examples/NURBSsurface.asy11
-rw-r--r--Master/texmf/doc/asymptote/examples/SierpinskiSponge.asy119
-rw-r--r--Master/texmf/doc/asymptote/examples/diatom.asy2
-rw-r--r--Master/texmf/doc/asymptote/examples/extrudedcontour.asy3
-rw-r--r--Master/texmf/doc/asymptote/examples/filesurface.asy4
-rw-r--r--Master/texmf/doc/asymptote/examples/floatingdisk.asy10
-rw-r--r--Master/texmf/doc/asymptote/examples/interpolate1.asy29
-rw-r--r--Master/texmf/doc/asymptote/examples/intro.asy1
-rw-r--r--Master/texmf/doc/asymptote/examples/latexusage-1.asy54
-rw-r--r--Master/texmf/doc/asymptote/examples/latexusage-2.asy24
-rw-r--r--Master/texmf/doc/asymptote/examples/latexusage-3.asy39
-rw-r--r--Master/texmf/doc/asymptote/examples/latexusage.tex10
-rw-r--r--Master/texmf/doc/asymptote/examples/orthocenter.asy3
-rw-r--r--Master/texmf/doc/asymptote/examples/pdb.asy14
-rw-r--r--Master/texmf/doc/asymptote/examples/penfunctionimage.asy27
-rw-r--r--Master/texmf/doc/asymptote/examples/slidedemo.asy2
-rw-r--r--Master/texmf/doc/asymptote/examples/square.asy2
-rw-r--r--Master/texmf/doc/asymptote/examples/vertexshading.asy1
-rw-r--r--Master/texmf/doc/asymptote/examples/worksheet.asy3
-rw-r--r--Master/texmf/doc/asymptote/examples/worldmap.asy87
-rw-r--r--Master/texmf/doc/info/asy-faq.info5
-rw-r--r--Master/texmf/doc/info/asymptote.info836
-rw-r--r--Master/texmf/doc/man/man1/asy.1172
-rw-r--r--Master/texmf/doc/man/man1/asy.man1.pdfbin11385 -> 11358 bytes
-rw-r--r--Master/texmf/doc/man/man1/xasy.man1.pdfbin3841 -> 3837 bytes
30 files changed, 927 insertions, 533 deletions
diff --git a/Master/texmf/doc/asymptote/CAD.pdf b/Master/texmf/doc/asymptote/CAD.pdf
index 59b899d3388..afaad32261c 100644
--- a/Master/texmf/doc/asymptote/CAD.pdf
+++ b/Master/texmf/doc/asymptote/CAD.pdf
Binary files differ
diff --git a/Master/texmf/doc/asymptote/TeXShopAndAsymptote.pdf b/Master/texmf/doc/asymptote/TeXShopAndAsymptote.pdf
new file mode 100644
index 00000000000..5ae18cf90b3
--- /dev/null
+++ b/Master/texmf/doc/asymptote/TeXShopAndAsymptote.pdf
Binary files differ
diff --git a/Master/texmf/doc/asymptote/asy-latex.pdf b/Master/texmf/doc/asymptote/asy-latex.pdf
new file mode 100644
index 00000000000..c2be030ad3c
--- /dev/null
+++ b/Master/texmf/doc/asymptote/asy-latex.pdf
Binary files differ
diff --git a/Master/texmf/doc/asymptote/asymptote.pdf b/Master/texmf/doc/asymptote/asymptote.pdf
index d480d1c6d84..7cf4418bdc4 100644
--- a/Master/texmf/doc/asymptote/asymptote.pdf
+++ b/Master/texmf/doc/asymptote/asymptote.pdf
Binary files differ
diff --git a/Master/texmf/doc/asymptote/examples/NURBScurve.asy b/Master/texmf/doc/asymptote/examples/NURBScurve.asy
index b3b8c393b9e..c4da5c2ff5f 100644
--- a/Master/texmf/doc/asymptote/examples/NURBScurve.asy
+++ b/Master/texmf/doc/asymptote/examples/NURBScurve.asy
@@ -14,7 +14,7 @@ triple[] P={
(-31.5909,21.277,6.70051),
(-31.4284,25.4933,6.76745),
(-31.5413,30.3485,6.68777),
- (-31.4896,32.2839,6.58385),
+ (-31.4896,32.2839,6.58385)
};
draw(P,knot,green);
diff --git a/Master/texmf/doc/asymptote/examples/NURBSsurface.asy b/Master/texmf/doc/asymptote/examples/NURBSsurface.asy
index 878fd956393..32df6ff98ea 100644
--- a/Master/texmf/doc/asymptote/examples/NURBSsurface.asy
+++ b/Master/texmf/doc/asymptote/examples/NURBSsurface.asy
@@ -15,28 +15,28 @@ triple[][] P={{
(-31.5909,21.277,6.70051),
(-31.4284,25.4933,6.76745),
(-31.5413,30.3485,6.68777),
- (-31.4896,32.2839,6.58385),
+ (-31.4896,32.2839,6.58385)
},{
(-28.279,12.001,7.89625),
(-28.4187,14.7353,8.00954),
(-28.5633,21.277,8.22422),
(-28.4433,25.4933,8.31214),
(-28.5266,30.3485,8.20749),
- (-28.4885,32.2839,8.07099),
+ (-28.4885,32.2839,8.07099)
},{
(-20,12.001,10.0379),
(-20,14.7353,10.2001),
(-20,21.277,10.5076),
(-20,25.4933,10.6335),
(-20,30.3485,10.4836),
- (-20,32.2839,10.2881),
+ (-20,32.2839,10.2881)
},{
(-11.721,12.001,7.84024),
(-11.5813,14.7353,7.95269),
(-11.4367,21.277,8.16575),
(-11.5567,25.4933,8.25302),
(-11.4734,30.3485,8.14915),
- (-11.5115,32.2839,8.01367),
+ (-11.5115,32.2839,8.01367)
},{
(-8.79391,12.001,6.39481),
(-8.60483,14.7353,6.48022),
@@ -44,7 +44,8 @@ triple[][] P={{
(-8.57158,25.4933,6.70832),
(-8.45874,30.3485,6.62943),
(-8.51041,32.2839,6.52653)
- }};
+ }
+};
draw(P,uknot,vknot,new pen[] {red,green,blue,magenta});
diff --git a/Master/texmf/doc/asymptote/examples/SierpinskiSponge.asy b/Master/texmf/doc/asymptote/examples/SierpinskiSponge.asy
index 328447d4ac4..c398aa511c6 100644
--- a/Master/texmf/doc/asymptote/examples/SierpinskiSponge.asy
+++ b/Master/texmf/doc/asymptote/examples/SierpinskiSponge.asy
@@ -1,42 +1,99 @@
size(200);
import palette;
import three;
-
+
+currentprojection=orthographic(1,1,1);
+
triple[] M={
(-1,-1,-1),(0,-1,-1),(1,-1,-1),(1,0,-1),
(1,1,-1),(0,1,-1),(-1,1,-1),(-1,0,-1),
(-1,-1,0),(1,-1,0),(1,1,0),(-1,1,0),
- (-1,-1,1),(0,-1,1),(1,-1,1),(1,0,1),
- (1,1,1),(0,1,1),(-1,1,1),(-1,0,1)
+ (-1,-1,1),(0,-1,1),(1,-1,1),(1,0,1),(1,1,1),(0,1,1),(-1,1,1),(-1,0,1)
};
-
-triple[] K={
- (1,-1,-1),(1,0,-1),(1,1,-1),(1,1,0),
- (1,1,1),(1,0,1),(1,-1,1),(1,-1,0),
- (0,0,-1),(0,0,1),(0,-1,0),(0,1,0)
+
+surface[] Squares={
+ surface((1,-1,-1)--(1,1,-1)--(1,1,1)--(1,-1,1)--cycle),
+ surface((-1,-1,-1)--(-1,1,-1)--(-1,1,1)--(-1,-1,1)--cycle),
+ surface((1,1,-1)--(-1,1,-1)--(-1,1,1)--(1,1,1)--cycle),
+ surface((1,-1,-1)--(-1,-1,-1)--(-1,-1,1)--(1,-1,1)--cycle),
+ surface((1,-1,1)--(1,1,1)--(-1,1,1)--(-1,-1,1)--cycle),
+ surface((1,-1,-1)--(1,1,-1)--(-1,1,-1)--(-1,-1,-1)--cycle),
};
-
-surface s;
-
-void recur(triple p, real u, int level) {
- if(level > 1 )
- for(triple V : M)
- recur(p+u*V,u/3,level-1);
- else
- for(triple V : K) {
- transform3 T=shift(p)*scale3(u)*shift(V)*scale3(0.5);
- surface t=T*surface((1,-1,-1)--(1,1,-1)--(1,1,1)--(1,-1,1)--cycle);
- s.append(t);
- s.append(scale3(-1)*t);
+
+int[][] SquaresPoints={
+ {2,3,4,10,16,15,14,9},
+ {0,7,6,11,18,19,12,8},
+ {4,5,6,11,18,17,16,10},
+ {2,1,0,8,12,13,14,9},
+ {12,13,14,15,16,17,18,19},
+ {0,1,2,3,4,5,6,7}
+};
+
+int[][] index={
+ {0,2,4},{0,1},{1,2,4},{2,3},{1,3,4},{0,1},{0,3,4},{2,3},
+ {4,5},{4,5},{4,5},{4,5},
+ {0,2,5},{0,1},{1,2,5},{2,3},{1,3,5},{0,1},{0,3,5},{2,3}
+};
+
+int[] Sponge0=array(n=6,value=1);
+
+int[] eraseFaces(int n, int[] Sponge0) {
+ int[] temp=copy(Sponge0);
+ for(int k : index[n]) {
+ temp[k]=0;
+ }
+ return temp;
+}
+
+int[][] Sponge1=new int[20][];
+for(int n=0; n < 20; ++n) {
+ Sponge1[n]=eraseFaces(n,Sponge0);
+}
+
+int[][] eraseFaces(int n, int[][] Sponge1) {
+ int[][] temp=copy(Sponge1);
+ for(int k : index[n])
+ for(int n1 : SquaresPoints[k])
+ temp[n1][k]=0;
+ return temp;
+}
+
+int[][][] Sponge2=new int[20][][];
+for(int n=0; n < 20; ++n)
+ Sponge2[n]=eraseFaces(n,Sponge1);
+
+int[][][] eraseFaces(int n, int[][][] Sponge2) {
+ int[][][] temp=copy(Sponge2);
+ for(int k : index[n])
+ for(int n2: SquaresPoints[k])
+ for(int n1: SquaresPoints[k])
+ temp[n2][n1][k]=0;
+ return temp;
+}
+
+int[][][][] Sponge3=new int[20][][][];
+for(int n=0; n < 20; ++n)
+ Sponge3[n]=eraseFaces(n,Sponge2);
+
+surface s3;
+real u=2/3;
+for(int n3=0; n3 < 20; ++n3) {
+ surface s2;
+ for(int n2=0; n2 < 20; ++n2) {
+ surface s1;
+ for(int n1=0; n1 < 20; ++n1) {
+ for(int k=0; k < 6; ++k){
+ transform3 T=scale3(u)*shift(M[n1])*scale3(0.5);
+ if(Sponge3[n3][n2][n1][k] > 0) {
+ s1.append(T*Squares[k]);
+ }
+ }
}
+ transform3 T=scale3(u)*shift(M[n2])*scale3(0.5);
+ s2.append(T*s1);
+ }
+ transform3 T=scale3(u)*shift(M[n3])*scale3(0.5);
+ s3.append(T*s2);
}
-
-recur((0,0,0),1/3,3);
-
-surface sf;
-sf.append(s);
-sf.append(rotate(90,Y)*s);
-sf.append(rotate(90,Z)*s);
-sf.colors(palette(sf.map(abs),Rainbow()));
-
-draw(sf,render(compression=Low,merge=true));
+s3.colors(palette(s3.map(abs),Rainbow()));
+draw(s3);
diff --git a/Master/texmf/doc/asymptote/examples/diatom.asy b/Master/texmf/doc/asymptote/examples/diatom.asy
index 2ded75bf0ea..23673dcadf5 100644
--- a/Master/texmf/doc/asymptote/examples/diatom.asy
+++ b/Master/texmf/doc/asymptote/examples/diatom.asy
@@ -115,7 +115,7 @@ for(int taxon=0; taxon < n; ++taxon) {
if(taxon == final) yaxis(pic,Right,LeftTicks("%",0,10),above=true);
add(shift(location,0)*pic);
- location += pic.userMax.x;
+ location += pic.userMax().x;
}
add(new void(frame f, transform) {
diff --git a/Master/texmf/doc/asymptote/examples/extrudedcontour.asy b/Master/texmf/doc/asymptote/examples/extrudedcontour.asy
index 7b2f67459ce..dabd56b9298 100644
--- a/Master/texmf/doc/asymptote/examples/extrudedcontour.asy
+++ b/Master/texmf/doc/asymptote/examples/extrudedcontour.asy
@@ -1,6 +1,9 @@
import contour;
import palette;
import graph3;
+
+defaultrender.merge=true;
+
currentprojection=orthographic(25,10,10);
size(0,12cm);
real a=3;
diff --git a/Master/texmf/doc/asymptote/examples/filesurface.asy b/Master/texmf/doc/asymptote/examples/filesurface.asy
index 2a93c96ec19..eef9d37f494 100644
--- a/Master/texmf/doc/asymptote/examples/filesurface.asy
+++ b/Master/texmf/doc/asymptote/examples/filesurface.asy
@@ -23,8 +23,8 @@ s.colors(palette(s.map(new real(triple v) {return find(level >= v.z);}),
draw(s,meshpen=thick(),render(merge=true));
-triple m=currentpicture.userMin;
-triple M=currentpicture.userMax;
+triple m=currentpicture.userMin();
+triple M=currentpicture.userMax();
triple target=0.5*(m+M);
xaxis3("$x$",Bounds,InTicks);
diff --git a/Master/texmf/doc/asymptote/examples/floatingdisk.asy b/Master/texmf/doc/asymptote/examples/floatingdisk.asy
index 2e99ec9c2c1..be8b339767d 100644
--- a/Master/texmf/doc/asymptote/examples/floatingdisk.asy
+++ b/Master/texmf/doc/asymptote/examples/floatingdisk.asy
@@ -9,9 +9,11 @@ real l=.7;
pair pA=(-l,0);
pair pB=(l,0);
-
-path waterline=tremble(addnodes(pA..pB,1),angle=10,frequency=0.1,random=50);
-path disk=shift(0,-d)*(scale(R)*unitcircle);
+
+tremble tr=tremble(angle=10,frequency=0.1,random=50,fuzz=1);
+path waterline=tr.deform(pA..pB);
+
+path disk=shift(0,-d)*scale(R)*unitcircle;
path water=waterline--(l,-h)--(-l,-h)--(-l,0)--cycle;
path container=(l,1/7)--(l,-h)--(-l,-h)--(-l,1/7);
@@ -21,4 +23,4 @@ draw(waterline);
draw(container,linewidth(1.5));
-shipout(bbox(2mm,Fill(white)));
+shipout(bbox(2mm));
diff --git a/Master/texmf/doc/asymptote/examples/interpolate1.asy b/Master/texmf/doc/asymptote/examples/interpolate1.asy
index 9f8367a52a4..8845c8dd2f8 100644
--- a/Master/texmf/doc/asymptote/examples/interpolate1.asy
+++ b/Master/texmf/doc/asymptote/examples/interpolate1.asy
@@ -7,8 +7,6 @@ import graph;
// Test 1: The Runge effect in the Lagrange interpolation of 1/(x^2+1).
unitsize(2cm);
-xlimits(-5,5);
-ylimits(-1,1,Crop);
real f(real x) {return(1/(x^2+1));}
real df(real x) {return(-2*x/(x^2+1)^2);}
@@ -26,9 +24,14 @@ fhorner p=fhorner(h);
draw(graph(p,a,b,n=500),"$x\longmapsto{}L_{"+string(n)+"}$");
draw(graph(f,a,b),red,"$x\longmapsto{}\frac{1}{x^2+1}$");
+xlimits(-5,5);
+ylimits(-1,1,Crop);
+
xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks);
+
attach(legend(),point(10S),30S);
+
shipout("runge1");
erase();
@@ -52,11 +55,13 @@ draw(graph(p,a,b,n=500),"$x\longmapsto{}H_{"+string(n)+"}$");
draw(graph(f,a,b),red,"$x\longmapsto{}\frac{1}{x^2+1}$");
unitsize(2cm);
+
xlimits(-5,5);
ylimits(-1,5,Crop);
xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks);
+
attach(legend(),point(10S),30S);
shipout("runge2");
@@ -86,7 +91,9 @@ draw(graph(f,a,b),red,"$x\longmapsto{}\cos(x)$");
xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks);
+
attach(legend(),point(10S),30S);
+
shipout("runge3");
erase();
@@ -110,9 +117,12 @@ fhorner p=fhorner(h);
draw(graph(p,a,b,n=500),"$x\longmapsto{}L_{"+string(n)+"}$");
draw(graph(f,a,b),red,"$x\longmapsto{}\cos(x)$");
+
ylimits(-1,5,Crop);
+
xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks);
+
attach(legend(),point(10S),30S);
shipout("runge4");
@@ -122,8 +132,6 @@ erase();
// Test 5: The situation is much better using Tchebychev points.
unitsize(2cm);
-xlimits(-5,5);
-ylimits(-1,2,Crop);
real f(real x) {return(1/(x^2+1));}
real df(real x) {return(-2*x/(x^2+1)^2);}
@@ -144,6 +152,9 @@ fhorner p=fhorner(h);
draw(graph(p,a,b,n=500),"$x\longmapsto{}T_{"+string(n)+"}$");
draw(graph(f,a,b),red,"$x\longmapsto{}\frac{1}{x^2+1}$");
+xlimits(-5,5);
+ylimits(-1,2,Crop);
+
xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks);
attach(legend(),point(10S),30S);
@@ -155,8 +166,6 @@ erase();
// Test 6: Adding a few more Tchebychev points yields a very good result.
unitsize(2cm);
-xlimits(-5,5);
-ylimits(-1,2,Crop);
real f(real x) {return(1/(x^2+1));}
real df(real x) {return(-2*x/(x^2+1)^2);}
@@ -175,6 +184,9 @@ fhorner p=fhorner(h);
draw(graph(p,a,b,n=500),"$x\longmapsto{}T_{"+string(n)+"}$");
draw(graph(f,a,b),red,"$x\longmapsto{}\frac{1}{x^2+1}$");
+xlimits(-5,5);
+ylimits(-1,2,Crop);
+
xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks);
attach(legend(),point(10S),30S);
@@ -187,8 +199,6 @@ erase();
// Test 7: Another Tchebychev example.
unitsize(2cm);
-xlimits(-2,2);
-ylimits(-0.5,2,Crop);
real f(real x) {return(sqrt(abs(x-1)));}
@@ -206,6 +216,9 @@ fhorner p=fhorner(h);
draw(graph(p,a,b,n=500),"$x\longmapsto{}T_{"+string(n)+"}$");
draw(graph(f,a,b),red,"$x\longmapsto{}\sqrt{|x-1|}$");
+xlimits(-2,2);
+ylimits(-0.5,2,Crop);
+
xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks);
attach(legend(),point(10S),30S);
diff --git a/Master/texmf/doc/asymptote/examples/intro.asy b/Master/texmf/doc/asymptote/examples/intro.asy
index 5d7ce12b184..fcafefb32a6 100644
--- a/Master/texmf/doc/asymptote/examples/intro.asy
+++ b/Master/texmf/doc/asymptote/examples/intro.asy
@@ -50,7 +50,6 @@ item("4000 downloads/month from primary\hfill\\
{\tt asymptote.sourceforge.net} site alone.");
item("80\ 000 lines of low-level C++ code.");
item("36\ 000 lines of high-level Asymptote code.");
-item("Latest stable release: Version 2.00 (LGPL).");
if(long) {
title("Vector Graphics");
diff --git a/Master/texmf/doc/asymptote/examples/latexusage-1.asy b/Master/texmf/doc/asymptote/examples/latexusage-1.asy
new file mode 100644
index 00000000000..b77279c6c47
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/latexusage-1.asy
@@ -0,0 +1,54 @@
+if(!settings.multipleView) settings.batchView=false;
+defaultfilename="latexusage-1";
+if(settings.render < 0) settings.render=4;
+settings.outformat="";
+settings.inlineimage=true;
+settings.embed=true;
+settings.toolbar=false;
+viewportmargin=(2,2);
+
+// Global Asymptote definitions can be put here.
+import three;
+usepackage("bm");
+texpreamble("\def\V#1{\bm{#1}}");
+// One can globally override the default toolbar settings here:
+// settings.toolbar=true;
+
+size(4cm,0);
+pen colour1=red;
+pen colour2=green;
+
+pair z0=(0,0);
+pair z1=(-1,0);
+pair z2=(1,0);
+real r=1.5;
+path c1=circle(z1,r);
+path c2=circle(z2,r);
+fill(c1,colour1);
+fill(c2,colour2);
+
+picture intersection=new picture;
+fill(intersection,c1,colour1+colour2);
+clip(intersection,c2);
+
+add(intersection);
+
+draw(c1);
+draw(c2);
+
+//draw("$\A$",box,z1); // Requires [inline] package option.
+//draw(Label("$\B$","$B$"),box,z2); // Requires [inline] package option.
+draw("$A$",box,z1);
+draw("$\V{B}$",box,z2);
+
+pair z=(0,-2);
+real m=3;
+margin BigMargin=Margin(0,m*dot(unit(z1-z),unit(z0-z)));
+
+draw(Label("$A\cap B$",0),conj(z)--z0,Arrow,BigMargin);
+draw(Label("$A\cup B$",0),z--z0,Arrow,BigMargin);
+draw(z--z1,Arrow,Margin(0,m));
+draw(z--z2,Arrow,Margin(0,m));
+
+shipout(bbox(0.25cm));
+viewportsize=(390.0pt,0);
diff --git a/Master/texmf/doc/asymptote/examples/latexusage-2.asy b/Master/texmf/doc/asymptote/examples/latexusage-2.asy
new file mode 100644
index 00000000000..49c6458419c
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/latexusage-2.asy
@@ -0,0 +1,24 @@
+if(!settings.multipleView) settings.batchView=false;
+settings.inlinetex=true;
+deletepreamble();
+defaultfilename="latexusage-2";
+if(settings.render < 0) settings.render=4;
+settings.outformat="";
+settings.inlineimage=true;
+settings.embed=true;
+settings.toolbar=false;
+viewportmargin=(2,2);
+
+// Global Asymptote definitions can be put here.
+import three;
+usepackage("bm");
+texpreamble("\def\V#1{\bm{#1}}");
+// One can globally override the default toolbar settings here:
+// settings.toolbar=true;
+
+
+currentprojection=orthographic(5,4,2);
+draw(unitcube,blue);
+label("$V-E+F=2$",(0,1,0.5),3Y,blue+fontsize(17pt));
+size(0,113.81102pt,keepAspect=true);
+viewportsize=(390.0pt,0);
diff --git a/Master/texmf/doc/asymptote/examples/latexusage-3.asy b/Master/texmf/doc/asymptote/examples/latexusage-3.asy
new file mode 100644
index 00000000000..00173cb17ef
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/latexusage-3.asy
@@ -0,0 +1,39 @@
+if(!settings.multipleView) settings.batchView=false;
+settings.inlinetex=true;
+deletepreamble();
+defaultfilename="latexusage-3";
+if(settings.render < 0) settings.render=4;
+settings.outformat="";
+settings.inlineimage=true;
+settings.embed=true;
+settings.toolbar=false;
+viewportmargin=(2,2);
+
+// Global Asymptote definitions can be put here.
+import three;
+usepackage("bm");
+texpreamble("\def\V#1{\bm{#1}}");
+// One can globally override the default toolbar settings here:
+// settings.toolbar=true;
+
+
+pair z0=(0,0);
+pair z1=(2,0);
+pair z2=(5,0);
+pair zf=z1+0.75*(z2-z1);
+
+draw(z1--z2);
+dot(z1,red+0.15cm);
+dot(z2,darkgreen+0.3cm);
+label("$m$",z1,1.2N,red);
+label("$M$",z2,1.5N,darkgreen);
+label("$\hat{\ }$",zf,0.2*S,fontsize(24pt)+blue);
+
+pair s=-0.2*I;
+draw("$x$",z0+s--z1+s,N,red,Arrows,Bars,PenMargins);
+s=-0.5*I;
+draw("$\bar{x}$",z0+s--zf+s,blue,Arrows,Bars,PenMargins);
+s=-0.95*I;
+draw("$X$",z0+s--z2+s,darkgreen,Arrows,Bars,PenMargins);
+size(390.0pt,0,keepAspect=true);
+viewportsize=(390.0pt,0);
diff --git a/Master/texmf/doc/asymptote/examples/latexusage.tex b/Master/texmf/doc/asymptote/examples/latexusage.tex
index ae555a476bd..f3c858348b9 100644
--- a/Master/texmf/doc/asymptote/examples/latexusage.tex
+++ b/Master/texmf/doc/asymptote/examples/latexusage.tex
@@ -9,14 +9,14 @@
% Use this form with latex or pdflatex to create PDF attachments by default:
%\usepackage[attach]{asymptote}
-% Enable this line to support PDF hyperlinks:
-%\usepackage{hyperref}\hypersetup{setpagesize=false,unicode}
-
% Enable this line to support the attach option:
%\usepackage[dvips]{attachfile2}
\begin{document}
+% Optional subdirectory for asy files (no spaces):
+\def\asydir{}
+
\begin{asydef}
// Global Asymptote definitions can be put here.
import three;
@@ -81,8 +81,8 @@ and height to \LaTeX\ explicitly. This 3D example can be viewed
interactively either with Adobe Reader or Asymptote's fast OpenGL-based
renderer. To support {\tt latexmk}, 3D figures should specify
\verb+inline=true+. It is sometimes desirable to embed 3D files as annotated
-attachments; this requires the optional \verb+\usepackage{attachfile2}+
-package and the \verb+attach=true+ option:
+attachments; this requires the \verb+attach=true+ option as well as the
+\verb+attachfile2+ \LaTeX\ package.
\begin{center}
\begin{asy}[height=4cm,inline=true,attach=false]
currentprojection=orthographic(5,4,2);
diff --git a/Master/texmf/doc/asymptote/examples/orthocenter.asy b/Master/texmf/doc/asymptote/examples/orthocenter.asy
index 73dfde51954..5c6807b4f25 100644
--- a/Master/texmf/doc/asymptote/examples/orthocenter.asy
+++ b/Master/texmf/doc/asymptote/examples/orthocenter.asy
@@ -37,5 +37,4 @@ dot("$A'$",Ap,dir(A--Ap),red);
dot("$B'$",Bp,dir(B--Bp),red);
dot("$C'$",Cp,dir(C--Cp),red);
-label(graphic("piicon.eps","width=2.5cm"),Ap,5ENE,red);
-
+label(graphic("piicon","width=2.5cm"),Ap,5ENE,red);
diff --git a/Master/texmf/doc/asymptote/examples/pdb.asy b/Master/texmf/doc/asymptote/examples/pdb.asy
index b4f9175ae14..b3b954c8c6a 100644
--- a/Master/texmf/doc/asymptote/examples/pdb.asy
+++ b/Master/texmf/doc/asymptote/examples/pdb.asy
@@ -11,6 +11,8 @@ currentlight=White;
defaultrender.merge=true; // Fast low-quality rendering
//defaultrender.merge=false; // Slow high-quality rendering
+bool pixel=false; // Set to true to draw dots as pixels.
+real width=10*linewidth(currentpen);
size(200);
currentprojection=perspective(30,30,15);
@@ -126,7 +128,10 @@ for(chain c : chains) {
for(int i=0; i < c.a.length-1; ++i)
draw(c.a[i].v--c.a[i+1].v,chainpen,currentlight);
for(atom a : c.a)
- dot(a.v,color(a.name),currentlight);
+ if(pixel)
+ pixel(a.v,color(a.name),width);
+ else
+ dot(a.v,color(a.name),currentlight);
natoms += c.a.length;
}
endgroup3();
@@ -136,7 +141,10 @@ write("Number of hetero atoms: ",atoms.length);
begingroup3("hetero");
for(atom h : atoms)
- dot(h.v,color(h.name),currentlight);
+ if(pixel)
+ pixel(h.v,color(h.name),width);
+ else
+ dot(h.v,color(h.name),currentlight);
endgroup3();
write("Number of hetero bonds: ",bonds.length);
@@ -154,7 +162,7 @@ string viewfilename=prefix+".views";
if(!error(input(viewfilename,check=false)))
options="3Dviews2="+viewfilename;
-if(getviews) {
+if(getviews && prc()) {
picture pic;
add(pic,embed("label",currentpicture,options=options),(0,0),N);
label(pic,cameralink("label"),(0,0),S,fontsize(12pt));
diff --git a/Master/texmf/doc/asymptote/examples/penfunctionimage.asy b/Master/texmf/doc/asymptote/examples/penfunctionimage.asy
new file mode 100644
index 00000000000..38951e550d5
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/penfunctionimage.asy
@@ -0,0 +1,27 @@
+import palette;
+
+size(200);
+
+real fracpart(real x) {return (x-floor(x));}
+
+pair pws(pair z) {
+ pair w=(z+exp(pi*I/5)/0.9)/(1+z/0.9*exp(-pi*I/5));
+ return exp(w)*(w^3-0.5*I);
+}
+
+int N=512;
+
+pair a=(-1,-1);
+pair b=(0.5,0.5);
+real dx=(b-a).x/N;
+real dy=(b-a).y/N;
+
+pen f(int u, int v) {
+ pair z=a+(u*dx,v*dy);
+ pair w=pws(z);
+ real phase=degrees(w,warn=false);
+ real modulus=w == 0 ? 0: fracpart(log(abs(w)));
+ return hsv(phase,1,sqrt(modulus));
+}
+
+image(f,N,N,(0,0),(300,300),antialias=true);
diff --git a/Master/texmf/doc/asymptote/examples/slidedemo.asy b/Master/texmf/doc/asymptote/examples/slidedemo.asy
index 7a753a54d61..0cbd15af741 100644
--- a/Master/texmf/doc/asymptote/examples/slidedemo.asy
+++ b/Master/texmf/doc/asymptote/examples/slidedemo.asy
@@ -1,6 +1,6 @@
// Slide demo.
// Command-line options to enable stepping and/or reverse video:
-// asy [-u stepping=true] [-u reverse=true] slidedemo
+// asy [-u stepping=true] [-u reverse=true] [-u itemstep=true] slidedemo
orientation=Landscape;
diff --git a/Master/texmf/doc/asymptote/examples/square.asy b/Master/texmf/doc/asymptote/examples/square.asy
index 1bff4e438f5..6fd9d2314d7 100644
--- a/Master/texmf/doc/asymptote/examples/square.asy
+++ b/Master/texmf/doc/asymptote/examples/square.asy
@@ -1,2 +1,2 @@
-size(100,100);
+size(3cm);
draw((0,0)--(1,0)--(1,1)--(0,1)--cycle);
diff --git a/Master/texmf/doc/asymptote/examples/vertexshading.asy b/Master/texmf/doc/asymptote/examples/vertexshading.asy
index 284ca3230de..ea97b98daf3 100644
--- a/Master/texmf/doc/asymptote/examples/vertexshading.asy
+++ b/Master/texmf/doc/asymptote/examples/vertexshading.asy
@@ -1,5 +1,4 @@
import three;
-//settings.prc=false;
size(200);
diff --git a/Master/texmf/doc/asymptote/examples/worksheet.asy b/Master/texmf/doc/asymptote/examples/worksheet.asy
index f26797acabb..9894e5802b8 100644
--- a/Master/texmf/doc/asymptote/examples/worksheet.asy
+++ b/Master/texmf/doc/asymptote/examples/worksheet.asy
@@ -19,7 +19,7 @@ draw(f,z0--z0+50mm);
add(pic,f,z,Align);
z += step;
-for(int i=1; i <= 14; ++i) {
+for(int i=1; i <= 15; ++i) {
draw(pic,z--z+length);
z += step;
draw(pic,z--z+length,dashed+gray);
@@ -36,6 +36,7 @@ for(int i=1; i <= 14; ++i) {
}
else if(i == 12) label(1);
else if(i == 13) label(2);
+ else if(i == 14) label(3);
}
draw(pic,z--z+length);
diff --git a/Master/texmf/doc/asymptote/examples/worldmap.asy b/Master/texmf/doc/asymptote/examples/worldmap.asy
new file mode 100644
index 00000000000..59479fffbe2
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/worldmap.asy
@@ -0,0 +1,87 @@
+settings.outformat="pdf";
+size(20cm);
+
+// The required data file is available here:
+// http://www.uni-graz.at/~schwaige/asymptote/worldmap.dat
+// This data was originally obtained from
+// http://www.ngdc.noaa.gov/mgg_coastline/mapit.jsp
+
+real findtheta(real phi, real epsilon=realEpsilon) {
+ // Determine for given phi the unique solution -pi/2 <= theta <= pi/2 off
+ // 2*theta+sin(2*theta)=pi*sin(phi)
+ // in the non-trivial cases by Newton iteration;
+ // theoretically the initial guess pi*sin(phi)/4 always works.
+ real nwtn(real x, real y) {return x-(2x+sin(2x)-y)/(2+2*cos(2x));};
+ real y=pi*sin(phi);
+ if(y == 0) return 0.0;
+ if(abs(y) == 1) return pi/2;
+ real startv=y/4;
+ real endv=nwtn(startv,y);
+ if(epsilon < 500*realEpsilon) epsilon=500*realEpsilon;
+ while(abs(endv-startv) > epsilon) {startv=endv; endv=nwtn(startv,y);};
+ return endv;
+}
+
+pair mollweide(real lambda, real phi, real lambda0=0){
+ // calculate the Mollweide projection centered at lambda0 for the point
+ // with coordinates(phi,lambda)
+ static real c1=2*sqrt(2)/pi;
+ static real c2=sqrt(2);
+ real theta=findtheta(phi);
+ return(c1*(lambda-lambda0)*cos(theta), c2*sin(theta));
+}
+
+guide gfrompairs(pair[] data){
+ guide gtmp;
+ for(int i=0; i < data.length; ++i) {
+ pair tmp=mollweide(radians(data[i].y),radians(data[i].x));
+ gtmp=gtmp--tmp;
+ }
+ return gtmp;
+}
+
+string datafile="worldmap.dat";
+
+file in=input(datafile,comment="/").line();
+// new commentchar since "#" is contained in the file
+pair[][] arrarrpair=new pair[][] ;
+int cnt=-1;
+bool newseg=false;
+while(true) {
+ if(eof(in)) break;
+ string str=in;
+ string[] spstr=split(str,"");
+
+ if(spstr[0] == "#") {++cnt; arrarrpair[cnt]=new pair[] ; newseg=true;}
+ if(spstr[0] != "#" && newseg) {
+ string[] spstr1=split(str,'\t'); // separator is TAB not SPACE
+ pair tmp=((real) spstr1[1],(real) spstr1[0]);
+ arrarrpair[cnt].push(tmp);
+ }
+}
+
+for(int i=0; i < arrarrpair.length; ++i)
+ draw(gfrompairs(arrarrpair[i]),1bp+black);
+
+// lines of longitude and latitude
+pair[] constlong(real lambda, int np=100) {
+ pair[] tmp;
+ for(int i=0; i <= np; ++i) tmp.push((-90+i*180/np,lambda));
+ return tmp;
+}
+
+pair[] constlat(real phi, int np=100) {
+ pair[] tmp;
+ for(int i=0; i <= 2*np; ++i) tmp.push((phi,-180+i*180/np));
+ return tmp;
+}
+
+for(int j=1; j <= 5; ++j) draw(gfrompairs(constlong(-180+j/6*360)),white);
+draw(gfrompairs(constlong(-180)),1.5bp+white);
+draw(gfrompairs(constlong(180)),1.5bp+white);
+for(int j=0; j <= 12; ++j) draw(gfrompairs(constlat(-90+j/6*180)),white);
+//draw(gfrompairs(constlong(10)),dotted);
+
+close(in);
+shipout(bbox(1mm,darkblue,Fill(lightblue)), view=true);
+
diff --git a/Master/texmf/doc/info/asy-faq.info b/Master/texmf/doc/info/asy-faq.info
index 059fa578d1a..6fc4b7ce85c 100644
--- a/Master/texmf/doc/info/asy-faq.info
+++ b/Master/texmf/doc/info/asy-faq.info
@@ -1,15 +1,16 @@
Info file: asy-faq.info, -*-Text-*-
produced by bfnnconv.pl from the Bizarre Format With No Name.
+INFO-DIR-SECTION Languages
START-INFO-DIR-ENTRY
* asymptote FAQ: (asy-faq). Asymptote Frequently Asked Questions.
END-INFO-DIR-ENTRY

-File: $prefix.info, Node: Top, Next: Question 1.1, Up: (dir)
+File: asy-faq.info, Node: Top, Next: Question 1.1, Up: (dir)
ASYMPTOTE FREQUENTLY ASKED QUESTIONS
- 11 Jul 2010
+ 26 May 2011
This is the list of Frequently Asked Questions about Asymptote (asy).
diff --git a/Master/texmf/doc/info/asymptote.info b/Master/texmf/doc/info/asymptote.info
index e72ff70242c..55fbad3858a 100644
--- a/Master/texmf/doc/info/asymptote.info
+++ b/Master/texmf/doc/info/asymptote.info
@@ -1,7 +1,7 @@
This is asymptote.info, produced by makeinfo version 4.13 from
../asymptote.texi.
-This file documents `Asymptote', version 2.02.
+This file documents `Asymptote', version 2.10.
`http://asymptote.sourceforge.net'
@@ -23,7 +23,7 @@ File: asymptote.info, Node: Top, Next: Description, Up: (dir)
Asymptote
*********
-This file documents `Asymptote', version 2.02.
+This file documents `Asymptote', version 2.10.
`http://asymptote.sourceforge.net'
@@ -347,10 +347,10 @@ file::).
`http://www.imagemagick.org/script/binary-releases.php'
-is required to support output formats other than EPS and PDF (*note
-convert::). The `Python' interpreter from `http://www.python.org' is
-only required if you wish to try out the graphical user interface
-(*note GUI::).
+is required to support output formats other than EPS, PDF, SVG, and PNG
+(*note convert::). The `Python' interpreter from
+`http://www.python.org' is only required if you wish to try out the
+graphical user interface (*note GUI::).
Example code will be installed by default in the `examples'
subdirectory of the installation directory (by default, `C:\Program
@@ -454,7 +454,7 @@ ASYMPTOTE_PSVIEWER="C:\Program Files\Ghostgum\gsview\gsview32.exe";
2. Right-click on `My Computer';
- 3. Choose `Properties' from the popup menu;
+ 3. Choose `View system information';
4. Click the `Advanced' tab;
@@ -655,12 +655,14 @@ Desktop `asy' icon (or make `Asymptote' the default application for the
extension `asy').
This method, known as _batch mode_, outputs a `PostScript' file
-`test.eps'. The `-V' option opens up a `PostScript' viewer window so
-you can immediately view the result:
+`test.eps'. If you prefer PDF output, use the command line
+asy -V -f pdf test
+ In either case, the `-V' option opens up a viewer window so you can
+immediately view the result:
-The `--' connector joins the two points `(0,0)' and `(100,100)' with a
-line segment.
+Here, the `--' connector joins the two points `(0,0)' and `(100,100)'
+with a line segment.
3.2 Drawing in interactive mode
===============================
@@ -711,7 +713,7 @@ draw((0,0)--(2,1),Arrow);
To connect several points and create a cyclic path, use the `cycle'
keyword:
-size(100,100);
+size(3cm);
draw((0,0)--(1,0)--(1,1)--(0,1)--cycle);
@@ -2893,7 +2895,9 @@ existing data will be preserved, the position will be set to the
end-of-file, and both reading and writing operations will be enabled.
For security reasons, writing to files in directories other than the
current directory is allowed only if the `-globalwrite' (or `-nosafe')
-command-line option is specified.
+command-line option is specified. The function `string mktemp(string
+s)' may be used to create and return the name of a unique temporary
+file in the current directory based on the string `s'.
There are two special files: `stdin', which reads from the keyboard,
and `stdout', which writes to the terminal. The implicit initializer
@@ -2914,8 +2918,10 @@ written before the data `x'. An arbitrary number of data values may be
listed when writing scalars or one-dimensional arrays. The `suffix' may
be one of the following: `none' (do nothing), `flush' (output buffered
data), `endl' (terminate with a newline and flush), `newl' (terminate
-with a newline), `tab' (terminate with a tab), or `comma' (terminate
-with a comma). Here are some simple examples of data output:
+with a newline), `DOSendl' (terminate with a DOS newline and flush),
+`DOSnewl' (terminate with a DOS newline), `tab' (terminate with a tab),
+or `comma' (terminate with a comma). Here are some simple examples of
+data output:
file fout=output("test.txt");
write(fout,1); // Writes "1"
write(fout); // Writes a new line
@@ -3654,6 +3660,13 @@ x=3;
write(f(4,3));
and outputs 43.
+ Parameters can be specified as "keyword-only" by putting `keyword'
+immediately before the parameter name, as in `int f(int keyword x)' or
+`int f(int keyword x=77)'. This forces the caller of the function to
+use a named argument to give a value for this parameter. That is,
+`f(x=42)' is legal, but `f(25)' is not. Keyword-only parameters must
+be listed after normal parameters in a function definition.
+
As a technical detail, we point out that, since variables of the same
name but different signatures are allowed in the same scope, the code
int f(int x, int x()) {
@@ -3721,6 +3734,15 @@ subtract(... new int[] {10, 1, 2});
ignored for rest formals and the rest argument is not bound to a
keyword.
+ In some cases, keyword-only parameters are helpful to avoid
+arguments intended for the rest parameter to be assigned to other
+parameters. For example, here the use of `keyword' is to avoid
+`pnorm(1.0,2.0,0.3)' matching `1.0' to `p'.
+real pnorm(real keyword p=2.0 ... real[] v)
+{
+ return sum(v^p)^(1/p);
+}
+
The overloading resolution in `Asymptote' is similar to the function
matching rules used in C++. Every argument match is given a score.
Exact matches score better than matches with casting, and matches with
@@ -3961,9 +3983,10 @@ of type `T[]'.
arrays).
`T[] array(int n, T value, int depth=intMax)'
- returns an array consisting of `n' deep copies of a 0, 1, or 2
- dimensional array `T value'. If `depth' is specified, this deep
- copying recurses to no more than the number of levels specified.
+ returns an array consisting of `n' copies of `value'. If `value'
+ is itself an array, a deep copy of `value' is made for each entry.
+ If `depth' is specified, this deep copying only recurses to the
+ specified number of levels.
`int[] sequence(int n)'
if `n >= 1' returns the array `{0,1,...,n-1}' (otherwise returns a
@@ -4642,15 +4665,14 @@ File: asymptote.info, Node: LaTeX usage, Next: Base modules, Prev: Programmin
***************
`Asymptote' comes with a convenient `LaTeX' style file `asymptote.sty'
-(version 1.15 or later) that makes `LaTeX' `Asymptote'-aware. Entering
-`Asymptote' code directly into the `LaTeX' source file, at the point
-where it is needed, keeps figures organized and avoids the need to
-invent new file names for each figure. Simply add the line
-`\usepackage{asymptote}' at the beginning of your file and enclose your
-`Asymptote' code within a `\begin{asy}...\end{asy}' environment. As
-with the `LaTeX' `comment' environment, the `\end{asy}' command must
-appear on a line by itself, with no leading spaces or trailing
-commands/comments.
+that makes `LaTeX' `Asymptote'-aware. Entering `Asymptote' code
+directly into the `LaTeX' source file, at the point where it is needed,
+keeps figures organized and avoids the need to invent new file names
+for each figure. Simply add the line `\usepackage{asymptote}' at the
+beginning of your file and enclose your `Asymptote' code within a
+`\begin{asy}...\end{asy}' environment. As with the `LaTeX' `comment'
+environment, the `\end{asy}' command must appear on a line by itself,
+with no trailing commands/comments.
The sample `LaTeX' file below, named `latexusage.tex', can be run as
follows:
@@ -4662,8 +4684,8 @@ or
pdflatex latexusage
asy latexusage-*.asy
pdflatex latexusage
- To switch between using `latex' and `pdflatex' you may first need to
-remove the files `latexusage-*', `latexusage.pre', and `latexusage.aux'.
+ To switch between using inline Asymptote code with `latex' and
+`pdflatex' you may first need to remove the files `latexusage-*.tex'.
An even better method for processing a `LaTeX' file with embedded
`Asymptote' code is to use the `latexmk' utility from
@@ -4679,17 +4701,21 @@ in a file `latexmkrc' in the same directory. The command
latexmk -pdf latexusage
will then call `Asymptote' automatically, recompiling only the figures
that have changed. Since each figure is compiled in a separate system
-process, this method also tends to use less memory.
+process, this method also tends to use less memory. External
+`Asymptote' code in `filename.asy' should be included with
+\asyinclude[<options>]{<filename.asy>}
+ so that `latexmk' will recognize when the code is changed. Note that
+`latemk' requires `perl', available from `http://www.perl.org/'.
- One can specify `width', `height', `viewportwidth',
+ One can specify `width', `height', `keepAspect', `viewportwidth',
`viewportheight', `attach', and `inline'. `keyval'-style options to
-the `asy' environment. Three-dimensional PRC files may either be
-embedded within the page (the default) or attached as annotated (but
-printable) attachments, using the `attach' option and the `attachfile2'
-(or older `attachfile') `LaTeX' package. The default value of
-`viewportwidth' is `\the\linewidth' for inline 3D figures and `0' for
-attachments. The `inline' option generates inline `LaTeX' code instead
-of EPS or PDF files. This makes 2D LaTeX symbols visible to the
+the `asy' and `asyinclude' environments. Three-dimensional PRC files
+may either be embedded within the page (the default) or attached as
+annotated (but printable) attachments, using the `attach' option and
+the `attachfile2' (or older `attachfile') `LaTeX' package. The default
+value of `viewportwidth' is `\the\linewidth' for inline 3D figures and
+`0' for attachments. The `inline' option generates inline `LaTeX' code
+instead of EPS or PDF files. This makes 2D LaTeX symbols visible to the
`\begin{asy}...\end{asy}' environment. In this mode, Asymptote
correctly aligns 2D LaTeX symbols defined outside of
`\begin{asy}...\end{asy}', but treats their size as zero; an optional
@@ -4716,14 +4742,14 @@ option, labels might not show up in DVI viewers that cannot handle raw
% Use this form with latex or pdflatex to create PDF attachments by default:
%\usepackage[attach]{asymptote}
-% Enable this line to support PDF hyperlinks:
-%\usepackage{hyperref}\hypersetup{setpagesize=false,unicode}
-
% Enable this line to support the attach option:
%\usepackage[dvips]{attachfile2}
\begin{document}
+% Optional subdirectory for asy files (no spaces):
+\def\asydir{}
+
\begin{asydef}
// Global Asymptote definitions can be put here.
import three;
@@ -4788,8 +4814,8 @@ and height to \LaTeX\ explicitly. This 3D example can be viewed
interactively either with Adobe Reader or Asymptote's fast OpenGL-based
renderer. To support {\tt latexmk}, 3D figures should specify
\verb+inline=true+. It is sometimes desirable to embed 3D files as annotated
-attachments; this requires the optional \verb+\usepackage{attachfile2}+
-package and the \verb+attach=true+ option:
+attachments; this requires the \verb+attach=true+ option as well as the
+\verb+attachfile2+ \LaTeX\ package.
\begin{center}
\begin{asy}[height=4cm,inline=true,attach=false]
currentprojection=orthographic(5,4,2);
@@ -6529,12 +6555,15 @@ palette("$f(x,y)$",range,(0,200),(100,250),Top,Palette,
-One can also draw an image directly from a two-dimensional pen array:
+One can also draw an image directly from a two-dimensional pen array or
+a function `pen f(int, int)':
void image(picture pic=currentpicture, pen[][] data,
pair initial, pair final,
bool transpose=(initial.x < final.x && initial.y < final.y),
bool copy=true, bool antialias=false);
- as illustrated in the following example:
+void image(picture pic=currentpicture, pen f(int, int), int width, int height,
+ pair initial, pair final, bool antialias=false);
+ as illustrated in the following examples:
size(200);
@@ -6552,6 +6581,36 @@ image(v,(0,0),(1,1));
+import palette;
+
+size(200);
+
+real fracpart(real x) {return (x-floor(x));}
+
+pair pws(pair z) {
+ pair w=(z+exp(pi*I/5)/0.9)/(1+z/0.9*exp(-pi*I/5));
+ return exp(w)*(w^3-0.5*I);
+}
+
+int N=512;
+
+pair a=(-1,-1);
+pair b=(0.5,0.5);
+real dx=(b-a).x/N;
+real dy=(b-a).y/N;
+
+pen f(int u, int v) {
+ pair z=a+(u*dx,v*dy);
+ pair w=pws(z);
+ real phase=degrees(w,warn=false);
+ real modulus=w == 0 ? 0: fracpart(log(abs(w)));
+ return hsv(phase,1,sqrt(modulus));
+}
+
+image(f,N,N,(0,0),(300,300),antialias=true);
+
+
+
For convenience, the module `palette' also defines functions that may
be used to construct a pen array from a given function and palette:
pen[] palette(real[] f, pen[] palette);
@@ -7123,6 +7182,12 @@ illustrated in the example `arrows3.asy'.
`BeginDotMargin3', `EndDotMargin3', `DotMargin3', `DotMargins3',
`Margin3', and `TrueMargin3'.
+ The routine
+void pixel(picture pic=currentpicture, triple v, pen p=currentpen,
+ real width=1);
+ can be used to draw on picture `pic' a pixel of width `width' at
+position `v' using pen `p'.
+
Further three-dimensional examples are provided in the files
`near_earth.asy', `conicurv.asy', and (in the `animations'
subdirectory) `cube.asy'.
@@ -7844,89 +7909,89 @@ Usage: ../asy [options] [file ...]
Options (negate by replacing - with -no):
--V,-View View output; command-line only
--a,-align C|B|T|Z Center, Bottom, Top, or Zero page alignment [C]
--antialias n Antialiasing width for rasterized output [2]
--arcballradius pixels Arcball radius [750]
--auto3D Automatically activate 3D scene [true]
--autobillboard 3D labels always face viewer by default [true]
--autoimport string Module to automatically import
--autoplain Enable automatic importing of plain [true]
--autoplay Autoplay 3D animations [false]
--autorotate Enable automatic PDF page rotation [false]
--batchMask Mask fpu exceptions in batch mode [false]
--batchView View output in batch mode [false]
--bw Convert all colors to black and white [false]
--cd directory Set current directory; command-line only
--cmyk Convert rgb colors to cmyk [false]
--c,-command string Command to autoexecute
--compact Conserve memory at the expense of speed [false]
--d,-debug Enable debugging messages [false]
--divisor n Garbage collect using purge(divisor=n) [2]
--doubleclick ms Emulated double-click timeout [200]
--embed Embed rendered preview image [true]
--exitonEOF Exit interactive mode on EOF [true]
--fitscreen Fit rendered image to screen [true]
--framedelay ms Additional frame delay [0]
--framerate frames/s Animation speed [30]
--globalwrite Allow write to other directory [false]
--gray Convert all colors to grayscale [false]
--h,-help Show summary of options; command-line only
--historylines n Retain n lines of history [1000]
--iconify Iconify rendering window [false]
--inlineimage Generate inline embedded image [false]
--inlinetex Generate inline TeX code [false]
--interactiveMask Mask fpu exceptions in interactive mode [true]
--interactiveView View output in interactive mode [true]
--interactiveWrite Write expressions entered at the prompt to stdout [true]
--k,-keep Keep intermediate files [false]
--keepaux Keep intermediate LaTeX .aux files [false]
--level n Postscript level [3]
--l,-listvariables List available global functions and variables [false]
--localhistory Use a local interactive history file [false]
--loop Loop 3D animations [false]
--m,-mask Mask fpu exceptions; command-line only
--maxtile pair Maximum rendering tile size [(0,0)]
--maxviewport pair Maximum viewport size [(2048,2048)]
--multiline Input code over multiple lines at the prompt [false]
--multipleView View output from multiple batch-mode files [false]
--multisample n Multisampling width for screen images [4]
--O,-offset pair PostScript offset [(0,0)]
--f,-outformat format Convert each output file to specified format
--o,-outname name Alternative output directory/filename
--p,-parseonly Parse file [false]
--pdfreload Automatically reload document in pdfviewer [false]
--pdfreloaddelay usec Delay before attempting initial pdf reload [750000]
--position pair Initial 3D rendering screen position [(0,0)]
--prc Embed 3D PRC graphics in PDF output [true]
--prompt string Prompt [> ]
--prompt2 string Continuation prompt for multiline input [..]
--q,-quiet Suppress welcome message [false]
--render n Render 3D graphics using n pixels per bp (-1=auto) [-1]
--resizestep step Resize step [1.2]
--reverse reverse 3D animations [false]
--rgb Convert cmyk colors to rgb [false]
--safe Disable system call [true]
--scroll n Scroll standard output n lines at a time [0]
--spinstep deg/s Spin speed [60]
--svgemulation Emulate unimplemented SVG shading [false]
--tabcompletion Interactive prompt auto-completion [true]
--tex engine latex|pdflatex|xelatex|tex|pdftex|context|none [latex]
--thick Render thick 3D lines [true]
--thin Render thin 3D lines [true]
--threads Use POSIX threads for 3D rendering [true]
--toolbar Show 3D toolbar in PDF output [true]
--s,-translate Show translated virtual machine code [false]
--twice Run LaTeX twice (to resolve references) [false]
--twosided Use two-sided 3D lighting model for rendering [true]
--u,-user string General purpose user string
--v,-verbose Increase verbosity level (can specify multiple times) [0]
--version Show version; command-line only
--wait Wait for child processes to finish before exiting [false]
--warn string Enable warning; command-line only
--where Show where listed variables are declared [false]
--zoomfactor factor Zoom step factor [1.05]
--zoomstep step Mouse motion zoom step [0.1]
+-V,-View View output; command-line only
+-a,-align C|B|T|Z Center, Bottom, Top, or Zero page alignment [C]
+-antialias n Antialiasing width for rasterized output [2]
+-arcballradius pixels Arcball radius [750]
+-auto3D Automatically activate 3D scene [true]
+-autobillboard 3D labels always face viewer by default [true]
+-autoimport string Module to automatically import
+-autoplain Enable automatic importing of plain [true]
+-autoplay Autoplay 3D animations [false]
+-autorotate Enable automatic PDF page rotation [false]
+-batchMask Mask fpu exceptions in batch mode [false]
+-batchView View output in batch mode [false]
+-bw Convert all colors to black and white [false]
+-cd directory Set current directory; command-line only
+-cmyk Convert rgb colors to cmyk [false]
+-c,-command string Command to autoexecute
+-compact Conserve memory at the expense of speed [false]
+-d,-debug Enable debugging messages [false]
+-divisor n Garbage collect using purge(divisor=n) [2]
+-doubleclick ms Emulated double-click timeout [200]
+-embed Embed rendered preview image [true]
+-exitonEOF Exit interactive mode on EOF [true]
+-fitscreen Fit rendered image to screen [true]
+-framedelay ms Additional frame delay [0]
+-framerate frames/s Animation speed [30]
+-globalwrite Allow write to other directory [false]
+-gray Convert all colors to grayscale [false]
+-h,-help Show summary of options; command-line only
+-historylines n Retain n lines of history [1000]
+-iconify Iconify rendering window [false]
+-inlineimage Generate inline embedded image [false]
+-inlinetex Generate inline TeX code [false]
+-interactiveMask Mask fpu exceptions in interactive mode [true]
+-interactiveView View output in interactive mode [true]
+-interactiveWrite Write expressions entered at the prompt to stdout [true]
+-k,-keep Keep intermediate files [false]
+-keepaux Keep intermediate LaTeX .aux files [false]
+-level n Postscript level [3]
+-l,-listvariables List available global functions and variables [false]
+-localhistory Use a local interactive history file [false]
+-loop Loop 3D animations [false]
+-m,-mask Mask fpu exceptions; command-line only
+-maxtile pair Maximum rendering tile size [(0,0)]
+-maxviewport pair Maximum viewport size [(2048,2048)]
+-multiline Input code over multiple lines at the prompt [false]
+-multipleView View output from multiple batch-mode files [false]
+-multisample n Multisampling width for screen images [4]
+-O,-offset pair PostScript offset [(0,0)]
+-f,-outformat format Convert each output file to specified format
+-o,-outname name Alternative output directory/filename
+-p,-parseonly Parse file [false]
+-pdfreload Automatically reload document in pdfviewer [false]
+-pdfreloaddelay usec Delay before attempting initial pdf reload [750000]
+-position pair Initial 3D rendering screen position [(0,0)]
+-prc Embed 3D PRC graphics in PDF output [true]
+-prompt string Prompt [> ]
+-prompt2 string Continuation prompt for multiline input [..]
+-q,-quiet Suppress welcome message [false]
+-render n Render 3D graphics using n pixels per bp (-1=auto) [-1]
+-resizestep step Resize step [1.2]
+-reverse reverse 3D animations [false]
+-rgb Convert cmyk colors to rgb [false]
+-safe Disable system call [true]
+-scroll n Scroll standard output n lines at a time [0]
+-spinstep deg/s Spin speed [60]
+-svgemulation Emulate unimplemented SVG shading [false]
+-tabcompletion Interactive prompt auto-completion [true]
+-tex engine latex|pdflatex|xelatex|tex|pdftex|context|none [latex]
+-thick Render thick 3D lines [true]
+-thin Render thin 3D lines [true]
+-threads Use POSIX threads for 3D rendering [true]
+-toolbar Show 3D toolbar in PDF output [true]
+-s,-translate Show translated virtual machine code [false]
+-twice Run LaTeX twice (to resolve references) [false]
+-twosided Use two-sided 3D lighting model for rendering [true]
+-u,-user string General purpose user string
+-v,-verbose Increase verbosity level (can specify multiple times) [0]
+-version Show version; command-line only
+-wait Wait for child processes to finish before exiting [false]
+-warn string Enable warning; command-line only
+-where Show where listed variables are declared [false]
+-zoomfactor factor Zoom step factor [1.05]
+-zoomstep step Mouse motion zoom step [0.1]
All boolean options can be negated by prepending `no' to the option
name.
@@ -8397,7 +8462,7 @@ Index
(line 14)
* -- <1>: Self & prefix operators.
(line 6)
-* --: Tutorial. (line 125)
+* --: Tutorial. (line 127)
* ---: Bezier curves. (line 83)
* -=: Self & prefix operators.
(line 6)
@@ -8406,7 +8471,7 @@ Index
* -u: Options. (line 183)
* -V <1>: Tutorial. (line 19)
* -V: Configuring. (line 6)
-* ..: Tutorial. (line 125)
+* ..: Tutorial. (line 127)
* .asy: Search paths. (line 13)
* /: Arithmetic & logical.
(line 20)
@@ -8415,7 +8480,7 @@ Index
* 2D graphs: graph. (line 6)
* 3D graphs: graph3. (line 6)
* 3D grids: grid3. (line 6)
-* 3D PostScript: three. (line 570)
+* 3D PostScript: three. (line 576)
* 3D rendering: Compiling from UNIX source.
(line 16)
* :: Arithmetic & logical.
@@ -8438,7 +8503,7 @@ Index
(line 28)
* ^=: Self & prefix operators.
(line 6)
-* ^^: Tutorial. (line 132)
+* ^^: Tutorial. (line 134)
* a4: Configuring. (line 61)
* abort: Data types. (line 322)
* abs <1>: Mathematical functions.
@@ -8464,18 +8529,18 @@ Index
(line 48)
* Airy: Mathematical functions.
(line 48)
-* alias <1>: Arrays. (line 186)
+* alias <1>: Arrays. (line 187)
* alias: Structures. (line 52)
* align: Options. (line 167)
* Align: label. (line 12)
-* all: Arrays. (line 334)
+* all: Arrays. (line 335)
* Allow: Pens. (line 327)
* AND: Arithmetic & logical.
(line 80)
* and: Bezier curves. (line 56)
* angle: Data types. (line 68)
* animate <1>: animation. (line 12)
-* animate <2>: Files. (line 150)
+* animate <2>: Files. (line 154)
* animate: Configuring. (line 67)
* animation: animation. (line 6)
* annotate: annotate. (line 6)
@@ -8505,7 +8570,7 @@ Index
* arrow: label. (line 72)
* Arrow: draw. (line 26)
* arrow: Drawing commands. (line 31)
-* arrow keys: Tutorial. (line 35)
+* arrow keys: Tutorial. (line 37)
* Arrow3: three. (line 543)
* Arrows: draw. (line 26)
* arrows: draw. (line 26)
@@ -8523,6 +8588,7 @@ Index
* asy: Import. (line 102)
* asy-mode: Editing modes. (line 6)
* asy.vim: Editing modes. (line 33)
+* asyinclude: LaTeX usage. (line 44)
* asymptote.sty: LaTeX usage. (line 6)
* asymptote.xml: Editing modes. (line 49)
* ASYMPTOTE_CONFIG: Options. (line 114)
@@ -8536,7 +8602,7 @@ Index
(line 6)
* atleast: Bezier curves. (line 56)
* attach <1>: graph. (line 415)
-* attach: LaTeX usage. (line 46)
+* attach: LaTeX usage. (line 49)
* autoadjust: three. (line 354)
* autoimport: Options. (line 110)
* automatic scaling: graph. (line 682)
@@ -8582,11 +8648,11 @@ Index
* Bi_deriv: Mathematical functions.
(line 48)
* Billboard: three. (line 472)
-* binary format: Files. (line 70)
+* binary format: Files. (line 74)
* binary operators: Arithmetic & logical.
(line 6)
* binarytree: binarytree. (line 6)
-* binput: Files. (line 70)
+* binput: Files. (line 74)
* black stripes: three. (line 210)
* Blank: draw. (line 26)
* block.bottom: flowchart. (line 19)
@@ -8609,10 +8675,10 @@ Index
* BottomView: three. (line 381)
* bounding box: Frames and pictures. (line 168)
* Bounds: graph3. (line 20)
-* boutput: Files. (line 70)
+* boutput: Files. (line 74)
* box <1>: three. (line 305)
* box: Frames and pictures. (line 22)
-* bp: Tutorial. (line 24)
+* bp: Tutorial. (line 26)
* break: Programming. (line 29)
* breakpoints: Debugger. (line 21)
* brick: Pens. (line 251)
@@ -8648,11 +8714,11 @@ Index
* CJK: unicode. (line 12)
* clamped: graph. (line 37)
* clear <1>: Debugger. (line 23)
-* clear: Files. (line 88)
+* clear: Files. (line 92)
* clip: fill. (line 111)
* CLZ: Arithmetic & logical.
(line 80)
-* cm: Tutorial. (line 61)
+* cm: Tutorial. (line 63)
* cmd: Configuring. (line 34)
* cmyk: Pens. (line 34)
* colatitude: Data types. (line 129)
@@ -8662,16 +8728,16 @@ Index
* coloredSegments: tube. (line 25)
* colorless: Pens. (line 54)
* colors: Pens. (line 51)
-* comma: Files. (line 58)
-* comma-separated-value mode: Arrays. (line 367)
+* comma: Files. (line 60)
+* comma-separated-value mode: Arrays. (line 368)
* command-line options <1>: Options. (line 6)
* command-line options: Configuring. (line 83)
* comment character: Files. (line 15)
-* compass directions: Tutorial. (line 104)
+* compass directions: Tutorial. (line 106)
* Compiling from UNIX source: Compiling from UNIX source.
(line 6)
-* complement: Arrays. (line 149)
-* concat: Arrays. (line 182)
+* complement: Arrays. (line 150)
+* concat: Arrays. (line 183)
* conditional <1>: Arithmetic & logical.
(line 73)
* conditional: Programming. (line 8)
@@ -8691,11 +8757,11 @@ Index
* controlSpecifier: Paths and guides. (line 379)
* convert <1>: Options. (line 142)
* convert <2>: animation. (line 6)
-* convert <3>: Files. (line 150)
+* convert <3>: Files. (line 154)
* convert: Configuring. (line 67)
* convertOptions: Options. (line 129)
* Coons shading: fill. (line 74)
-* copy: Arrays. (line 173)
+* copy: Arrays. (line 174)
* Cos: Mathematical functions.
(line 20)
* cos: Mathematical functions.
@@ -8709,10 +8775,10 @@ Index
* cross: Data types. (line 167)
* crossframe: markers. (line 23)
* crosshatch: Pens. (line 267)
-* csv: Arrays. (line 367)
+* csv: Arrays. (line 368)
* CTZ: Arithmetic & logical.
(line 80)
-* cubicroots: Arrays. (line 323)
+* cubicroots: Arrays. (line 324)
* curl <1>: three. (line 6)
* curl: Bezier curves. (line 63)
* curlSpecifier: Paths and guides. (line 391)
@@ -8724,7 +8790,7 @@ Index
* custom tick locations: graph. (line 249)
* cut: Paths and guides. (line 237)
* cycle <1>: three. (line 6)
-* cycle: Tutorial. (line 73)
+* cycle: Tutorial. (line 75)
* cyclic <1>: three. (line 502)
* cyclic <2>: Arrays. (line 39)
* cyclic: Paths and guides. (line 74)
@@ -8751,11 +8817,11 @@ Index
(line 17)
* degrees: Data types. (line 73)
* delete <1>: Arrays. (line 39)
-* delete: Files. (line 145)
+* delete: Files. (line 149)
* description: Description. (line 6)
-* diagonal: Arrays. (line 308)
+* diagonal: Arrays. (line 309)
* diamond: flowchart. (line 57)
-* dimension: Arrays. (line 372)
+* dimension: Arrays. (line 373)
* dir <1>: three. (line 502)
* dir <2>: Paths and guides. (line 98)
* dir <3>: Data types. (line 85)
@@ -8766,7 +8832,9 @@ Index
* dirtime: Paths and guides. (line 152)
* display: Configuring. (line 67)
* do: Programming. (line 29)
-* dot <1>: Arrays. (line 264)
+* DOSendl: Files. (line 60)
+* DOSnewl: Files. (line 60)
+* dot <1>: Arrays. (line 265)
* dot <2>: Data types. (line 98)
* dot: draw. (line 83)
* DotMargin: draw. (line 42)
@@ -8775,7 +8843,7 @@ Index
* DotMargins3: three. (line 559)
* dotted: Pens. (line 95)
* double deferred drawing: three. (line 256)
-* double precision: Files. (line 70)
+* double precision: Files. (line 74)
* Draw: Frames and pictures. (line 147)
* draw: draw. (line 110)
* Draw: draw. (line 26)
@@ -8788,7 +8856,7 @@ Index
* dvisvgm: Configuring. (line 67)
* E <1>: Mathematical functions.
(line 48)
-* E: Tutorial. (line 104)
+* E: Tutorial. (line 106)
* Editing modes: Editing modes. (line 6)
* Ei: Mathematical functions.
(line 48)
@@ -8809,7 +8877,7 @@ Index
* EndBar3: three. (line 543)
* EndDotMargin: draw. (line 42)
* EndDotMargin3: three. (line 559)
-* endl: Files. (line 58)
+* endl: Files. (line 60)
* EndMargin: draw. (line 42)
* EndMargin3: three. (line 559)
* EndPenMargin: draw. (line 42)
@@ -8818,15 +8886,15 @@ Index
* EndPoint: label. (line 57)
* envelope: Frames and pictures. (line 22)
* environment variables: Configuring. (line 87)
-* eof <1>: Arrays. (line 349)
-* eof: Files. (line 88)
-* eol <1>: Arrays. (line 349)
-* eol: Files. (line 88)
+* eof <1>: Arrays. (line 350)
+* eof: Files. (line 92)
+* eol <1>: Arrays. (line 350)
+* eol: Files. (line 92)
* EPS <1>: Options. (line 142)
* EPS: label. (line 80)
* erase <1>: Frames and pictures. (line 7)
* erase <2>: Data types. (line 239)
-* erase: Tutorial. (line 35)
+* erase: Tutorial. (line 37)
* erf: Mathematical functions.
(line 6)
* erfc: Mathematical functions.
@@ -8836,7 +8904,7 @@ Index
* errorbars: graph. (line 484)
* eval: Import. (line 98)
* evenodd <1>: Pens. (line 152)
-* evenodd: Tutorial. (line 146)
+* evenodd: Tutorial. (line 148)
* exit <1>: Debugger. (line 57)
* exit <2>: Interactive mode. (line 59)
* exit: Data types. (line 331)
@@ -8858,14 +8926,14 @@ Index
(line 48)
* fabs: Mathematical functions.
(line 6)
-* face: three. (line 578)
+* face: three. (line 584)
* factorial: Mathematical functions.
(line 39)
* Fedora: UNIX binary distributions.
(line 15)
* feynman: feynman. (line 6)
* fft <1>: math. (line 26)
-* fft: Arrays. (line 251)
+* fft: Arrays. (line 252)
* FFTW: Compiling from UNIX source.
(line 58)
* file <1>: Debugger. (line 45)
@@ -8879,7 +8947,7 @@ Index
* FillDraw: draw. (line 26)
* filloutside: fill. (line 27)
* fillrule: Pens. (line 152)
-* find <1>: Arrays. (line 158)
+* find <1>: Arrays. (line 159)
* find: Data types. (line 224)
* firstcut: Paths and guides. (line 247)
* fit: Frames and pictures. (line 103)
@@ -8888,7 +8956,7 @@ Index
* floor: Mathematical functions.
(line 26)
* flowchart: flowchart. (line 6)
-* flush: Files. (line 58)
+* flush: Files. (line 60)
* fmod: Mathematical functions.
(line 6)
* font: Pens. (line 192)
@@ -8917,10 +8985,10 @@ Index
(line 39)
* geometry: geometry. (line 6)
* getc: Files. (line 29)
-* getpair: Files. (line 113)
-* getreal: Files. (line 113)
-* getstring: Files. (line 113)
-* gettriple: Files. (line 113)
+* getpair: Files. (line 117)
+* getreal: Files. (line 117)
+* getstring: Files. (line 117)
+* gettriple: Files. (line 117)
* glOptions <1>: Options. (line 129)
* glOptions: three. (line 210)
* GNU Scientific Library: Mathematical functions.
@@ -8950,7 +9018,7 @@ Index
* guide: Paths and guides. (line 300)
* guide3: three. (line 6)
* hatch: Pens. (line 267)
-* height: LaTeX usage. (line 46)
+* height: LaTeX usage. (line 49)
* help <1>: Debugger. (line 30)
* help <2>: Help. (line 6)
* help: Interactive mode. (line 44)
@@ -8960,11 +9028,11 @@ Index
* hex: Data types. (line 280)
* hexidecimal <1>: Pens. (line 59)
* hexidecimal: Data types. (line 280)
-* hidden surface removal: three. (line 578)
+* hidden surface removal: three. (line 584)
* histogram: Mathematical functions.
(line 39)
* history <1>: Interactive mode. (line 59)
-* history: Files. (line 138)
+* history: Files. (line 142)
* historylines: Interactive mode. (line 64)
* HookHead: draw. (line 26)
* HookHead3: three. (line 543)
@@ -8977,7 +9045,7 @@ Index
* i_scaled: Mathematical functions.
(line 48)
* iconic: three. (line 210)
-* identity <1>: Arrays. (line 305)
+* identity <1>: Arrays. (line 306)
* identity <2>: Mathematical functions.
(line 6)
* identity: Transforms. (line 24)
@@ -8993,14 +9061,14 @@ Index
* implicit linear solver: MetaPost. (line 10)
* implicit scaling: Implicit scaling. (line 6)
* import: Import. (line 46)
-* inches: Tutorial. (line 61)
+* inches: Tutorial. (line 63)
* including images: label. (line 80)
* increasing: math. (line 59)
* inheritance: Structures. (line 181)
* initialized: Arrays. (line 39)
* initializers: Variable initializers.
(line 6)
-* inline: LaTeX usage. (line 46)
+* inline: LaTeX usage. (line 49)
* InOutTicks: graph3. (line 34)
* input <1>: Interactive mode. (line 48)
* input: Files. (line 11)
@@ -9031,7 +9099,7 @@ Index
* InTicks: graph3. (line 34)
* intMax: Data types. (line 28)
* intMin: Data types. (line 28)
-* inverse <1>: Arrays. (line 311)
+* inverse <1>: Arrays. (line 312)
* inverse: Transforms. (line 16)
* invert: three. (line 422)
* invisible: Pens. (line 39)
@@ -9044,8 +9112,12 @@ Index
(line 48)
* Kate: Editing modes. (line 49)
* KDE editor: Editing modes. (line 49)
+* keepAspect <1>: LaTeX usage. (line 49)
+* keepAspect: Frames and pictures. (line 54)
* keyboard bindings:: three. (line 169)
* keys: Arrays. (line 39)
+* keyword: Named arguments. (line 37)
+* keyword-only: Named arguments. (line 37)
* keywords: Named arguments. (line 6)
* Korean: unicode. (line 12)
* label: three. (line 466)
@@ -9063,7 +9135,7 @@ Index
* latex: Options. (line 142)
* LaTeX fonts: Pens. (line 192)
* LaTeX usage: LaTeX usage. (line 6)
-* latexmk: LaTeX usage. (line 30)
+* latexmk: LaTeX usage. (line 29)
* latin1: latin1. (line 6)
* latitude: Data types. (line 134)
* latticeshade: fill. (line 32)
@@ -9091,8 +9163,8 @@ Index
* libsigsegv <1>: Help. (line 33)
* libsigsegv: Functions. (line 88)
* limits: graph. (line 636)
-* line: Arrays. (line 349)
-* line mode: Arrays. (line 349)
+* line: Arrays. (line 350)
+* line mode: Arrays. (line 350)
* Linear: graph. (line 682)
* linecap: Pens. (line 129)
* linejoin: Pens. (line 138)
@@ -9119,7 +9191,7 @@ Index
* MacOS X binary distributions: MacOS X binary distributions.
(line 6)
* makepen: Pens. (line 300)
-* map: Arrays. (line 140)
+* map: Arrays. (line 141)
* Margin: draw. (line 42)
* Margin3: three. (line 559)
* margins: three. (line 262)
@@ -9135,7 +9207,7 @@ Index
* mathematical functions: Mathematical functions.
(line 6)
* max <1>: three. (line 502)
-* max <2>: Arrays. (line 230)
+* max <2>: Arrays. (line 231)
* max <3>: Frames and pictures. (line 7)
* max: Paths and guides. (line 264)
* maxbound: Data types. (line 104)
@@ -9156,7 +9228,7 @@ Index
* midpoint: Paths and guides. (line 166)
* MidPoint: label. (line 57)
* min <1>: three. (line 502)
-* min <2>: Arrays. (line 223)
+* min <2>: Arrays. (line 224)
* min <3>: Frames and pictures. (line 7)
* min: Paths and guides. (line 260)
* minbound: Data types. (line 101)
@@ -9164,8 +9236,9 @@ Index
* mintimes: Paths and guides. (line 214)
* miterjoin: Pens. (line 138)
* miterlimit: Pens. (line 147)
-* mm: Tutorial. (line 61)
-* mode: Files. (line 84)
+* mktemp: Files. (line 43)
+* mm: Tutorial. (line 63)
+* mode: Files. (line 88)
* monotonic: graph. (line 37)
* mouse: GUI. (line 6)
* mouse bindings: three. (line 137)
@@ -9174,14 +9247,14 @@ Index
* multisample: three. (line 127)
* multisampling: Compiling from UNIX source.
(line 16)
-* N: Tutorial. (line 104)
-* name: Files. (line 84)
+* N: Tutorial. (line 106)
+* name: Files. (line 88)
* named arguments: Named arguments. (line 6)
* natural: graph. (line 37)
* new <1>: Arrays. (line 109)
* new: Structures. (line 6)
* newframe: Frames and pictures. (line 7)
-* newl: Files. (line 58)
+* newl: Files. (line 60)
* newton: Mathematical functions.
(line 65)
* next: Debugger. (line 42)
@@ -9191,7 +9264,7 @@ Index
* NoFill: draw. (line 26)
* NoMargin: draw. (line 42)
* NoMargin3: three. (line 559)
-* none: Files. (line 58)
+* none: Files. (line 60)
* None: draw. (line 19)
* normal: three. (line 488)
* nosafe: Options. (line 162)
@@ -9247,8 +9320,8 @@ Index
* pack: label. (line 102)
* packing: Rest arguments. (line 30)
* pair <1>: Data types. (line 41)
-* pair: Tutorial. (line 49)
-* pairs: Arrays. (line 247)
+* pair: Tutorial. (line 51)
+* pairs: Arrays. (line 248)
* paperheight: Configuring. (line 61)
* papertype: Configuring. (line 61)
* paperwidth: Configuring. (line 61)
@@ -9262,7 +9335,7 @@ Index
* path: Paths and guides. (line 7)
* path markers: graph. (line 484)
* path3: three. (line 6)
-* path[]: Tutorial. (line 132)
+* path[]: Tutorial. (line 134)
* patterns <1>: patterns. (line 6)
* patterns: Pens. (line 238)
* PDF: Options. (line 142)
@@ -9277,11 +9350,13 @@ Index
* PenMargins2: three. (line 559)
* PenMargins3: three. (line 559)
* periodic: graph. (line 37)
+* perl: LaTeX usage. (line 29)
* perpendicular: geometry. (line 6)
* perspective: three. (line 358)
* picture: Frames and pictures. (line 35)
* picture alignment: Frames and pictures. (line 209)
* piecewisestraight: Paths and guides. (line 81)
+* pixel: three. (line 566)
* Pl: Mathematical functions.
(line 48)
* plain: plain. (line 6)
@@ -9301,11 +9376,11 @@ Index
(line 19)
* postscript: Frames and pictures. (line 271)
* PostScript fonts: Pens. (line 210)
-* PostScript subpath: Tutorial. (line 132)
+* PostScript subpath: Tutorial. (line 134)
* pow10: Mathematical functions.
(line 6)
* prc: three. (line 231)
-* precision: Files. (line 88)
+* precision: Files. (line 92)
* precontrol <1>: three. (line 502)
* precontrol: Paths and guides. (line 128)
* prefix operators: Self & prefix operators.
@@ -9317,15 +9392,15 @@ Index
* psview: Microsoft Windows. (line 16)
* psviewer: Configuring. (line 6)
* psviewerOptions: Options. (line 129)
-* pt: Tutorial. (line 61)
+* pt: Tutorial. (line 63)
* public: Structures. (line 6)
* push: Arrays. (line 39)
* Python usage: Interactive mode. (line 80)
-* quadraticroots: Arrays. (line 314)
+* quadraticroots: Arrays. (line 315)
* quarticroots: math. (line 22)
* quit <1>: Debugger. (line 54)
* quit <2>: Interactive mode. (line 59)
-* quit: Tutorial. (line 35)
+* quit: Tutorial. (line 37)
* quote: Import. (line 116)
* quotient: Arithmetic & logical.
(line 6)
@@ -9341,10 +9416,10 @@ Index
(line 39)
* randMax: Mathematical functions.
(line 39)
-* read: Arrays. (line 390)
+* read: Arrays. (line 391)
* reading: Files. (line 11)
-* reading string arrays: Arrays. (line 359)
-* readline: Files. (line 130)
+* reading string arrays: Arrays. (line 360)
+* readline: Files. (line 134)
* real: Data types. (line 33)
* realDigits: Data types. (line 33)
* realEpsilon: Data types. (line 33)
@@ -9359,7 +9434,7 @@ Index
* reltime: Paths and guides. (line 158)
* remainder: Mathematical functions.
(line 6)
-* rename: Files. (line 147)
+* rename: Files. (line 151)
* render <1>: Options. (line 142)
* render: three. (line 47)
* replace: Data types. (line 252)
@@ -9369,10 +9444,10 @@ Index
* restricted: Structures. (line 6)
* return: Debugger. (line 48)
* reverse <1>: three. (line 502)
-* reverse <2>: Arrays. (line 145)
+* reverse <2>: Arrays. (line 146)
* reverse <3>: Paths and guides. (line 169)
* reverse: Data types. (line 248)
-* rewind: Files. (line 88)
+* rewind: Files. (line 92)
* rfind: Data types. (line 229)
* rgb: Pens. (line 30)
* Riemann zeta function: Mathematical functions.
@@ -9394,10 +9469,10 @@ Index
(line 6)
* runtime imports: Import. (line 98)
* Russian: unicode. (line 7)
-* S: Tutorial. (line 104)
+* S: Tutorial. (line 106)
* safe: Options. (line 162)
* save: Frames and pictures. (line 262)
-* saveline: Files. (line 130)
+* saveline: Files. (line 134)
* scale: three. (line 452)
* Scale: graph. (line 698)
* scale <1>: graph. (line 682)
@@ -9407,21 +9482,21 @@ Index
* scale3: three. (line 449)
* scaled graph: graph. (line 663)
* scientific graph: graph. (line 396)
-* scroll: Files. (line 104)
-* search: Arrays. (line 163)
+* scroll: Files. (line 108)
+* search: Arrays. (line 164)
* search paths: Search paths. (line 6)
* Seascape: Frames and pictures. (line 100)
* secondary axis: graph. (line 813)
* secondaryX: graph. (line 813)
* secondaryY: graph. (line 813)
* seconds: Data types. (line 300)
-* seek: Files. (line 88)
-* seekeof: Files. (line 88)
+* seek: Files. (line 92)
+* seekeof: Files. (line 92)
* segment: math. (line 50)
* segmentation fault: Help. (line 33)
* self operators: Self & prefix operators.
(line 6)
-* sequence: Arrays. (line 127)
+* sequence: Arrays. (line 128)
* settings <1>: Options. (line 114)
* settings: Configuring. (line 23)
* sgn: Mathematical functions.
@@ -9435,7 +9510,7 @@ Index
* showtarget: three. (line 338)
* Si: Mathematical functions.
(line 48)
-* signedint: Files. (line 70)
+* signedint: Files. (line 74)
* SimpleHead: draw. (line 26)
* simplex: simplex. (line 6)
* simpson: Mathematical functions.
@@ -9444,9 +9519,9 @@ Index
(line 20)
* sin: Mathematical functions.
(line 6)
-* single precision: Files. (line 70)
-* singleint: Files. (line 70)
-* singlereal: Files. (line 70)
+* single precision: Files. (line 74)
+* singleint: Files. (line 74)
+* singlereal: Files. (line 74)
* sinh: Mathematical functions.
(line 6)
* SixViews: three. (line 396)
@@ -9467,8 +9542,8 @@ Index
* slopefield: slopefield. (line 6)
* solid: Pens. (line 95)
* solids: solids. (line 9)
-* solve: Arrays. (line 283)
-* sort: Arrays. (line 189)
+* solve: Arrays. (line 284)
+* sort: Arrays. (line 190)
* Spline <1>: graph3. (line 100)
* Spline: graph. (line 34)
* split: Data types. (line 261)
@@ -9481,8 +9556,8 @@ Index
* stack overflow: Functions. (line 88)
* static: Static. (line 6)
* stats: stats. (line 6)
-* stdin: Files. (line 45)
-* stdout: Files. (line 45)
+* stdin: Files. (line 47)
+* stdout: Files. (line 47)
* step: Debugger. (line 39)
* stickframe: markers. (line 16)
* stop: Debugger. (line 10)
@@ -9501,8 +9576,8 @@ Index
* subpictures: Frames and pictures. (line 103)
* substr: Data types. (line 244)
* Subversion: Subversion. (line 6)
-* sum: Arrays. (line 218)
-* superpath: Tutorial. (line 132)
+* sum: Arrays. (line 219)
+* superpath: Tutorial. (line 134)
* Suppress: Pens. (line 331)
* SuppressQuiet: Pens. (line 335)
* surface <1>: graph3. (line 100)
@@ -9510,10 +9585,10 @@ Index
* SVG: Options. (line 142)
* SVN: Subversion. (line 6)
* system <1>: Options. (line 162)
-* system: Files. (line 155)
+* system: Files. (line 159)
* syzygy: syzygy. (line 6)
-* tab: Files. (line 58)
-* tab completion: Tutorial. (line 35)
+* tab: Files. (line 60)
+* tab completion: Tutorial. (line 37)
* Tan: Mathematical functions.
(line 20)
* tan: Mathematical functions.
@@ -9521,7 +9596,7 @@ Index
* tanh: Mathematical functions.
(line 6)
* target: three. (line 338)
-* tell: Files. (line 88)
+* tell: Files. (line 92)
* tension <1>: three. (line 6)
* tension: Bezier curves. (line 56)
* tensionSpecifier: Paths and guides. (line 385)
@@ -9565,12 +9640,12 @@ Index
* transform: Transforms. (line 6)
* transform3: three. (line 432)
* transparency: Pens. (line 222)
-* transpose: Arrays. (line 210)
+* transpose: Arrays. (line 211)
* tree: tree. (line 9)
* trembling: trembling. (line 6)
* triangle: geometry. (line 6)
* triangulate: contour. (line 157)
-* tridiagonal: Arrays. (line 271)
+* tridiagonal: Arrays. (line 272)
* trigonometric integrals: Mathematical functions.
(line 48)
* triple: Data types. (line 108)
@@ -9588,18 +9663,18 @@ Index
* unfill: fill. (line 106)
* UnFill: draw. (line 26)
* unicode: unicode. (line 6)
-* uniform: Arrays. (line 154)
+* uniform: Arrays. (line 155)
* Uninstall: Uninstall. (line 6)
* unique: math. (line 64)
* unit: Data types. (line 78)
* unitbox <1>: three. (line 307)
-* unitbox: Tutorial. (line 153)
+* unitbox: Tutorial. (line 155)
* unitcircle <1>: three. (line 274)
-* unitcircle: Tutorial. (line 126)
+* unitcircle: Tutorial. (line 128)
* unitrand: Mathematical functions.
(line 39)
* unitsize <1>: Frames and pictures. (line 64)
-* unitsize: Tutorial. (line 84)
+* unitsize: Tutorial. (line 86)
* UNIX binary distributions: UNIX binary distributions.
(line 6)
* unpacking: Rest arguments. (line 39)
@@ -9608,7 +9683,7 @@ Index
* update: Files. (line 35)
* UpsideDown: Frames and pictures. (line 95)
* usepackage: Frames and pictures. (line 291)
-* user coordinates: Tutorial. (line 84)
+* user coordinates: Tutorial. (line 86)
* user-defined operators: User-defined operators.
(line 6)
* usleep: Data types. (line 337)
@@ -9619,29 +9694,29 @@ Index
(line 6)
* vectorfield: graph. (line 975)
* vectorfield3: graph3. (line 159)
-* vectorization: Arrays. (line 328)
+* vectorization: Arrays. (line 329)
* verbatim: Frames and pictures. (line 271)
* vertex-dependent colors: three. (line 81)
* Vertical: flowchart. (line 81)
-* viewportheight: LaTeX usage. (line 46)
+* viewportheight: LaTeX usage. (line 49)
* viewportmargin: three. (line 262)
* viewportsize: three. (line 262)
-* viewportwidth: LaTeX usage. (line 46)
+* viewportwidth: LaTeX usage. (line 49)
* views: three. (line 231)
* vim: Editing modes. (line 33)
* virtual functions: Structures. (line 181)
* void: Data types. (line 10)
-* W: Tutorial. (line 104)
+* W: Tutorial. (line 106)
* whatever: Paths and guides. (line 232)
* Wheel: palette. (line 22)
* wheel mouse: GUI. (line 6)
* while: Programming. (line 29)
-* white-space string delimiter mode: Arrays. (line 359)
-* width: LaTeX usage. (line 46)
+* white-space string delimiter mode: Arrays. (line 360)
+* width: LaTeX usage. (line 49)
* windingnumber: Paths and guides. (line 268)
-* word: Arrays. (line 359)
-* write <1>: Arrays. (line 399)
-* write: Files. (line 50)
+* word: Arrays. (line 360)
+* write <1>: Arrays. (line 400)
+* write: Files. (line 52)
* X: three. (line 274)
* xasy: GUI. (line 6)
* xaxis3: graph3. (line 7)
@@ -9649,11 +9724,11 @@ Index
* xelatex: embed. (line 10)
* xequals: graph. (line 294)
* XEquals: graph. (line 280)
-* xinput: Files. (line 70)
+* xinput: Files. (line 74)
* xlimits: graph. (line 636)
* XOR: Arithmetic & logical.
(line 80)
-* xoutput: Files. (line 70)
+* xoutput: Files. (line 74)
* xpart: Data types. (line 89)
* xscale: Transforms. (line 33)
* xscale3: three. (line 440)
@@ -9714,139 +9789,140 @@ Node: UNIX binary distributions11388
Node: MacOS X binary distributions12494
Node: Microsoft Windows13378
Ref: psview14088
-Node: Configuring15009
-Node: Search paths19230
-Node: Compiling from UNIX source20027
-Ref: multisampling20616
-Node: Editing modes23022
-Node: Subversion25454
-Node: Uninstall25917
-Node: Tutorial26267
-Ref: unitcircle30493
-Node: Drawing commands32429
-Node: draw34140
-Ref: arrows35288
-Node: fill40531
-Ref: gradient shading41575
-Node: clip45803
-Node: label46395
-Ref: Label47094
-Node: Bezier curves52819
-Node: Programming56396
-Ref: array iteration57210
-Node: Data types58291
-Ref: format67299
-Node: Paths and guides70902
-Ref: circle71156
-Ref: arctime76644
-Ref: extension80499
-Node: Pens87182
-Ref: fillrule94548
-Ref: basealign95445
-Ref: transparency98271
-Ref: makepen101714
-Ref: overwrite102552
-Node: Transforms103762
-Node: Frames and pictures105553
-Ref: envelope106694
-Ref: size107777
-Ref: unitsize108764
-Ref: shipout109824
-Ref: filltype112157
-Ref: add115294
-Ref: add about116240
-Ref: tex119178
-Node: Files120052
-Ref: cd121017
-Ref: scroll125449
-Node: Variable initializers128522
-Node: Structures131247
-Node: Operators138691
-Node: Arithmetic & logical139005
-Node: Self & prefix operators140979
-Node: User-defined operators141767
-Node: Implicit scaling142678
-Node: Functions143241
-Ref: stack overflow145994
-Node: Default arguments146558
-Node: Named arguments147297
-Node: Rest arguments149459
-Node: Mathematical functions152269
-Node: Arrays156876
-Ref: sort163926
-Ref: tridiagonal166330
-Ref: solve167558
-Node: Slices171751
-Node: Casts175641
-Node: Import177606
-Node: Static182833
-Node: LaTeX usage185727
-Node: Base modules191768
-Node: plain194268
-Node: simplex194920
-Node: math195193
-Node: interpolate197898
-Node: geometry198177
-Node: trembling198771
-Node: stats199122
-Node: patterns199382
-Node: markers199618
-Node: tree201401
-Node: binarytree201589
-Node: drawtree202178
-Node: syzygy202382
-Node: feynman202656
-Node: roundedpath202931
-Node: animation203214
-Ref: animate203631
-Node: embed204770
-Node: slide206373
-Node: MetaPost206713
-Node: unicode207429
-Node: latin1208317
-Node: babel208685
-Node: labelpath208914
-Node: labelpath3209734
-Node: annotate210045
-Node: CAD210516
-Node: graph210826
-Ref: ticks217955
-Ref: pathmarkers231234
-Ref: marker231699
-Ref: markuniform232050
-Ref: errorbars233841
-Ref: automatic scaling237897
-Node: palette248543
-Ref: images248661
-Ref: image252832
-Ref: logimage253310
-Ref: penimage254116
-Node: three254560
-Ref: PostScript3D279102
-Node: obj280794
-Node: graph3281046
-Ref: GaussianSurface286171
-Node: grid3287275
-Node: solids288015
-Node: tube288963
-Node: flowchart291198
-Node: contour295767
-Node: contour3300892
-Node: slopefield301199
-Node: ode302636
-Node: Options302896
-Ref: configuration file308741
-Ref: settings308741
-Ref: convert309942
-Node: Interactive mode312909
-Ref: history315062
-Node: GUI316367
-Node: GUI installation316870
-Node: GUI usage318000
-Node: PostScript to Asymptote318903
-Node: Help319659
-Node: Debugger321395
-Node: Credits323180
-Node: Index324112
+Node: Configuring15020
+Node: Search paths19234
+Node: Compiling from UNIX source20031
+Ref: multisampling20620
+Node: Editing modes23026
+Node: Subversion25458
+Node: Uninstall25921
+Node: Tutorial26271
+Ref: unitcircle30569
+Node: Drawing commands32505
+Node: draw34216
+Ref: arrows35364
+Node: fill40607
+Ref: gradient shading41651
+Node: clip45879
+Node: label46471
+Ref: Label47170
+Node: Bezier curves52895
+Node: Programming56472
+Ref: array iteration57286
+Node: Data types58367
+Ref: format67375
+Node: Paths and guides70978
+Ref: circle71232
+Ref: arctime76720
+Ref: extension80575
+Node: Pens87258
+Ref: fillrule94624
+Ref: basealign95521
+Ref: transparency98347
+Ref: makepen101790
+Ref: overwrite102628
+Node: Transforms103838
+Node: Frames and pictures105629
+Ref: envelope106770
+Ref: size107853
+Ref: unitsize108840
+Ref: shipout109900
+Ref: filltype112233
+Ref: add115370
+Ref: add about116316
+Ref: tex119254
+Node: Files120128
+Ref: cd121093
+Ref: scroll125778
+Node: Variable initializers128851
+Node: Structures131576
+Node: Operators139020
+Node: Arithmetic & logical139334
+Node: Self & prefix operators141308
+Node: User-defined operators142096
+Node: Implicit scaling143007
+Node: Functions143570
+Ref: stack overflow146323
+Node: Default arguments146887
+Node: Named arguments147626
+Node: Rest arguments150197
+Node: Mathematical functions153318
+Node: Arrays157925
+Ref: sort165013
+Ref: tridiagonal167417
+Ref: solve168645
+Node: Slices172838
+Node: Casts176728
+Node: Import178693
+Node: Static183920
+Node: LaTeX usage186814
+Node: Base modules193031
+Node: plain195531
+Node: simplex196183
+Node: math196456
+Node: interpolate199161
+Node: geometry199440
+Node: trembling200034
+Node: stats200385
+Node: patterns200645
+Node: markers200881
+Node: tree202664
+Node: binarytree202852
+Node: drawtree203441
+Node: syzygy203645
+Node: feynman203919
+Node: roundedpath204194
+Node: animation204477
+Ref: animate204894
+Node: embed206033
+Node: slide207636
+Node: MetaPost207976
+Node: unicode208692
+Node: latin1209580
+Node: babel209948
+Node: labelpath210177
+Node: labelpath3210997
+Node: annotate211308
+Node: CAD211779
+Node: graph212089
+Ref: ticks219218
+Ref: pathmarkers232497
+Ref: marker232962
+Ref: markuniform233313
+Ref: errorbars235104
+Ref: automatic scaling239160
+Node: palette249806
+Ref: images249924
+Ref: image254095
+Ref: logimage254573
+Ref: penimage255551
+Ref: penfunctionimage255772
+Node: three256496
+Ref: PostScript3D281241
+Node: obj282933
+Node: graph3283185
+Ref: GaussianSurface288310
+Node: grid3289414
+Node: solids290154
+Node: tube291102
+Node: flowchart293337
+Node: contour297906
+Node: contour3303031
+Node: slopefield303338
+Node: ode304775
+Node: Options305035
+Ref: configuration file310963
+Ref: settings310963
+Ref: convert312164
+Node: Interactive mode315131
+Ref: history317284
+Node: GUI318589
+Node: GUI installation319092
+Node: GUI usage320222
+Node: PostScript to Asymptote321125
+Node: Help321881
+Node: Debugger323617
+Node: Credits325402
+Node: Index326334

End Tag Table
diff --git a/Master/texmf/doc/man/man1/asy.1 b/Master/texmf/doc/man/man1/asy.1
index d9e680befc7..2548dbc79d7 100644
--- a/Master/texmf/doc/man/man1/asy.1
+++ b/Master/texmf/doc/man/man1/asy.1
@@ -31,249 +31,253 @@ in the user's home directory using the long form:
For a complete
description, see the Info files.
.TP
-.B \-V,\-View
+.B \-V,\-View
View output; command-line only.
.TP
-.B \-a,\-align C|B|T|Z
+.B \-a,\-align C|B|T|Z
Center, Bottom, Top, or Zero page alignment [C].
.TP
-.B \-antialias n
+.B \-antialias n
Antialiasing width for rasterized output [2].
--arcballradius pixels Arcball radius [750]
.TP
-.B \-auto3D
+.B \-arcballradius pixels
+Arcball radius [750].
+.TP
+.B \-auto3D
Automatically activate 3D scene [true].
--autobillboard 3D labels always face viewer by default [true]
.TP
-.B \-autoimport string
+.B \-autobillboard
+3D labels always face viewer by default [true].
+.TP
+.B \-autoimport string
Module to automatically import.
.TP
-.B \-autoplain
+.B \-autoplain
Enable automatic importing of plain [true].
.TP
-.B \-autoplay
+.B \-autoplay
Autoplay 3D animations [false].
.TP
-.B \-autorotate
+.B \-autorotate
Enable automatic PDF page rotation [false].
.TP
-.B \-batchMask
+.B \-batchMask
Mask fpu exceptions in batch mode [false].
.TP
-.B \-batchView
+.B \-batchView
View output in batch mode [false].
.TP
-.B \-bw
+.B \-bw
Convert all colors to black and white [false].
.TP
-.B \-cd directory
+.B \-cd directory
Set current directory; command-line only.
.TP
-.B \-cmyk
+.B \-cmyk
Convert rgb colors to cmyk [false].
.TP
-.B \-c,\-command string
+.B \-c,\-command string
Command to autoexecute.
.TP
-.B \-compact
+.B \-compact
Conserve memory at the expense of speed [false].
.TP
-.B \-d,\-debug
+.B \-d,\-debug
Enable debugging messages [false].
.TP
-.B \-divisor n
+.B \-divisor n
Garbage collect using purge(divisor=n) [2].
.TP
-.B \-doubleclick ms
+.B \-doubleclick ms
Emulated double-click timeout [200].
.TP
-.B \-embed
+.B \-embed
Embed rendered preview image [true].
.TP
-.B \-exitonEOF
+.B \-exitonEOF
Exit interactive mode on EOF [true].
.TP
-.B \-fitscreen
+.B \-fitscreen
Fit rendered image to screen [true].
.TP
-.B \-framedelay ms
+.B \-framedelay ms
Additional frame delay [0].
.TP
-.B \-framerate frames/s
+.B \-framerate frames/s
Animation speed [30].
.TP
-.B \-globalwrite
+.B \-globalwrite
Allow write to other directory [false].
.TP
-.B \-gray
+.B \-gray
Convert all colors to grayscale [false].
.TP
-.B \-h,\-help
+.B \-h,\-help
Show summary of options; command-line only.
.TP
-.B \-historylines n
+.B \-historylines n
Retain n lines of history [1000].
.TP
-.B \-iconify
+.B \-iconify
Iconify rendering window [false].
.TP
-.B \-inlineimage
+.B \-inlineimage
Generate inline embedded image [false].
.TP
-.B \-inlinetex
+.B \-inlinetex
Generate inline TeX code [false].
.TP
-.B \-interactiveMask
+.B \-interactiveMask
Mask fpu exceptions in interactive mode [true].
.TP
-.B \-interactiveView
+.B \-interactiveView
View output in interactive mode [true].
.TP
-.B \-interactiveWrite
+.B \-interactiveWrite
Write expressions entered at the prompt to stdout [true].
.TP
-.B \-k,\-keep
+.B \-k,\-keep
Keep intermediate files [false].
.TP
-.B \-keepaux
+.B \-keepaux
Keep intermediate LaTeX .aux files [false].
.TP
-.B \-level n
+.B \-level n
Postscript level [3].
.TP
-.B \-l,\-listvariables
+.B \-l,\-listvariables
List available global functions and variables [false].
.TP
-.B \-localhistory
+.B \-localhistory
Use a local interactive history file [false].
.TP
-.B \-loop
+.B \-loop
Loop 3D animations [false].
.TP
-.B \-m,\-mask
+.B \-m,\-mask
Mask fpu exceptions; command-line only.
.TP
-.B \-maxtile pair
+.B \-maxtile pair
Maximum rendering tile size [(0,0)].
.TP
-.B \-maxviewport pair
+.B \-maxviewport pair
Maximum viewport size [(2048,2048)].
.TP
-.B \-multiline
+.B \-multiline
Input code over multiple lines at the prompt [false].
.TP
-.B \-multipleView
+.B \-multipleView
View output from multiple batch-mode files [false].
.TP
-.B \-multisample n
+.B \-multisample n
Multisampling width for screen images [4].
.TP
-.B \-O,\-offset pair
+.B \-O,\-offset pair
PostScript offset [(0,0)].
.TP
-.B \-f,\-outformat format
+.B \-f,\-outformat format
Convert each output file to specified format.
.TP
-.B \-o,\-outname name
+.B \-o,\-outname name
Alternative output directory/filename.
.TP
-.B \-p,\-parseonly
+.B \-p,\-parseonly
Parse file [false].
.TP
-.B \-pdfreload
+.B \-pdfreload
Automatically reload document in pdfviewer [false].
.TP
-.B \-pdfreloaddelay usec
+.B \-pdfreloaddelay usec
Delay before attempting initial pdf reload [750000].
.TP
-.B \-position pair
+.B \-position pair
Initial 3D rendering screen position [(0,0)].
.TP
-.B \-prc
+.B \-prc
Embed 3D PRC graphics in PDF output [true].
.TP
-.B \-prompt string
+.B \-prompt string
Prompt [> ].
.TP
-.B \-prompt2 string
+.B \-prompt2 string
Continuation prompt for multiline input [..].
.TP
-.B \-q,\-quiet
+.B \-q,\-quiet
Suppress welcome message [false].
.TP
-.B \-render n
-Render 3D graphics using n pixels per bp (-1=auto) [-1].
+.B \-render n
+Render 3D graphics using n pixels per bp (-1=auto) [0].
.TP
-.B \-resizestep step
+.B \-resizestep step
Resize step [1.2].
.TP
-.B \-reverse
+.B \-reverse
reverse 3D animations [false].
.TP
-.B \-rgb
+.B \-rgb
Convert cmyk colors to rgb [false].
.TP
-.B \-safe
+.B \-safe
Disable system call [true].
.TP
-.B \-scroll n
+.B \-scroll n
Scroll standard output n lines at a time [0].
.TP
-.B \-spinstep deg/s
+.B \-spinstep deg/s
Spin speed [60].
.TP
-.B \-svgemulation
+.B \-svgemulation
Emulate unimplemented SVG shading [false].
.TP
-.B \-tabcompletion
+.B \-tabcompletion
Interactive prompt auto-completion [true].
.TP
-.B \-tex engine
+.B \-tex engine
latex|pdflatex|xelatex|tex|pdftex|context|none [latex].
.TP
-.B \-thick
+.B \-thick
Render thick 3D lines [true].
.TP
-.B \-thin
+.B \-thin
Render thin 3D lines [true].
.TP
-.B \-threads
+.B \-threads
Use POSIX threads for 3D rendering [true].
.TP
-.B \-toolbar
+.B \-toolbar
Show 3D toolbar in PDF output [true].
.TP
-.B \-s,\-translate
+.B \-s,\-translate
Show translated virtual machine code [false].
.TP
-.B \-twice
+.B \-twice
Run LaTeX twice (to resolve references) [false].
.TP
-.B \-twosided
+.B \-twosided
Use two-sided 3D lighting model for rendering [true].
.TP
-.B \-u,\-user string
+.B \-u,\-user string
General purpose user string.
.TP
-.B \-v,\-verbose
+.B \-v,\-verbose
Increase verbosity level (can specify multiple times) [0].
.TP
-.B \-version
+.B \-version
Show version; command-line only.
.TP
-.B \-wait
+.B \-wait
Wait for child processes to finish before exiting [false].
.TP
-.B \-warn string
+.B \-warn string
Enable warning; command-line only.
.TP
-.B \-where
+.B \-where
Show where listed variables are declared [false].
.TP
-.B \-zoomfactor factor
+.B \-zoomfactor factor
Zoom step factor [1.05].
.TP
-.B \-zoomstep step
+.B \-zoomstep step
Mouse motion zoom step [0.1].
.SH SEE ALSO
diff --git a/Master/texmf/doc/man/man1/asy.man1.pdf b/Master/texmf/doc/man/man1/asy.man1.pdf
index b15add600aa..e3b3344fa34 100644
--- a/Master/texmf/doc/man/man1/asy.man1.pdf
+++ b/Master/texmf/doc/man/man1/asy.man1.pdf
Binary files differ
diff --git a/Master/texmf/doc/man/man1/xasy.man1.pdf b/Master/texmf/doc/man/man1/xasy.man1.pdf
index 3a4582db84f..23a8435a0fb 100644
--- a/Master/texmf/doc/man/man1/xasy.man1.pdf
+++ b/Master/texmf/doc/man/man1/xasy.man1.pdf
Binary files differ