chiark
/
gitweb
/
~mdw
/
mdwtools
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6197ab
)
crypto: Allow changing the symbol for randomness, e.g., to `$'.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 20 Oct 2006 21:48:48 +0000
(22:48 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 21 Oct 2006 09:33:35 +0000
(10:33 +0100)
crypto.dtx
patch
|
blob
|
blame
|
history
diff --git
a/crypto.dtx
b/crypto.dtx
index 3f75c996b9f6fbe379a0de346c0afb1662cd5115..f9315bb2bee27543717589beb33e71a35d500b2a 100644
(file)
--- a/
crypto.dtx
+++ b/
crypto.dtx
@@
-45,7
+45,7
@@
%<+package> [2001/09/16 1.0 Crypto typesetting]
% \end{meta-comment}
%
%<+package> [2001/09/16 1.0 Crypto typesetting]
% \end{meta-comment}
%
-% \CheckSum{24
5
}
+% \CheckSum{24
9
}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@
-149,6
+149,12
@@
% using the |\inr| command, which just typesets an $\in$ sign with a
% subscript `R': `$\inr$'.
%
% using the |\inr| command, which just typesets an $\in$ sign with a
% subscript `R': `$\inr$'.
%
+% Should one wish, one can use a different character than `R' to denote
+% randomness. Some authors use `\$', for example. I know of one
+% (cheapskate?) author who has used `\rlap/c'. Redefining the |\random|
+% command lets you do this. For example, you can say
+% |\newcommand{\random}{\$}| should you so wish.
+%
% \DescribeMacro\id
% Long identifiers can be typeset using the |\id| command. giving the
% identifier name as an argument. The |\id| command is only valid in maths
% \DescribeMacro\id
% Long identifiers can be typeset using the |\id| command. giving the
% identifier name as an argument. The |\id| command is only valid in maths
@@
-224,7
+230,7
@@
\RequirePackage{amstext}
\RequirePackage{xspace}
% \end{macrocode}
\RequirePackage{amstext}
\RequirePackage{xspace}
% \end{macrocode}
-
+%
% \subsection{Algorithm typsetting}
%
% \begin{macro}{\cookie}
% \subsection{Algorithm typsetting}
%
% \begin{macro}{\cookie}
@@
-251,8
+257,9
@@
% nicer.
%
% \begin{macrocode}
% nicer.
%
% \begin{macrocode}
-\def\inr{\mathrel{\in_R}}
-\def\getsr{\mathrel{\mathop{\gets}\limits^{\scriptscriptstyle R}}}
+\providecommand\random{R}
+\def\inr{\mathrel{\in_{\random}}}
+\def\getsr{\mathrel{\mathop{\gets}\limits^{\scriptscriptstyle\random}}}
% \end{macrocode}
%
% \end{macro}
% \end{macrocode}
%
% \end{macro}