summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/doc/asymptote.texi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-05 22:26:04 +0000
committerKarl Berry <karl@freefriends.org>2010-07-05 22:26:04 +0000
commit648027bec248a7b000741a507b507f6d89941ce5 (patch)
treece3b82b43a8b17403eda43db782bbf2e5bf0e161 /Build/source/utils/asymptote/doc/asymptote.texi
parent5ff8f96c8ab3bd3aeb8fed8d512c57134fb2a6cc (diff)
asy 2.00
git-svn-id: svn://tug.org/texlive/trunk@19250 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/doc/asymptote.texi')
-rw-r--r--Build/source/utils/asymptote/doc/asymptote.texi26
1 files changed, 20 insertions, 6 deletions
diff --git a/Build/source/utils/asymptote/doc/asymptote.texi b/Build/source/utils/asymptote/doc/asymptote.texi
index 7c4f3d4e9d3..8eb575e2b03 100644
--- a/Build/source/utils/asymptote/doc/asymptote.texi
+++ b/Build/source/utils/asymptote/doc/asymptote.texi
@@ -101,7 +101,7 @@ Programming
* Functions:: Traditional and high-order functions
* Arrays:: Dynamic vectors
* Casts:: Implicit and explicit casts
-* Import:: Importing external @code{Asymptote} packages
+* Import:: Importing external @code{Asymptote} modules
* Static:: Where to allocate your variable?
Operators
@@ -1735,7 +1735,7 @@ In addition, it supports many features beyond the ones found in those languages.
* Functions:: Traditional and high-order functions
* Arrays:: Dynamic vectors
* Casts:: Implicit and explicit casts
-* Import:: Importing external @code{Asymptote} packages
+* Import:: Importing external @code{Asymptote} modules
* Static:: Where to allocate your variable?
@end menu
@@ -2923,7 +2923,7 @@ The base align setting of a pen is returned by
@cindex @code{fontsize}
@cindex @code{lineskip}
@cindex @code{defaultpen}
-@cindex @code{fix-cm}
+@cindex @code{type1cm}
@item The font size is specified in @TeX{} points (1 pt = 1/72.27 inches) with
the function @code{pen fontsize(real size, real lineskip=1.2*size)}.
The default font size, 12pt, may be changed with @code{defaultpen(pen)}.
@@ -2931,10 +2931,10 @@ Nonstandard font sizes may require inserting
@verbatim
import fontsize;
@end verbatim
-at the beginning of the file (this requires the @code{fix-cm} package
+at the beginning of the file (this requires the @code{type1cm} package
available from
@quotation
-@url{http://www.ctan.org/tex-archive/help/Catalogue/entries/fix-cm}
+@url{http://www.ctan.org/tex-archive/help/Catalogue/entries/type1cm}
@end quotation
and included in recent @code{LaTeX} distributions). The font size and line
skip of a pen can be examined with the routines
@@ -3940,6 +3940,14 @@ real y=4.3;
pen reddash=red+dashed;
@end verbatim
+@code{var} may also be used with the extended @code{for} loop syntax.
+
+@verbatim
+int[] a = {1,2,3};
+for (var x : a)
+ write(x);
+@end verbatim
+
@node Structures
@section Structures
@cindex @code{struct}
@@ -5953,7 +5961,13 @@ pdflatex latexusage
To switch between using @code{latex} and @code{pdflatex} you may first
need to remove the files @code{latexusage-*}, @code{latexusage_.pre}, and
-@code{latexusage.aux}.
+@code{latexusage.aux}. Version 1.13 of @code{Asymptote.sty} supports
+processing each figure separately: @code{asy latexusage} is equivalent
+to @code{asy latexusage-*.asy}. For example, one may wish to reduce
+memory usage by generating each figure in a separate @code{UNIX} process:
+@verbatim
+/bin/ls latexusage-*.asy | xargs --replace=% asy %
+@end verbatim
@cindex @code{width}
@cindex @code{height}