summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/curve2e
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-18 21:21:16 +0000
committerKarl Berry <karl@freefriends.org>2020-01-18 21:21:16 +0000
commit32cb1ccea600603699ec4a8f9a91a226f84eed4a (patch)
tree5040e9c100719bd6b4915cca1eb762594afd13be /Master/texmf-dist/tex/latex/curve2e
parentc2dd7eab8bdf1793077061366a8be08802846af3 (diff)
curve2e (18jan20)
git-svn-id: svn://tug.org/texlive/trunk@53447 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/curve2e')
-rw-r--r--Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty6
-rw-r--r--Master/texmf-dist/tex/latex/curve2e/curve2e.sty45
2 files changed, 14 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty b/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty
index b2aae70aace..3c70a476206 100644
--- a/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty
+++ b/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty
@@ -9,9 +9,6 @@
%% Copyright (C) 2005--2020 Claudio Beccari all rights reserved.
%% License information appended
%%
-
-
-
\NeedsTeXFormat{LaTeX2e}[2016/01/01]
\ProvidesPackage{curve2e-v161}%
[2019/02/07 v.1.61 Extension package for pict2e]
@@ -889,12 +886,11 @@
%%
-%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%%
-%% This work is "author-maintained"
+%% This work is "maintained"
%%
%% This work consists of file curve2e.dtx, and the derived files
%% curve2e.sty and curve2e.pdf, plus the auxiliary derived files
diff --git a/Master/texmf-dist/tex/latex/curve2e/curve2e.sty b/Master/texmf-dist/tex/latex/curve2e/curve2e.sty
index 878e6610710..e725c0ad49b 100644
--- a/Master/texmf-dist/tex/latex/curve2e/curve2e.sty
+++ b/Master/texmf-dist/tex/latex/curve2e/curve2e.sty
@@ -11,10 +11,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2019/01/01]
\ProvidesPackage{curve2e}%
- [2020-01-05 v.2.0.8 Extension package for pict2e]
-
-
-
+ [2020-01-18 v.2.2.0 Extension package for pict2e]
\IfFileExists{xfp.sty}{%
\RequirePackage{color}
\RequirePackageWithOptions{pict2e}[2014/01/01]
@@ -127,32 +124,17 @@
\ignorespaces}
\fi
\ifx\Dotline\undefined
- \def\Dotline{\@ifstar{\Dotline@}{\Dotline@}}% backwards compatibility
- \def\Dotline@(#1)(#2)#3{\put(#1){%
- \IsPolar#2:?{% Polar
- \Dotline@@(0,0)(#2){#3}}
- {% Cartesian
- \CopyVect#1to\V@ttA
- \CopyVect#2to\V@ttB
- \SubVect\V@ttA from\V@ttB to\V@ttC
- \Dotline@@(0,0)(\V@ttC){#3}}%
- }}
-
- \def\Dotline@@(#1)(#2)#3{%
- \countdef\NumA 3254\relax
- \countdef\NumB 3255\relax
- \CopyVect#1to\V@ttA
- \CopyVect#2to\V@ttB
- \SubVect\V@ttA from\V@ttB to\V@ttC
- \ModOfVect\V@ttC to\DotlineMod
- \DivideFN\DotlineMod by#3 to\NumD
- \NumA=\fpeval{trunc(\NumD,0)}\relax
- \Divvect{\V@ttC}{\NumA,0}\V@ttB
- \advance\NumA\@ne
- \put(\V@ttA){\multiput(0,0)(\V@ttB){\NumA}{\makebox(0,0)%
- {\circle*{0.5}}}}
- \ignorespaces
- }%
+ \providecommand\Dotline{}
+ \RenewDocumentCommand\Dotline{R(){0,0} R(){1,0} m O{1mm}}{%
+ \put(#1){\edef\Diam{\fpeval{{#4}/\unitlength}}%
+ \IsPolar#2:?{\CopyVect#2to\DirDot}%
+ {\SubVect#1from#2to\DirDot}%
+ \countdef\NumA=3254\relax
+ \ModAndAngleOfVect\DirDot to\ModDirDot and\AngDirDot
+ \edef\NumA{\fpeval{trunc(\ModDirDot/{#3},0)}}%
+ \edef\ModDirDot{\fpeval{\ModDirDot/\NumA}}%
+ \multiput(0,0)(\AngDirDot:\ModDirDot){\inteval{\NumA+1}}%
+ {\makebox(0,0){\circle*{\Diam}}}}\ignorespaces}
\fi
\AtBeginDocument{\@ifpackageloaded{eso-pic}{%
\renewcommand\LenToUnit[1]{\strip@pt\dimexpr#1*\p@/\unitlength}}{}}%
@@ -762,12 +744,11 @@
\ignorespaces}
%%
-%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%%
-%% This work is "author-maintained"
+%% This work is "maintained"
%%
%% This work consists of file curve2e.dtx, and the derived files
%% curve2e.sty and curve2e.pdf, plus the auxiliary derived files