texlive[49513] Master/texmf-dist: randomwalk (28dec18)

commits+karl at tug.org commits+karl at tug.org
Fri Dec 28 22:31:47 CET 2018


Revision: 49513
          http://tug.org/svn/texlive?view=revision&revision=49513
Author:   karl
Date:     2018-12-28 22:31:47 +0100 (Fri, 28 Dec 2018)
Log Message:
-----------
randomwalk (28dec18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/randomwalk/README.md
    trunk/Master/texmf-dist/doc/latex/randomwalk/randomwalk.pdf
    trunk/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx
    trunk/Master/texmf-dist/tex/latex/randomwalk/randomwalk.sty

Modified: trunk/Master/texmf-dist/doc/latex/randomwalk/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/randomwalk/README.md	2018-12-28 21:31:34 UTC (rev 49512)
+++ trunk/Master/texmf-dist/doc/latex/randomwalk/README.md	2018-12-28 21:31:47 UTC (rev 49513)
@@ -1,6 +1,6 @@
 Random Walks for LaTeX
 =================================
-* E-mail: blflatex at gmail.com
+* E-mail: blflatex+randomwalk at gmail.com
 * Released under the LaTeX Project Public License v1.3c or later
   See http://www.latex-project.org/lppl.txt
 

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

Modified: trunk/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx	2018-12-28 21:31:34 UTC (rev 49512)
+++ trunk/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx	2018-12-28 21:31:47 UTC (rev 49513)
@@ -1,8 +1,8 @@
 % \iffalse
-%% File: randomwalk.dtx Copyright (C) 2011-2017 Bruno Le Floch
+%% File: randomwalk.dtx Copyright (C) 2011-2018 Bruno Le Floch
 %%
 %% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
+%% conditions of the LaTeX Project Public License, either version 1.3c
 %% of this license or (at your option) any later version.
 %% The latest version of this license is in
 %%   http://www.latex-project.org/lppl.txt
@@ -29,13 +29,13 @@
 % \fi
 %
 %^^A The date here also is in \ProvidesExplPackage, and in the copyright.
-% \def\fileversion{v0.5}
-% \def\filedate{2017/11/29}
+% \def\fileversion{v0.6}
+% \def\filedate{2018/12/28}
 %
 % \title{The \pkg{randomwalk} package: \\
 %   customizable random walks\thanks{This file describes version
 %     \fileversion, last revised \filedate.}}
-% \author{Bruno Le Floch\thanks{E-mail blflatex at gmail.com}}
+% \author{Bruno Le Floch\thanks{E-mail blflatex+randomwalk at gmail.com}}
 % \date{Released on \filedate}
 %
 % \maketitle
@@ -141,7 +141,7 @@
 %    \begin{macrocode}
 \RequirePackage{expl3}[2017/11/14]
 \ProvidesExplPackage
-  {randomwalk} {2017/11/29} {0.5} {Customizable random walks}
+  {randomwalk} {2018/12/28} {0.6} {Customizable random walks}
 \RequirePackage{xparse}[2017/11/14]
 %    \end{macrocode}
 %
@@ -162,12 +162,12 @@
 % document class, hence we do it \cs{AtBeginDocument}.  Also worth noting
 % is the call to \cs{rand}, which avoids some very odd bug.
 %    \begin{macrocode}
-\int_const:Nn \c_@@_lcg_last_int { \c_max_int - \c_one }
+\int_const:Nn \c_@@_lcg_last_int { \c_max_int - 1 }
 \AtBeginDocument
   {
     \RequirePackage
       [
-        first= \c_zero ,
+        first= 0 ,
         last = \c_@@_lcg_last_int ,
         counter = lcg at rand
       ]
@@ -178,7 +178,7 @@
 %
 % \subsection{Variables}
 %
-% \begin{variable}[aux]{\l_@@_internal_tl, \l_@@_internal_int}
+% \begin{variable}{\l_@@_internal_tl, \l_@@_internal_int}
 %   Used for scratch assignments.
 %    \begin{macrocode}
 \tl_new:N \l_@@_internal_tl
@@ -186,7 +186,7 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}[aux]{\l_@@_step_number_int}
+% \begin{variable}{\l_@@_step_number_int}
 %   The number of steps requested by the caller.
 %    \begin{macrocode}
 \int_new:N \l_@@_step_number_int
@@ -193,7 +193,7 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}[aux]{\l_@@_relative_angles_bool, \l_@@_degrees_bool}
+% \begin{variable}{\l_@@_relative_angles_bool, \l_@@_degrees_bool}
 %   Booleans for whether angles are relative (keyval option),
 %   and whether they are in degrees.
 %    \begin{macrocode}
@@ -202,7 +202,7 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}[aux]{\l_@@_revert_random_bool}
+% \begin{variable}{\l_@@_revert_random_bool}
 %   Booleans for whether to revert the random seed to its original value
 %   or keep the last value reached at the end of a random path.
 %    \begin{macrocode}
@@ -210,7 +210,7 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{macro}[aux]{\@@_next_angle:, \@@_next_length:}
+% \begin{macro}{\@@_next_angle:, \@@_next_length:}
 %   Set the \cs{l_@@_angle_fp} and \cs{l_@@_length_fp} of the next step,
 %   most often randomly.
 %    \begin{macrocode}
@@ -219,7 +219,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{variable}[aux]{\l_@@_angle_fp, \l_@@_length_fp}
+% \begin{variable}{\l_@@_angle_fp, \l_@@_length_fp}
 %   Angle and length of the next step.
 %    \begin{macrocode}
 \fp_new:N \l_@@_angle_fp
