summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-30 21:53:49 +0000
committerKarl Berry <karl@freefriends.org>2017-11-30 21:53:49 +0000
commita41abc226d31c85dd304637334f01646c2494297 (patch)
tree5e50f16b514e2f3554ce35823964dcba7f704d76 /Master/texmf-dist/source/latex
parent9355f885dcde6130ebbbe3a3dfabbfc740fd1d12 (diff)
randomwalk (30nov17)
git-svn-id: svn://tug.org/texlive/trunk@45954 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx50
1 files changed, 27 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx b/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx
index 0bb83e0d80a..f11ec093a99 100644
--- a/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx
+++ b/Master/texmf-dist/source/latex/randomwalk/randomwalk.dtx
@@ -1,13 +1,17 @@
% \iffalse
-%% File: randomwalk.dtx Copyright (C) 2011-2015 Bruno Le Floch
+%% File: randomwalk.dtx Copyright (C) 2011-2017 Bruno Le Floch
%%
-%% It may be distributed and/or modified under the conditions of the
-%% LaTeX Project Public License (LPPL), either version 1.3c of this
-%% license or (at your option) any later version. The latest version
-%% of this license is in the file
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% 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
%%
-%% http://www.latex-project.org/lppl.txt
+%% This work has the LPPL maintenance status 'maintained'
+%% and the current maintainer is Bruno Le Floch.
%%
+%% This work consists of the files randomwalk.dtx and randomwalk.ins and
+%% derived files randomwalk.sty and randomwalk.pdf.
%% -----------------------------------------------------------------------
%
%<*driver|package>
@@ -25,8 +29,8 @@
% \fi
%
%^^A The date here also is in \ProvidesExplPackage, and in the copyright.
-% \def\fileversion{v0.4}
-% \def\filedate{2015/09/20}
+% \def\fileversion{v0.5}
+% \def\filedate{2017/11/29}
%
% \title{The \pkg{randomwalk} package: \\
% customizable random walks\thanks{This file describes version
@@ -135,10 +139,10 @@
% \end{macrocode}
%
% \begin{macrocode}
-\RequirePackage{expl3}[2015/09/11]
+\RequirePackage{expl3}[2017/11/14]
\ProvidesExplPackage
- {randomwalk.sty} {2015/09/20} {0.4} {Customizable random walks}
-\RequirePackage{xparse}[2015/09/11]
+ {randomwalk} {2017/11/29} {0.5} {Customizable random walks}
+\RequirePackage{xparse}[2017/11/14]
% \end{macrocode}
%
% Load \pkg{pgfcore} for figures.
@@ -210,8 +214,8 @@
% Set the \cs{l_@@_angle_fp} and \cs{l_@@_length_fp} of the next step,
% most often randomly.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_next_angle: { }
-\cs_new_protected_nopar:Npn \@@_next_length: { }
+\cs_new_protected:Npn \@@_next_angle: { }
+\cs_new_protected:Npn \@@_next_length: { }
% \end{macrocode}
% \end{macro}
%
@@ -290,12 +294,12 @@
% that currently cannot be altered through keys, because it might be
% good to provide keys for their initial values too later on.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_setup_defaults:
+\cs_new_protected:Npn \@@_setup_defaults:
{
\int_set:Nn \l_@@_step_number_int {10}
- \cs_gset_protected_nopar:Npn \@@_next_angle:
+ \cs_gset_protected:Npn \@@_next_angle:
{ \@@_fp_set_rand:Nnn \l_@@_angle_fp { 0 } { 360 } }
- \cs_gset_protected_nopar:Npn \@@_next_length:
+ \cs_gset_protected:Npn \@@_next_length:
{ \fp_set:Nn \l_@@_length_fp {10} }
\bool_set_false:N \l_@@_revert_random_bool
\bool_set_false:N \l_@@_relative_angles_bool
@@ -317,7 +321,7 @@
\seq_set_split:Nnn \l_@@_lengths_seq { , } {#1}
\seq_set_map:NNn \l_@@_lengths_seq
\l_@@_lengths_seq { \dim_to_fp:n {##1} }
- \cs_gset_protected_nopar:Npn \@@_next_length:
+ \cs_gset_protected:Npn \@@_next_length:
{
\@@_get_rand_seq_item:NN
\l_@@_lengths_seq \l_@@_internal_tl
@@ -341,7 +345,7 @@
\seq_set_split:Nnn \l_@@_angles_seq { , } {#1}
\seq_set_map:NNn \l_@@_angles_seq
\l_@@_angles_seq { \fp_to_tl:n {##1} }
- \cs_gset_protected_nopar:Npn \@@_next_angle:
+ \cs_gset_protected:Npn \@@_next_angle:
{
\@@_get_rand_seq_item:NN
\l_@@_angles_seq \l_@@_internal_tl
@@ -364,7 +368,7 @@
% Then draw the relevant \pkg{pgf} picture by repeatedly calling
% \cs{@@_walk_step:}.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_walk:
+\cs_new_protected:Npn \@@_walk:
{
\@@_walk_start:
\prg_replicate:nn { \l_@@_step_number_int }
@@ -385,18 +389,18 @@
% The \texttt{stop} function draws the path constructed by
% \cs{@@_walk_step:} and ends the pgfpicture environment.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_walk_start:
+\cs_new_protected:Npn \@@_walk_start:
{
\begin{pgfpicture}
\pgfpathmoveto
{ \pgfpoint { \l_@@_x_dim } { \l_@@_y_dim } }
}
-\cs_new_protected_nopar:Npn \@@_walk_line:
+\cs_new_protected:Npn \@@_walk_line:
{
\pgfpathlineto
{ \pgfpoint { \l_@@_x_dim } { \l_@@_y_dim } }
}
-\cs_new_protected_nopar:Npn \@@_walk_stop:
+\cs_new_protected:Npn \@@_walk_stop:
{
\pgfusepath { stroke }
\end{pgfpicture}
@@ -411,7 +415,7 @@
% the previous end-point. Finally, we call \pkg{pgf}'s \cs{pgfpathlineto} to
% produce a line to the new point.
% \begin{macrocode}
-\cs_new_protected_nopar:Npn \@@_walk_step:
+\cs_new_protected:Npn \@@_walk_step:
{
\@@_next_length:
\@@_next_angle: