-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfmocdmac-alg.dtx
100 lines (87 loc) · 2.14 KB
/
fmocdmac-alg.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
% \begin{macrocode}
%%****************************************************************************%%
%%** Algorithm Tricks ********************************************************%%
%%****************************************************************************%%
\ifalg@
% \end{macrocode}
% \begin{macrocode}
\RequirePackage[ruled,vlined]{algorithm2e}
\DontPrintSemicolon
\SetInd{0.25em}{0.5em}
\setlength{\algomargin}{1.25em}
% \end{macrocode}
% \begin{macro}{\Signature}
% ...
% \begin{macrocode}
\SetKw{Signature}{signature}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Macro, \Function, \Procedure}
% ...
% \begin{macrocode}
\SetKwFor{Macro}{macro}{}{}
\SetKwFor{Function}{function}{}{}
\SetKwFor{Procedure}{procedure}{}{}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Let}
% ...
% \begin{macrocode}
\SetKwFor{Let}{let}{in}{}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\True, \False}
% ...
% \begin{macrocode}
\SetKw{True}{true}
\SetKw{False}{false}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\From, \To, \DownTo}
% ...
% \begin{macrocode}
\SetKw{From}{from}
\SetKw{To}{to}
\SetKw{DownTo}{downto}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\GoTo, \Break, \Continue}
% ...
% \begin{macrocode}
\SetKw{GoTo}{goto}
\SetKw{Break}{break}
\SetKw{Continue}{continue}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Guess, \ExsGuess, \AllGuess}
% ...
% \begin{macrocode}
\SetKw{Guess}{guess}
\SetKw{ExsGuess}{$\exists$-guess}
\SetKw{AllGuess}{$\forall$-guess}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\MIf, \MElseIf, \MElse}
% ...
% \begin{macrocode}
\SetKwIF{MIf}{MElseIf}{MElse}{\#if}{\#then}{\#else \#if}{\#else}{\#endif}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\nlr}
% ...
% \begin{macrocode}
\newrobustcmd{\nlr}[1]
{\addtocounter{AlgoLine}{1}%
\nlset{\arabic{AlgoLine}-\addtocounter{AlgoLine}{#1}\arabic{AlgoLine}}}
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
\fi
%%****************************************************************************%%
% \end{macrocode}
% \begin{macrocode}
\endinput
%</package>
% \end{macrocode}
%
\Finale