summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/curve2e
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/curve2e')
-rw-r--r--Master/texmf-dist/tex/latex/curve2e/curve2e.sty19
1 files changed, 10 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/curve2e/curve2e.sty b/Master/texmf-dist/tex/latex/curve2e/curve2e.sty
index e01f0e2d27b..cbd3c1f2fc3 100644
--- a/Master/texmf-dist/tex/latex/curve2e/curve2e.sty
+++ b/Master/texmf-dist/tex/latex/curve2e/curve2e.sty
@@ -32,11 +32,11 @@
%%
%%
%% File `curve2e.dtx'.
-%% Copyright (C) 2005 Claudio Beccari all rights reserved.
+%% Copyright (C) 2005--2006 Claudio Beccari all rights reserved.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{curve2e}%
- [2005/08/15 v.0.10 Extension package for pict2e]
+ [2006/11/20 v.0.20 Extension package for pict2e]
\RequirePackage{color}
\RequirePackageWithOptions{pict2e}[2004/06/01]
\ifcase\pIIe@mode\relax
@@ -115,9 +115,12 @@
\pIIe@lineto{\@xnum\@linelen}{\@ynum\@linelen}%
\pIIe@strokeGraph\fi
\endgroup}
-\def\Vector(#1,#2){\vector(#1,#2){#1}}
+\def\Vector(#1,#2){%
+\ifdim#1\p@=\z@\vector(#1,#2){#2}
+\else
+\vector(#1,#2){#1}\fi}
\def\VECTOR(#1)(#2){\begingroup
-\SubVect#1 from #2 to \@tempa
+\SubVect#1from#2to\@tempa
\expandafter\put\expandafter(#1){\expandafter\Vector\expandafter(\@tempa)}%
\endgroup\ignorespaces}
\let\lp@r( \let\rp@r)
@@ -305,7 +308,7 @@
\@tempcnta=5\relax
\@whilenum\@tempcnta>\z@\do{\DividE\@tempdima by\@tempdimb to\@T
\advance\@tempdimb \@T\p@ \@tempdimb=.5\@tempdimb
- \advance\@tempcnta\m@ne}%\
+ \advance\@tempcnta\m@ne}%
\@tempdimc=\@T\@tempdimc
\fi
\Numero#2\@tempdimc
@@ -468,8 +471,7 @@
\fi
\SubVect#1from#2to\@V \ModOfVect\@V to\@Raggio \CopyVect#2to\@pPun
\@tdE=\pIIe@FAW\@wholewidth \@tdE=\pIIe@FAL\@tdE
-\Numero\@Freccia\@tdE
-\DividE\@Freccia\p@ by \@Raggio\p@ to\DeltaGradi
+\DividE\@tdE by \@Raggio\unitlength to\DeltaGradi
\@tdD=\DeltaGradi\p@
\@tdD=57.29578\@tdD \Numero\DeltaGradi\@tdD
\@tdD=\ifx\Segno--\fi\@gradi\p@ \Numero\@tempa\@tdD
@@ -505,8 +507,7 @@
\fi
\SubVect#1from#2to\@V \ModOfVect\@V to\@Raggio \CopyVect#2to\@pPun
\@tdE=\pIIe@FAW\@wholewidth \@tdE=0.8\@tdE
-\Numero\@Freccia\@tdE
-\DividE\@Freccia\p@ by \@Raggio\p@ to\DeltaGradi
+\DividE\@tdE by \@Raggio\unitlength to\DeltaGradi
\@tdD=\DeltaGradi\p@ \@tdD=57.29578\@tdD \Numero\DeltaGradi\@tdD
\@tdD=\ifx\Segno--\fi\@gradi\p@ \Numero\@tempa\@tdD
\DirFromAngle\@tempa to\@Dir