summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/lcg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-15 00:42:56 +0000
committerKarl Berry <karl@freefriends.org>2008-09-15 00:42:56 +0000
commit7a75873d73817a30e904cdb9903e94f67bc02490 (patch)
tree26f62093c7d47ac20ba6a745014e34b2d6e33a83 /Master/texmf-dist/source/latex/lcg
parentd0c1973e2a0b6ecebd5b4571c959ef8b32fd6ca8 (diff)
lcg update (11sep08)
git-svn-id: svn://tug.org/texlive/trunk@10600 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/lcg')
-rw-r--r--Master/texmf-dist/source/latex/lcg/lcg.dtx36
-rw-r--r--Master/texmf-dist/source/latex/lcg/lcg.ins24
2 files changed, 30 insertions, 30 deletions
diff --git a/Master/texmf-dist/source/latex/lcg/lcg.dtx b/Master/texmf-dist/source/latex/lcg/lcg.dtx
index eb44e9041d6..f9f706e4763 100644
--- a/Master/texmf-dist/source/latex/lcg/lcg.dtx
+++ b/Master/texmf-dist/source/latex/lcg/lcg.dtx
@@ -1,6 +1,6 @@
% \iffalse
% File: lcg.dtx
-%% Copyright (C) 2001 Erich Janka (janka@utanet.at)
+%% Copyright (c) 2001, 2003, 2008 Erich Janka -- Das Vollpreiskind (janka@utanet.at)
%%
%% This package may be distributed and/or modified under the terms of the
%% LaTeX Project Public License, as described in lppl.txt in the base
@@ -12,7 +12,7 @@
%% This program consits of the files lcg.dtx and lcg.ins
%
%<lcg>\NeedsTeXFormat{LaTeX2e}
-%<lcg>\ProvidesPackage{lcg}[2001/03/03 v1.0 generating random numbers]
+%<lcg>\ProvidesPackage{lcg}[2008/09/10 v1.2 generating random numbers]
%<lcg>\RequirePackage{keyval}
%
%<*driver>
@@ -21,8 +21,8 @@
\begin{document}
\GetFileInfo{lcg.sty}
\title{The \texttt{lcg} package}
- \author{Erich Janka\\ \texttt{janka@utanet.at}}
- \date{2001/03/03 (v1.0)}
+ \author{Erich Janka -- Das Vollpreiskind\\ \texttt{janka@utanet.at}}
+ \date{2008/09/10 (v1.2)}
\maketitle
\DocInput{lcg.dtx}
\end{document}
@@ -405,7 +405,7 @@
% \begin{macrocode}
\define@key{Init}{quiet}[y]{
\def\qui@t{\expandafter\firstletterr@nd #1\delimiter}
- \if\qui@t y % nothing to do
+ \if \qui@t y% nothing to do
\else\if\qui@t Y \def\qui@t{y}
\else\if\qui@t j \def\qui@t{y}
\else\if\qui@t J \def\qui@t{y}
@@ -479,8 +479,7 @@
% Output to log-file/screen
% \begin{macrocode}
\def\@utputr@nd{%
- \if\qui@t y
- % do nothing
+ \if \qui@t y% do nothing
\else
\typeout{Smallest possible random number: \the\f@rst}%
\typeout{Largest possible random number: \the\l@st}%
@@ -513,17 +512,18 @@
% \cntr{@tempcnta} will be less than zero and the right border will be adjusted.
% \begin{macrocode}
\def\cutr@nger@nd{%
- \@tempcntb = -2147483646 % -2^31 + 2
- \@tempcnta = \f@rst
- \advance \@tempcntb \l@st
- \multiply \@tempcntb \m@ne
- \advance \@tempcnta \@tempcntb
- \ifnum \@tempcnta < \z@%
- \PackageWarning{lcg}{Range contains too many numbers
+ \ifnum\l@st<\z@\else
+ \@tempcntb = -2147483646 % -2^31 + 2
+ \@tempcnta = \f@rst
+ \advance \@tempcntb \l@st
+ \multiply \@tempcntb \m@ne
+ \advance \@tempcnta \@tempcntb
+ \ifnum \@tempcnta < \z@%
+ \PackageWarning{lcg}{Range contains too many numbers
-- right border reset to largest possible value}%
- \advance \l@st \@tempcnta
- \fi%
-
+ \advance \l@st \@tempcnta
+ \fi%
+ \fi%
}% end of \checkr@ange
% \end{macrocode}
% \end{macro}
@@ -595,7 +595,7 @@
\multiply \cr@nd \the\month
\multiply \cr@nd \the\day
\advance \cr@nd \inputlineno
- \if\qui@t y
+ \if \qui@t y%
\else
\typeout{Random number generator initialized to \the\cr@nd}%
\fi
diff --git a/Master/texmf-dist/source/latex/lcg/lcg.ins b/Master/texmf-dist/source/latex/lcg/lcg.ins
index 1f937263a5e..ea003047803 100644
--- a/Master/texmf-dist/source/latex/lcg/lcg.ins
+++ b/Master/texmf-dist/source/latex/lcg/lcg.ins
@@ -1,12 +1,12 @@
-%% File: lcg.ins Copyright (C) 2000 Erich Janka (janka@utanet.at)
-%%
-%% Docstrip installation instruction file for `lcg'
-
-\input docstrip
-\keepsilent
-\askforoverwritefalse
-\preamble
-\endpreamble
-\generate{\file{lcg.sty}{\from{lcg.dtx}{lcg}}}
-\endbatchfile
-
+%% File: lcg.ins Copyright (C) 2000 Erich Janka (janka@utanet.at)
+%%
+%% Docstrip installation instruction file for `lcg'
+
+\input docstrip
+\keepsilent
+\askforoverwritefalse
+\preamble
+\endpreamble
+\generate{\file{lcg.sty}{\from{lcg.dtx}{lcg}}}
+\endbatchfile
+