3 %%% Document-specific commands
6 % Outputs red TODOs in the document. Requires \usepackage{color}.
8 % Usage: \todo{Document the TODO command.}
10 % Comment out second line to disable.
11 \AtBeginDocument{\providecommand{\todo}[1]{}}
12 \newcommand*{\todo}[1]{{\color{Red} TODO: {#1}}}
14 % Creating a horizontal rule
15 \newcommand*{\HorRule}{%
17 \rule{\linewidth}{1pt}%
21 \usepackage{seqsplit} % Use Sequence split. Basically it inserts between every character pair a box with zero width to allow linebreaks everywhere. Better solution wanted, but is there any better?
22 \CatchFileDef{\cipherStringB}{common/cipherStringB.tex}{\endlinechar=-1 }%
24 \newcommand\warningbox[1]{
25 \par\leavevmode\noindent%
26 \fcolorbox{black}{pink!20}{\parbox{.99\linewidth}{%
28 \vspace*{.2\baselineskip}%
29 \addtolength{\textwidth}{-.4\baselineskip}
31 \vspace*{.2\baselineskip}%
36 \par\leavevmode\noindent%
37 \fcolorbox{black}{black!10}{\parbox{.99\linewidth}{%
41 \newcommand*\doindex[2][]{%
42 \newterm[name={#2},#1]{index-#2}%
46 \def\idxopt[#1]#2|{\idx[#1]{#2}\xspace}
55 \def|{\@ifnextchar[{\idxopt}{\idxnorm}%]
58 \newcommand*\idx[2][]{\gls[#1]{index-#2}}
59 \newcommand*\Idx[2][]{\Gls[#1]{index-#2}}
60 \newcommand*\IDX[2][]{\GLS[#1]{index-#2}}
61 \newcommand*\idxpl[2][]{\glspl[#1]{index-#2}}
62 \newcommand*\Idxpl[2][]{\Glspl[#1]{index-#2}}
63 \newcommand*\IDXpl[2][]{\GLSpl[#1]{index-#2}}
64 \newcommand*\alsoidx[1]{\glsadd{index-#1}}
68 %%% TeX-master: "../applied-crypto-hardening"