@@ -227,7 +227,7 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}[aux]{\l_@@_x_dim, \l_@@_y_dim}
+% \begin{variable}{\l_@@_x_dim, \l_@@_y_dim}
 %   Current coordinates: each \cs{pgfpathlineto} statement
 %   goes from the previous value of these to the next.  See
 %   \cs{@@_walk_step:}.
@@ -237,7 +237,7 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}[aux]{\l_@@_angles_seq, \l_@@_lengths_seq}
+% \begin{variable}{\l_@@_angles_seq, \l_@@_lengths_seq}
 %   Sequences containing all allowed angles and lengths, as
 %   floating point numbers.
 %    \begin{macrocode}
@@ -283,7 +283,7 @@
 %
 % \subsection{Setup}
 %
-% \begin{macro}[aux]{\@@_setup_defaults:}
+% \begin{macro}{\@@_setup_defaults:}
 %   The package treats the length of steps, and the angle,
 %   completely independently.  The function \cs{@@_next_length:}
 %   contains the action that decides the length of the next step, while
@@ -311,7 +311,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}[aux]{\@@_setup_length:n}
+% \begin{macro}{\@@_setup_length:n}
 %   Convert each item in the comma list into a floating point, then
 %   define \cs{@@_next_length:} to set \cs{l_@@_length_fp} to a random
 %   floating point in the list.
@@ -331,7 +331,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}[aux]{\@@_setup_angles:n}
+% \begin{macro}{\@@_setup_angles:n}
 %   Two complications compared to \cs{@@_setup_length:n}.  First, the
 %   angle can be given in radians rather than degrees: then add |rad|
 %   after the randomly chosen value (in principle it would be better to
@@ -361,7 +361,7 @@
 %
 % \subsection{Drawing}
 %
-% \begin{macro}[aux]{\@@_walk:}
+% \begin{macro}{\@@_walk:}
 %   We are ready to define \cs{@@_walk:}, which draws a \pkg{pgf}
 %   picture of a random walk with the parameters set up by the
 %   \texttt{keys}.  We reset coordinates to zero originally.
@@ -381,7 +381,7 @@
 %   \cs{cr at nd} is internal to the lcg package.
 % \end{macro}
 %
-% \begin{macro}[aux]{\@@_walk_start:, \@@_walk_line:, \@@_walk_stop:}
+% \begin{macro}{\@@_walk_start:, \@@_walk_line:, \@@_walk_stop:}
 %   These functions encapsulate all of the \pkg{pgf}-related code.  The
 %   \texttt{start} function begins the pgfpicture environment and
 %   starts a path at position (x,y).  The \texttt{line} function adds
@@ -408,7 +408,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}[aux]{\@@_walk_step:}
+% \begin{macro}{\@@_walk_step:}
 %   \cs{@@_walk_step:} calls \cs{@@_next_length:} and
 %   \cs{@@_next_angle:} to determine the length and angle of the new
 %   step.  This is then converted to cartesian coordinates and added to
@@ -440,7 +440,7 @@
 % we provide our own \LaTeX3-y functions.  Also, this will allow us to
 % change quite easily our source of random numbers.
 %
-% \begin{macro}[aux]{\@@_fp_set_rand:Nnn}
+% \begin{macro}{\@@_fp_set_rand:Nnn}
 %   We also need floating point random numbers, assigned
 %   to the variable |#1|.
 %    \begin{macrocode}
@@ -453,7 +453,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}[aux]{\@@_get_rand_seq_item:NN}
+% \begin{macro}{\@@_get_rand_seq_item:NN}
 %   We can now pick an element at random from a sequence.  If the
 %   sequence has a single element, no need for randomness.
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/tex/latex/randomwalk/randomwalk.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/randomwalk/randomwalk.sty	2018-12-28 21:31:34 UTC (rev 49512)
+++ trunk/Master/texmf-dist/tex/latex/randomwalk/randomwalk.sty	2018-12-28 21:31:47 UTC (rev 49513)
@@ -12,10 +12,10 @@
 %% to Bruno Le Floch (see the latex-randomwalk repository
 %% on GitHub).
 %% 
-%% File: randomwalk.dtx Copyright (C) 2011-2017 Bruno Le Floch
+%% File: randomwalk.dtx Copyright (C) 2011-2018 Bruno Le Floch
 %%
 %% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
+%% conditions of the LaTeX Project Public License, either version 1.3c
 %% of this license or (at your option) any later version.
 %% The latest version of this license is in
 %%   http://www.latex-project.org/lppl.txt
@@ -28,15 +28,15 @@
 %% -----------------------------------------------------------------------
 \RequirePackage{expl3}[2017/11/14]
 \ProvidesExplPackage
-  {randomwalk} {2017/11/29} {0.5} {Customizable random walks}
+  {randomwalk} {2018/12/28} {0.6} {Customizable random walks}
 \RequirePackage{xparse}[2017/11/14]
 \RequirePackage{pgfcore}
-\int_const:Nn \c__randomwalk_lcg_last_int { \c_max_int - \c_one }
+\int_const:Nn \c__randomwalk_lcg_last_int { \c_max_int - 1 }
 \AtBeginDocument
   {
     \RequirePackage
       [
-        first= \c_zero ,
+        first= 0 ,
         last = \c__randomwalk_lcg_last_int ,
         counter = lcg at rand
       ]



More information about the tex-live-commits mailing list