texlive[49974] Master/texmf-dist: curve2e (8feb19)

commits+karl at tug.org commits+karl at tug.org
Fri Feb 8 23:55:02 CET 2019


Revision: 49974
          http://tug.org/svn/texlive?view=revision&revision=49974
Author:   karl
Date:     2019-02-08 23:55:02 +0100 (Fri, 08 Feb 2019)
Log Message:
-----------
curve2e (8feb19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/curve2e/README.txt
    trunk/Master/texmf-dist/doc/latex/curve2e/curve2e.pdf
    trunk/Master/texmf-dist/doc/latex/curve2e/manifest.txt
    trunk/Master/texmf-dist/source/latex/curve2e/curve2e.dtx
    trunk/Master/texmf-dist/tex/latex/curve2e/curve2e.sty

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/curve2e/README

Deleted: trunk/Master/texmf-dist/doc/latex/curve2e/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/curve2e/README	2019-02-08 22:54:50 UTC (rev 49973)
+++ trunk/Master/texmf-dist/doc/latex/curve2e/README	2019-02-08 22:55:02 UTC (rev 49974)
@@ -1,56 +0,0 @@
-%%
-%% This is file `README.txt',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% curve2e.dtx  (with options: `readme')
-%% 
-%%   Copyright (C)  2005--2015 Claudio Beccari  all rights reserved.
-%%   License information appended
-%% 
-File README.txt for package curve2e
-        [2015/07/11 v.1.60 Extension package for pict2e]
-
-
-This file is an extension of the package pict2e.sty which extends the standard
-picture LaTeX environment according to what Leslie Lamport specified in the
-second edition of his LaTeX manual.
-
-This further extension allows to draw lines and vectors with any non integer
-slope parameters, to draw dashed lined of any slope, to draw arcs and curved
-vectors, to draw curves where just the interpolating nodes are specified
-together with the slopes at the nodes; closed paths of any shape can be filled
-with color; all coordinates are treated as ordered pairs, i.e. 'complex numbers'.
-Some of these features have been incorporated in the 2011 version of pict2e;
-therefore this package avoids any modification to the original pict2e commands.
-
-Curve2e now accepts polar coordinates in addition to the usual cartesian ones;
-several macros have been upgraded and a new macro for tracing cubic Bezier
-splines with their control nodes specified in polar form is available.
-
-This version solves a conflict with package eso-pic.
-
-This version of curve2e is fully compatible with pict2e dated 2014/01/12
-version 0.2z.
-
-If you specify
-
-\usepackage[<pict2e options>]{curve2e}
-
-the package pict2e is automatically invoked with the specified options.
-
-%% 
-%% 
-%% 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 consists of file curve2e.dtx, and the derived files
-%% curve2e.sty and curve2e.pdf, plus the auxiliary derived files
-%% README.txt and manifest.txt.
-%% 
-%%
-%% End of file `README.txt'.

Modified: trunk/Master/texmf-dist/doc/latex/curve2e/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/curve2e/README.txt	2019-02-08 22:54:50 UTC (rev 49973)
+++ trunk/Master/texmf-dist/doc/latex/curve2e/README.txt	2019-02-08 22:55:02 UTC (rev 49974)
@@ -6,11 +6,11 @@
 %%
 %% curve2e.dtx  (with options: `readme')
 %% 
-%%   Copyright (C)  2005--2015 Claudio Beccari  all rights reserved.
+%%   Copyright (C)  2005--2019 Claudio Beccari  all rights reserved.
 %%   License information appended
 %% 
 File README.txt for package curve2e
-        [2015/07/11 v.1.60 Extension package for pict2e]
+        [2019/02/07 v.1.61 Extension package for pict2e]
 
 
 This file is an extension of the package pict2e.sty which extends the standard

Modified: trunk/Master/texmf-dist/doc/latex/curve2e/curve2e.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/curve2e/manifest.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/curve2e/manifest.txt	2019-02-08 22:54:50 UTC (rev 49973)
+++ trunk/Master/texmf-dist/doc/latex/curve2e/manifest.txt	2019-02-08 22:55:02 UTC (rev 49974)
@@ -6,11 +6,11 @@
 %%
 %% curve2e.dtx  (with options: `manifest')
 %% 
-%%   Copyright (C)  2005--2015 Claudio Beccari  all rights reserved.
+%%   Copyright (C)  2005--2019 Claudio Beccari  all rights reserved.
 %%   License information appended
 %% 
 File manifest.txt for package curve2e
-        [2015/07/11 v.1.60 Extension package for pict2e]
+        [2019/02/07 v.1.61 Extension package for pict2e]
 
 
 The package bundle curve2e is composed of the following files

Modified: trunk/Master/texmf-dist/source/latex/curve2e/curve2e.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/curve2e/curve2e.dtx	2019-02-08 22:54:50 UTC (rev 49973)
+++ trunk/Master/texmf-dist/source/latex/curve2e/curve2e.dtx	2019-02-08 22:55:02 UTC (rev 49974)
@@ -6,7 +6,7 @@
 \keepsilent
 \preamble
 
-  Copyright (C)  2005--2015 Claudio Beccari  all rights reserved.
+  Copyright (C)  2005--2019 Claudio Beccari  all rights reserved.
   License information appended
   
 \endpreamble
@@ -39,7 +39,7 @@
 %
 % \iffalse
 %<*package>
-%<package>\NeedsTeXFormat{LaTeX2e}[2014/05/01]
+%<package>\NeedsTeXFormat{LaTeX2e}[2016/01/01]
 %</package>
 %<*driver>
 \ProvidesFile{curve2e.dtx}%
@@ -48,7 +48,7 @@
 %<+readme>File README.txt for package curve2e
 %<+manifest>File manifest.txt for package curve2e
 %<*package|readme|manifest>
-        [2015/07/11 v.1.60 Extension package for pict2e]
+        [2019/02/07 v.1.61 Extension package for pict2e]
 %</package|readme|manifest>
 %<*driver>
 \documentclass{ltxdoc}\errorcontextlines=9
@@ -100,7 +100,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{3087}
+% \CheckSum{3138}
 % \begin{abstract}
 % This file documents the |curve2e| extension package to the recent
 % implementation of the |pict2e| bundle that has been described by Lamport
@@ -641,7 +641,7 @@
 %	\Curve*(2.5,0)<1,1>(5,3.5)<0,1>(4,5)<-1,0>(2.5,3.5)<-0.5,-1.2>[-0.5,1.2](1,5)<-1,0>(0,3.5)<0,-1>(2.5,0)<1,-1>}
 %	\end{picture}
 %	\end{minipage}
-%\caption{Coloring the inside of a closeded path drawn with \texttt{\string\Curve*}}
+%\caption{Coloring the inside of a closed path drawn with \texttt{\string\Curve*}}
 %\label{fig:colored-curve}
 
 %	\end{figure}
@@ -734,6 +734,7 @@
 %    \begin{macrocode}
 \RequirePackage{color}
 \RequirePackageWithOptions{pict2e}[2014/01/01]
+\RequirePackage{xparse}
 %    \end{macrocode}
 %
 % The next macros are just for debugging. With the \texttt{trace} package it
@@ -1343,6 +1344,52 @@
     \@ifnextchar\lp at r{\p at lyline}{\strokepath\ignorespaces}}
 %    \end{macrocode}
 %
+% The same treatment must be done for the \cs{polygon} macros
+%    \begin{macrocode}
+\providecommand\polygon{} 
+\RenewDocumentCommand\polygon{s O{\beveljoin} }{\@killglue\begingroup
+\IfBooleanTF{#1}{\@tempswatrue}{\@tempswafalse}%
+\@polygon[#2]} 
+ 
+\def\@polygon[#1](#2){\@killglue#1\GetCoord(#2)\d at mX\d at mY
+    \pIIe at moveto{\d at mX\unitlength}{\d at mY\unitlength}%
+    \@ifnextchar\lp at r{\@@polygon}{%
+    \PackageWarning{curve2e}%
+    {Polygons require at least two vertices!\MessageBreak
+     Control your polygon specification\MessageBreak}%
+    \ignorespaces}}
+      
+  \def\@@polygon(#1){\GetCoord(#1)\d at mX\d at mY
+    \pIIe at lineto{\d at mX\unitlength}{\d at mY\unitlength}%
+    \@ifnextchar\lp at r{\@@polygon}{\pIIe at closepath
+      \if at tempswa\pIIe at fillGraph\else\pIIe at strokeGraph\fi
+      \endgroup
+      \ignorespaces}}
+%    \end{macrocode}
+% Now, for example, a filled polygon can be drawn using polar coordinates
+% for its vertices; see figure~\ref{fig:filled-polygon}
+%
+%  \begin{figure}
+%  \begin{minipage}{0.55\textwidth}
+%\begin{verbatim}
+%  \unitlength=0.07\hsize
+%  \begin{picture}(8,8)(-4,-4)\color{red}
+%  \polygon*(45:4)(135:4)(-135:4)(-45:4)
+%  \end{picture}
+%\end{verbatim}
+%  \end{minipage}
+%  \hfill
+%  \begin{minipage}{0.4\textwidth}\centering
+%  \unitlength=0.07\hsize
+%  \begin{picture}(8,8)(-4,-4)\color{red}
+%  \polygon*(45:4)(135:4)(-135:4)(-45:4)
+%  \end{picture}
+%  \end{minipage}
+%  \caption{The code and the result of defining a polygon with its vertex
+%  polar coordinates}\label{fig:filled-polygon}
+%  \end{figure}
+%  
+%
 % \subsection{The red service grid}
 % The next command is very useful for debugging while editing one's drawings;
 % it draws a red grid with square meshes that are ten drawing units apart;

Modified: trunk/Master/texmf-dist/tex/latex/curve2e/curve2e.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/curve2e/curve2e.sty	2019-02-08 22:54:50 UTC (rev 49973)
+++ trunk/Master/texmf-dist/tex/latex/curve2e/curve2e.sty	2019-02-08 22:55:02 UTC (rev 49974)
@@ -6,16 +6,17 @@
 %%
 %% curve2e.dtx  (with options: `package')
 %% 
-%%   Copyright (C)  2005--2015 Claudio Beccari  all rights reserved.
+%%   Copyright (C)  2005--2019 Claudio Beccari  all rights reserved.
 %%   License information appended
 %% 
-\NeedsTeXFormat{LaTeX2e}[2014/05/01]
+\NeedsTeXFormat{LaTeX2e}[2016/01/01]
 \ProvidesPackage{curve2e}%
-        [2015/07/11 v.1.60 Extension package for pict2e]
+        [2019/02/07 v.1.61 Extension package for pict2e]
 
 
 \RequirePackage{color}
 \RequirePackageWithOptions{pict2e}[2014/01/01]
+\RequirePackage{xparse}
 \def\TRON{\tracingcommands\tw@ \tracingmacros\tw@}%
 \def\TROF{\tracingcommands\z@ \tracingmacros\z@}%
 \ifx\undefined\@tdA \newdimen\@tdA \fi
@@ -55,17 +56,17 @@
    \countdef\NumA3254\countdef\NumB3252\relax
    \GetCoord(#1)\@tA\@tB \MakeVectorFrom\@tA\@tB to\V at ttA
    \GetCoord(#2)\@tA\@tB \MakeVectorFrom\@tA\@tB to\V at ttB
-   \SubVect\V at ttA from\V at ttB to\V at ttC
-   \ModOfVect\V at ttC to\DlineMod
-   \DivideFN\DlineMod by#3 to\NumD
-   \NumA\expandafter\Integer\NumD.??
-   \ifodd\NumA\else\advance\NumA\@ne\fi
-   \NumB=\NumA \divide\NumB\tw@
-   \DividE\DlineMod\p@ by\NumA\p@  to\D at shMod
-   \DividE\p@ by\NumA\p@ to \@tempa
-   \MultVect\V at ttC by\@tempa,0 to\V at ttB
+   \SubVect\V at ttA from\V at ttB to\V at ttC  
+   \ModOfVect\V at ttC to\DlineMod  
+   \DivideFN\DlineMod by#3 to\NumD  
+   \NumA\expandafter\Integer\NumD.??  
+   \ifodd\NumA\else\advance\NumA\@ne\fi  
+   \NumB=\NumA \divide\NumB\tw@  
+   \DividE\DlineMod\p@ by\NumA\p@  to\D at shMod  
+   \DividE\p@ by\NumA\p@ to \@tempa  
+   \MultVect\V at ttC by\@tempa,0 to\V at ttB 
    \MultVect\V at ttB by 2,0 to\V at ttC
-   \advance\NumB\@ne
+   \advance\NumB\@ne 
    \edef\@mpt{\noexpand\egroup
    \noexpand\multiput(\V at ttA)(\V at ttC){\number\NumB}%
       {\noexpand\LIne(\V at ttB)}}%
@@ -177,6 +178,25 @@
 \def\p at lyline(#1){\GetCoord(#1)\d at mX\d at mY
     \pIIe at lineto{\d at mX\unitlength}{\d at mY\unitlength}%
     \@ifnextchar\lp at r{\p at lyline}{\strokepath\ignorespaces}}
+\providecommand\polygon{}
+\RenewDocumentCommand\polygon{s O{\beveljoin} }{\@killglue\begingroup
+\IfBooleanTF{#1}{\@tempswatrue}{\@tempswafalse}%
+\@polygon[#2]}
+
+\def\@polygon[#1](#2){\@killglue#1\GetCoord(#2)\d at mX\d at mY
+    \pIIe at moveto{\d at mX\unitlength}{\d at mY\unitlength}%
+    \@ifnextchar\lp at r{\@@polygon}{%
+    \PackageWarning{curve2e}%
+    {Polygons require at least two vertices!\MessageBreak
+     Control your polygon specification\MessageBreak}%
+    \ignorespaces}}
+
+  \def\@@polygon(#1){\GetCoord(#1)\d at mX\d at mY
+    \pIIe at lineto{\d at mX\unitlength}{\d at mY\unitlength}%
+    \@ifnextchar\lp at r{\@@polygon}{\pIIe at closepath
+      \if at tempswa\pIIe at fillGraph\else\pIIe at strokeGraph\fi
+      \endgroup
+      \ignorespaces}}
 \def\GraphGrid(#1,#2){\bgroup\textcolor{red}{\linethickness{.1\p@}%
 \RoundUp#1modulo10to\@GridWd \RoundUp#2modulo10to\@GridHt
 \@tempcnta=\@GridWd \divide\@tempcnta10\relax \advance\@tempcnta\@ne



More information about the tex-live-commits mailing list