summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-07 18:10:02 +0000
committerKarl Berry <karl@freefriends.org>2017-03-07 18:10:02 +0000
commita6dc131e8a2ff8ce660543a262d771380fdf1b4e (patch)
tree33ab70fd89ae0842cedcfce676aaa6d64a9eb7dc /Build/source/utils/asymptote/doc
parent78cc0e8d7d1977f9cf5c8c9ba3d9de81ed6e03a3 (diff)
asy 2.40 sources
git-svn-id: svn://tug.org/texlive/trunk@43422 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/doc')
-rw-r--r--Build/source/utils/asymptote/doc/CAD.pdfbin67492 -> 66788 bytes
-rw-r--r--Build/source/utils/asymptote/doc/FAQ/asy-faq.info2
-rw-r--r--Build/source/utils/asymptote/doc/TeXShopAndAsymptote.pdfbin31451 -> 31971 bytes
-rw-r--r--Build/source/utils/asymptote/doc/asy-latex.dtx4
-rw-r--r--Build/source/utils/asymptote/doc/asy-latex.pdfbin194740 -> 194549 bytes
-rw-r--r--Build/source/utils/asymptote/doc/asyRefCard.pdfbin53672 -> 54962 bytes
-rw-r--r--Build/source/utils/asymptote/doc/asymptote.pdfbin1288922 -> 1295210 bytes
-rw-r--r--Build/source/utils/asymptote/doc/asymptote.sty4
-rw-r--r--Build/source/utils/asymptote/doc/asymptote.texi13
-rw-r--r--Build/source/utils/asymptote/doc/png/asymptote.info170
10 files changed, 105 insertions, 88 deletions
diff --git a/Build/source/utils/asymptote/doc/CAD.pdf b/Build/source/utils/asymptote/doc/CAD.pdf
index a7b2400fd9b..d860754a68e 100644
--- a/Build/source/utils/asymptote/doc/CAD.pdf
+++ b/Build/source/utils/asymptote/doc/CAD.pdf
Binary files differ
diff --git a/Build/source/utils/asymptote/doc/FAQ/asy-faq.info b/Build/source/utils/asymptote/doc/FAQ/asy-faq.info
index b213a530b1e..9611808e431 100644
--- a/Build/source/utils/asymptote/doc/FAQ/asy-faq.info
+++ b/Build/source/utils/asymptote/doc/FAQ/asy-faq.info
@@ -10,7 +10,7 @@ END-INFO-DIR-ENTRY
File: asy-faq.info, Node: Top, Next: Question 1.1, Up: (dir)
ASYMPTOTE FREQUENTLY ASKED QUESTIONS
- 12 May 2016
+ 01 Mar 2017
This is the list of Frequently Asked Questions about Asymptote (asy).
diff --git a/Build/source/utils/asymptote/doc/TeXShopAndAsymptote.pdf b/Build/source/utils/asymptote/doc/TeXShopAndAsymptote.pdf
index e6c32ee7055..469c6676b58 100644
--- a/Build/source/utils/asymptote/doc/TeXShopAndAsymptote.pdf
+++ b/Build/source/utils/asymptote/doc/TeXShopAndAsymptote.pdf
Binary files differ
diff --git a/Build/source/utils/asymptote/doc/asy-latex.dtx b/Build/source/utils/asymptote/doc/asy-latex.dtx
index 6295794102d..943037c93e4 100644
--- a/Build/source/utils/asymptote/doc/asy-latex.dtx
+++ b/Build/source/utils/asymptote/doc/asy-latex.dtx
@@ -38,7 +38,7 @@ Licence: GPL2+
%</driver>
%<pkg>\ProvidesPackage{asymptote}
%<*pkg>
- [2016/11/14 v1.32 Asymptote style file for LaTeX]
+ [2016/11/26 v1.33 Asymptote style file for LaTeX]
%</pkg>
%
%<*driver>
@@ -488,10 +488,8 @@ Licence: GPL2+
if(!settings.multipleView) settings.batchView=false;^^J%
\ifxetex
settings.tex="xelatex";^^J%
- nosetpagesize();^^J%
\else\ifASYPDF
settings.tex="pdflatex";^^J%
- nosetpagesize();^^J%
\fi\fi
\ifASYinline
settings.inlinetex=true;^^J%
diff --git a/Build/source/utils/asymptote/doc/asy-latex.pdf b/Build/source/utils/asymptote/doc/asy-latex.pdf
index 7e15edf6287..d8c9d9f570e 100644
--- a/Build/source/utils/asymptote/doc/asy-latex.pdf
+++ b/Build/source/utils/asymptote/doc/asy-latex.pdf
Binary files differ
diff --git a/Build/source/utils/asymptote/doc/asyRefCard.pdf b/Build/source/utils/asymptote/doc/asyRefCard.pdf
index b64189979a5..82dcd2049d1 100644
--- a/Build/source/utils/asymptote/doc/asyRefCard.pdf
+++ b/Build/source/utils/asymptote/doc/asyRefCard.pdf
Binary files differ
diff --git a/Build/source/utils/asymptote/doc/asymptote.pdf b/Build/source/utils/asymptote/doc/asymptote.pdf
index 1b43272e3d9..b92d6b9aa61 100644
--- a/Build/source/utils/asymptote/doc/asymptote.pdf
+++ b/Build/source/utils/asymptote/doc/asymptote.pdf
Binary files differ
diff --git a/Build/source/utils/asymptote/doc/asymptote.sty b/Build/source/utils/asymptote/doc/asymptote.sty
index 94fdd4fe7a0..715a291e8ac 100644
--- a/Build/source/utils/asymptote/doc/asymptote.sty
+++ b/Build/source/utils/asymptote/doc/asymptote.sty
@@ -9,7 +9,7 @@
%% The ASYMPTOTE package
%%
%% (C) 2003 Tom Prince
-%% (C) 2003-2015 John Bowman
+%% (C) 2003-2016 John Bowman
%% (C) 2010 Will Robertson
%%
%% Adapted from comment.sty
@@ -17,7 +17,7 @@
%% Licence: GPL2+
%%
\ProvidesPackage{asymptote}
- [2016/02/09 v1.30 Asymptote style file for LaTeX]
+ [2016/11/26 v1.33 Asymptote style file for LaTeX]
\def\Asymptote{{\tt Asymptote}}
\InputIfFileExists{\jobname.pre}{}{}
\newbox\ASYbox
diff --git a/Build/source/utils/asymptote/doc/asymptote.texi b/Build/source/utils/asymptote/doc/asymptote.texi
index 47b67a23736..0c7d92a297a 100644
--- a/Build/source/utils/asymptote/doc/asymptote.texi
+++ b/Build/source/utils/asymptote/doc/asymptote.texi
@@ -5733,6 +5733,16 @@ real[] a={2.5,-3.5};
int[] b=(int []) a;
write(stdout,b); // Outputs 2,-3
@end verbatim
+In situations where casting from a string to a type @code{T} fails,
+an uninitialized variable is returned; this condition can be detected
+with the function @code{bool initialized(T);}
+@verbatim
+int i=(int) "2.5";
+assert(initialized(i),"Invalid cast.");
+
+real x=(real) "2.5a";
+assert(initialized(x),"Invalid cast.");
+@end verbatim
@cindex @code{operator cast}
Casting to user-defined types is also possible using @code{operator cast}:
@@ -5760,6 +5770,7 @@ straightforward implementation
@verbatim
real operator cast(int x) {return x*100;}
@end verbatim
+@noindent
is equivalent to an infinite recursion, since the result @code{x*100}
needs itself to be cast from an integer to a real. Instead, we want to
use the standard conversion of int to real:
@@ -6095,7 +6106,7 @@ to the type. This is regardless of what fields the variable actually possesses.
@cindex @code{asymptote.sty}
@code{Asymptote} comes with a convenient @code{LaTeX} style file
-@code{asymptote.sty} (v1.30 or later required) that makes @code{LaTeX}
+@code{asymptote.sty} (v1.33 or later required) that makes @code{LaTeX}
@code{Asymptote}-aware. Entering @code{Asymptote} code
directly into the @code{LaTeX} source file, at the point where it is
needed, keeps figures organized and avoids the need to invent new file
diff --git a/Build/source/utils/asymptote/doc/png/asymptote.info b/Build/source/utils/asymptote/doc/png/asymptote.info
index 68ca0b2a442..6acdfabd1fd 100644
--- a/Build/source/utils/asymptote/doc/png/asymptote.info
+++ b/Build/source/utils/asymptote/doc/png/asymptote.info
@@ -1,7 +1,7 @@
This is asymptote.info, produced by makeinfo version 6.0 from
asymptote.texi.
-This file documents 'Asymptote', version 2.38.
+This file documents 'Asymptote', version 2.40.
<http://asymptote.sourceforge.net>
@@ -22,7 +22,7 @@ File: asymptote.info, Node: Top, Next: Description, Prev: (dir), Up: (dir)
Asymptote
*********
-This file documents 'Asymptote', version 2.38.
+This file documents 'Asymptote', version 2.40.
<http://asymptote.sourceforge.net>
@@ -4454,6 +4454,14 @@ string s=(string) 2.5;
real[] a={2.5,-3.5};
int[] b=(int []) a;
write(stdout,b); // Outputs 2,-3
+ In situations where casting from a string to a type 'T' fails, an
+uninitialized variable is returned; this condition can be detected with
+the function 'bool initialized(T);'
+int i=(int) "2.5";
+assert(initialized(i),"Invalid cast.");
+
+real x=(real) "2.5a";
+assert(initialized(x),"Invalid cast.");
Casting to user-defined types is also possible using 'operator cast':
struct rpair {
@@ -4476,9 +4484,9 @@ some code one wants all integers to represent multiples of 100. To
convert them to reals, one would first want to multiply them by 100.
However, the straightforward implementation
real operator cast(int x) {return x*100;}
- is equivalent to an infinite recursion, since the result 'x*100'
-needs itself to be cast from an integer to a real. Instead, we want to
-use the standard conversion of int to real:
+is equivalent to an infinite recursion, since the result 'x*100' needs
+itself to be cast from an integer to a real. Instead, we want to use
+the standard conversion of int to real:
real convert(int x) {return x*100;}
real operator cast(int x)=convert;
@@ -4741,7 +4749,7 @@ File: asymptote.info, Node: LaTeX usage, Next: Base modules, Prev: Programmin
***************
'Asymptote' comes with a convenient 'LaTeX' style file 'asymptote.sty'
-(v1.30 or later required) that makes 'LaTeX' 'Asymptote'-aware.
+(v1.33 or later required) 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
@@ -9523,8 +9531,8 @@ Index
* 'operator --': graph. (line 30)
* 'operator ..': graph. (line 33)
* 'operator answer': Interactive mode. (line 35)
-* 'operator cast': Casts. (line 30)
-* 'operator ecast': Casts. (line 57)
+* 'operator cast': Casts. (line 38)
+* 'operator ecast': Casts. (line 65)
* 'operator init': Variable initializers.
(line 6)
* 'operator init' <1>: Structures. (line 134)
@@ -10159,78 +10167,78 @@ Ref: tridiagonal173531
Ref: solve174762
Node: Slices178901
Node: Casts182809
-Node: Import184780
-Node: Static190027
-Node: LaTeX usage192920
-Node: Base modules199425
-Node: plain201982
-Node: simplex202656
-Node: math202930
-Node: interpolate205639
-Node: geometry205918
-Node: trembling206512
-Node: stats206781
-Node: patterns207041
-Node: markers207277
-Node: tree209137
-Node: binarytree209322
-Node: drawtree209988
-Node: syzygy210189
-Node: feynman210463
-Node: roundedpath210738
-Node: animation211021
-Ref: animate211442
-Node: embed212559
-Node: slide213514
-Node: MetaPost213855
-Node: unicode214574
-Node: latin1215448
-Node: babel215817
-Node: labelpath216047
-Node: labelpath3216868
-Node: annotate217179
-Node: CAD217649
-Node: graph217960
-Ref: ticks225110
-Ref: pathmarkers238742
-Ref: marker239212
-Ref: markuniform239566
-Ref: errorbars241364
-Ref: automatic scaling245648
-Node: palette256924
-Ref: images257042
-Ref: image261216
-Ref: logimage261736
-Ref: penimage262841
-Ref: penfunctionimage263103
-Node: three263874
-Ref: PostScript3D290883
-Node: obj292622
-Node: graph3292871
-Ref: GaussianSurface298150
-Node: grid3299299
-Node: solids300083
-Node: tube301075
-Node: flowchart303309
-Node: contour307917
-Node: contour3313228
-Node: smoothcontour3313541
-Node: slopefield315260
-Node: ode316748
-Node: Options317005
-Ref: configuration file323168
-Ref: settings323168
-Ref: texengines324411
-Ref: convert324411
-Node: Interactive mode327734
-Ref: history329883
-Node: GUI331187
-Node: GUI installation331738
-Node: GUI usage332649
-Node: PostScript to Asymptote333557
-Node: Help334315
-Node: Debugger335969
-Node: Credits337725
-Node: Index338707
+Node: Import185076
+Node: Static190323
+Node: LaTeX usage193216
+Node: Base modules199721
+Node: plain202278
+Node: simplex202952
+Node: math203226
+Node: interpolate205935
+Node: geometry206214
+Node: trembling206808
+Node: stats207077
+Node: patterns207337
+Node: markers207573
+Node: tree209433
+Node: binarytree209618
+Node: drawtree210284
+Node: syzygy210485
+Node: feynman210759
+Node: roundedpath211034
+Node: animation211317
+Ref: animate211738
+Node: embed212855
+Node: slide213810
+Node: MetaPost214151
+Node: unicode214870
+Node: latin1215744
+Node: babel216113
+Node: labelpath216343
+Node: labelpath3217164
+Node: annotate217475
+Node: CAD217945
+Node: graph218256
+Ref: ticks225406
+Ref: pathmarkers239038
+Ref: marker239508
+Ref: markuniform239862
+Ref: errorbars241660
+Ref: automatic scaling245944
+Node: palette257220
+Ref: images257338
+Ref: image261512
+Ref: logimage262032
+Ref: penimage263137
+Ref: penfunctionimage263399
+Node: three264170
+Ref: PostScript3D291179
+Node: obj292918
+Node: graph3293167
+Ref: GaussianSurface298446
+Node: grid3299595
+Node: solids300379
+Node: tube301371
+Node: flowchart303605
+Node: contour308213
+Node: contour3313524
+Node: smoothcontour3313837
+Node: slopefield315556
+Node: ode317044
+Node: Options317301
+Ref: configuration file323464
+Ref: settings323464
+Ref: texengines324707
+Ref: convert324707
+Node: Interactive mode328030
+Ref: history330179
+Node: GUI331483
+Node: GUI installation332034
+Node: GUI usage332945
+Node: PostScript to Asymptote333853
+Node: Help334611
+Node: Debugger336265
+Node: Credits338021
+Node: Index339003

End Tag Table