summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-11-14 21:06:47 +0000
committerKarl Berry <karl@freefriends.org>2023-11-14 21:06:47 +0000
commitcac23e5cf5d61139ea64c9a31a32e52d3b30dcc0 (patch)
tree8e70e02f1ffbcc35f35afb686ade32cef26ddf57 /Master/texmf-dist/doc/lualatex
parentb3f721e9b9d6e76e9ba321c8a82d8c275c579fc1 (diff)
luarandom (14nov23)
git-svn-id: svn://tug.org/texlive/trunk@68847 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex')
-rw-r--r--Master/texmf-dist/doc/lualatex/luarandom/Changes2
-rw-r--r--Master/texmf-dist/doc/lualatex/luarandom/README2
-rw-r--r--Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.pdfbin49787 -> 70042 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.tex39
4 files changed, 33 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/lualatex/luarandom/Changes b/Master/texmf-dist/doc/lualatex/luarandom/Changes
index 29cf20e0232..ac867c21309 100644
--- a/Master/texmf-dist/doc/lualatex/luarandom/Changes
+++ b/Master/texmf-dist/doc/lualatex/luarandom/Changes
@@ -1,4 +1,6 @@
..... luarandom.sty
+0.02 2023-11-13 - fix for endless loop,
+ - added optional argument for special seed number
0.01 2018-12-15 first CTAN version (hv)
diff --git a/Master/texmf-dist/doc/lualatex/luarandom/README b/Master/texmf-dist/doc/lualatex/luarandom/README
index f51f725e010..a7abc866116 100644
--- a/Master/texmf-dist/doc/lualatex/luarandom/README
+++ b/Master/texmf-dist/doc/lualatex/luarandom/README
@@ -9,4 +9,4 @@ The macros for random numbers can only be used with LuaLaTeX!
hvoss@tug.org
-%% $Id: README 862 2018-12-15 16:25:55Z herbert $
+%% $Id: README 813 2023-11-13 19:33:29Z herbert $
diff --git a/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.pdf b/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.pdf
index 9f137411ad0..04287903aaa 100644
--- a/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.pdf
+++ b/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.tex b/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.tex
index 6c17c1647d3..069d239d074 100644
--- a/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.tex
+++ b/Master/texmf-dist/doc/lualatex/luarandom/luarandom-doc.tex
@@ -1,9 +1,8 @@
-%% $Id: luarandom-doc.tex 862 2018-12-15 16:25:55Z herbert $
+%% $Id: luarandom-doc.tex 813 2023-11-13 19:33:29Z herbert $
\documentclass[fontsize=11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,
headings=small, headinclude=false,footinclude=false,oneside,abstract=on]{pst-doc}
\usepackage{xcolor,pstricks,multido}
-\usepackage{auto-pst-pdf-lua}
\usepackage{luarandom}
\let\pstMathFV\fileversion
@@ -21,7 +20,7 @@ x&\mapsto&{\operator@font#1}(x)\end{array}\right.}
\begin{document}
\title{\texttt{luarandom}}
-\subtitle{Create a list of random numbers with or without multiple values; v. 0.01}
+\subtitle{Create a list of random numbers with or without multiple values; v. 0.02}
\author{Herbert Vo\ss}
\docauthor{Herbert Vo\ss}
\date{\today}
@@ -39,8 +38,8 @@ However, this package will \emph{not} run with other \TeX-engines than Lua\LaTe
\section{The Macros}
\begin{BDef}
-\Lcs{makeSimpleRandomNumberList}\Largb{Left}\Largb{Right}\Largb{N}\% multiple values possible\\
-\Lcs{makeRandomNumberList}\Largb{Left}\Largb{Right}\Largb{N} \% no multiple values!\\
+\Lcs{makeSimpleRandomNumberList}\OptArg{Seed}\Largb{Left}\Largb{Right}\Largb{N}\% multiple values possible\\
+\Lcs{makeRandomNumberList}\OptArg{Seed}\Largb{Left}\Largb{Right}\Largb{N} \% no multiple values!\\
\Lcs{getNumberFromList}\Largb{number}
\end{BDef}
@@ -61,10 +60,33 @@ The list of the random numbers is saved in the Lua table \texttt{RandomNumbers}.
\end{LTXexample}
+With the optional argument \verb|[seed number]|, the seed function is not called
+with the current time, but with the optional value (integer).
-The following example uses PSTricks related packages which cannot be run directly
-with Lua\LaTeX. The package \LPack{auto-pst-pdf-lua} will convert the PSTricks stuff
-in the baclground into PDF images which will be included in a second run.
+\begin{LTXexample}[pos=t]
+\small
+\makeSimpleRandomNumberList[999]{1}{30}{30}% with multiple values and value seed
+\multido{\iA=1+1}{30}{\getNumberFromList{\iA}, }
+
+\makeRandomNumberList[999]{1}{30}{30}% without multiple values and value seed
+\multido{\iA=1+1}{30}{\getNumberFromList{\iA}, }
+
+\makeSimpleRandomNumberList[999]{1}{30}{30}% with multiple values and value seed
+\multido{\iA=1+1}{30}{\getNumberFromList{\iA}, }
+
+\makeRandomNumberList{1}{30}{30}% without multiple values and time seed
+\multido{\iA=1+1}{30}{\getNumberFromList{\iA}, }
+\end{LTXexample}
+
+
+\begin{LTXexample}[pos=t]
+\makeRandomNumberList{2}{30}{5}%
+\multido{\iA=1+1}{5}{\getNumberFromList{\iA}, }
+\end{LTXexample}
+
+
+The following example uses PSTricks related packages which can be run directly
+with Lua\LaTeX.
\begin{LTXexample}[pos=t]
@@ -79,7 +101,6 @@ in the baclground into PDF images which will be included in a second run.
\end{pspicture}
\end{LTXexample}
-
\section{The code}
\lstinputlisting{luarandom.sty}