| author | paulson |
| Thu, 19 Aug 1999 15:13:37 +0200 | |
| changeset 7286 | fcbf147e7b4c |
| parent 7169 | 76ef91b608a9 |
| child 7316 | 8b6d6df020ac |
| permissions | -rw-r--r-- |
| 293 | 1 |
% iman.sty : Isabelle Manual Page Layout |
| 110 | 2 |
% |
| 293 | 3 |
\typeout{Document Style iman. Released 17 February 1994}
|
| 110 | 4 |
|
| 293 | 5 |
\hyphenation{Isa-belle man-u-script man-u-scripts ap-pen-dix mut-u-al-ly}
|
6 |
\hyphenation{data-type data-types co-data-type co-data-types }
|
|
7 |
||
8 |
\let\ts=\thinspace |
|
| 110 | 9 |
|
| 301 | 10 |
%usage: \iflabelundefined{LABEL}{if not defined}{if defined}
|
11 |
\newcommand{\iflabelundefined}[1]{\@ifundefined{r@#1}}
|
|
12 |
||
13 |
||
| 110 | 14 |
%%%INDEXING use sedindex to process the index |
15 |
%index, putting page numbers of definitions in boldface |
|
| 6747 | 16 |
\def\bold#1{\textbf{#1}}
|
| 293 | 17 |
\newcommand\fnote[1]{#1n}
|
| 110 | 18 |
\newcommand\indexbold[1]{\index{#1|bold}}
|
19 |
||
| 350 | 20 |
%for indexing constants, symbols, theorems, ... |
21 |
\newcommand\cdx[1]{{\tt#1}\index{#1@{\tt#1} constant}}
|
|
22 |
\newcommand\sdx[1]{{\tt#1}\index{#1@{\tt#1} symbol}}
|
|
23 |
||
24 |
\newcommand\tdx[1]{{\tt#1}\index{#1@{\tt#1} theorem}}
|
|
25 |
\newcommand\tdxbold[1]{{\tt#1}\index{#1@{\tt#1} theorem|bold}}
|
|
26 |
||
27 |
\newcommand\mltydx[1]{{\tt#1}\index{#1@{\tt#1} ML type}}
|
|
28 |
\newcommand\xdx[1]{{\tt#1}\index{#1@{\tt#1} exception}}
|
|
29 |
||
30 |
\newcommand\ndx[1]{{\tt#1}\index{#1@{\tt#1} nonterminal}}
|
|
31 |
\newcommand\ndxbold[1]{{\tt#1}\index{#1@{\tt#1} nonterminal|bold}}
|
|
32 |
||
33 |
\newcommand\cldx[1]{{\tt#1}\index{#1@{\tt#1} class}}
|
|
|
3491
59ffc1c83403
Modified the \tydx command to set types in italics instead of \tt
paulson
parents:
3211
diff
changeset
|
34 |
\newcommand\tydx[1]{\textit{#1}\index{#1@{\textit{#1}} type}}
|
| 350 | 35 |
\newcommand\thydx[1]{{\tt#1}\index{#1@{\tt#1} theory}}
|
36 |
||
| 3187 | 37 |
\newcommand\tooldx[1]{{\tt#1}\index{#1@{\tt#1} tool}}
|
| 3211 | 38 |
\newcommand\settdx[1]{{\tt#1}\index{#1@{\tt#1} setting}}
|
| 7169 | 39 |
\newcommand\attdx[1]{$#1$\index{#1@$#1$ attribute}}
|
40 |
\newcommand\methdx[1]{$#1$\index{#1@$#1$ proof method}}
|
|
| 3187 | 41 |
|
| 110 | 42 |
%for cross-references: 2nd argument (page number) is ignored |
43 |
\newcommand\see[2]{{\it see \/}{#1}}
|
|
44 |
\newcommand\seealso[2]{{\it see also \/}{#1}}
|
|
45 |
||
| 3100 | 46 |
%set argument in \tt font; at the same time, index using * prefix |
| 350 | 47 |
\newcommand\rmindex[1]{{#1}\index{#1}\@}
|
| 110 | 48 |
\newcommand\ttindex[1]{{\tt#1}\index{*#1}\@}
|
49 |
\newcommand\ttindexbold[1]{{\tt#1}\index{*#1|bold}\@}
|
|
50 |
||
51 |
%set argument in \bf font and index in ROMAN font (for definitions in text!) |
|
52 |
\newcommand\bfindex[1]{{\bf#1}\index{#1|bold}\@}
|
|
53 |
||
54 |
||
55 |
%%% underscores as ordinary characters, not for subscripting |
|
56 |
%% use @ or \sb for subscripting; use \at for @ |
|
57 |
%% only works in \tt font |
|
58 |
%% must not make _ an active char; would make \ttindex fail! |
|
59 |
\gdef\underscoreoff{\catcode`\@=8\catcode`\_=\other}
|
|
60 |
\gdef\underscoreon{\catcode`\_=8\makeatother}
|
|
61 |
\chardef\other=12 |
|
62 |
\chardef\at=`\@ |
|
63 |
||
64 |
% alternative underscore |
|
65 |
\def\_{\leavevmode\kern.06em\vbox{\hrule height.2ex width.3em}\hskip0.1em}
|
|
66 |
||
67 |
%%% \dquotes permits usage of "..." for \hbox{...} -- also taken from under.sty
|
|
68 |
{\catcode`\"=\active
|
|
69 |
\gdef\dquotes{\catcode`\"=\active \let"=\@mathText}%
|
|
70 |
\gdef\@mathText#1"{\hbox{\mathTextFont #1\/}}}
|
|
71 |
\def\mathTextFont{\frenchspacing\tt}
|
|
| 6123 | 72 |
\def\dquotesoff{\catcode`\"=\other}
|
| 110 | 73 |
|
74 |
%%%% meta-logical connectives |
|
75 |
||
76 |
\let\Forall=\bigwedge |
|
77 |
\let\Imp=\Longrightarrow |
|
78 |
\let\To=\Rightarrow |
|
79 |
\newcommand\Var[1]{{?\!#1}}
|
|
| 5765 | 80 |
\newcommand\All[1]{\Forall#1.} %quantification
|
| 110 | 81 |
|
82 |
%%%% ``WARNING'' environment |
|
83 |
\def\dbend{\vtop to 0pt{\vss\hbox{\Huge\bf!}\vss}}
|
|
84 |
\newenvironment{warn}{\medskip\medbreak\begingroup \clubpenalty=10000
|
|
| 293 | 85 |
\small %%WAS\baselineskip=0.9\baselineskip |
86 |
\noindent \hangindent\parindent \hangafter=-2 |
|
87 |
\hbox to0pt{\hskip-\hangindent\dbend\hfill}\ignorespaces}%
|
|
88 |
{\par\endgroup\medbreak}
|
|
| 110 | 89 |
|
90 |
||
91 |
%%%% Standard logical symbols |
|
92 |
\let\turn=\vdash |
|
93 |
\let\conj=\wedge |
|
94 |
\let\disj=\vee |
|
95 |
\let\imp=\rightarrow |
|
96 |
\let\bimp=\leftrightarrow |
|
| 293 | 97 |
\newcommand\all[1]{\forall#1.} %quantification
|
| 110 | 98 |
\newcommand\ex[1]{\exists#1.}
|
99 |
\newcommand{\pair}[1]{\langle#1\rangle}
|
|
100 |
||
| 5752 | 101 |
\newcommand{\lparr}{\mathopen{(\!|}}
|
102 |
\newcommand{\rparr}{\mathclose{|\!)}}
|
|
103 |
\newcommand{\fs}{\mathpunct{,\,}}
|
|
104 |
\newcommand{\ty}{\mathrel{::}}
|
|
105 |
\newcommand{\asn}{\mathrel{:=}}
|
|
106 |
\newcommand{\more}{\ldots}
|
|
107 |
\newcommand{\record}[1]{\lparr #1 \rparr}
|
|
| 5765 | 108 |
\newcommand{\dtt}{\mathord.}
|
| 5752 | 109 |
|
| 110 | 110 |
\newcommand\lbrakk{\mathopen{[\![}}
|
111 |
\newcommand\rbrakk{\mathclose{]\!]}}
|
|
112 |
\newcommand\List[1]{\lbrakk#1\rbrakk} %was \obj
|
|
113 |
\newcommand\vpile[1]{\begin{array}{c}#1\end{array}}
|
|
| 5752 | 114 |
\newenvironment{matharray}[1]{\[\begin{array}{#1}}{\end{array}\]}
|
| 7139 | 115 |
\newcommand{\text}[1]{\mbox{#1}}
|
| 110 | 116 |
|
117 |
\let\int=\cap |
|
118 |
\let\un=\cup |
|
119 |
\let\inter=\bigcap |
|
120 |
\let\union=\bigcup |
|
121 |
||
122 |
\def\ML{{\sc ml}}
|
|
123 |
\def\OBJ{{\sc obj}}
|
|
| 350 | 124 |
\def\AST{{\sc ast}}
|
| 110 | 125 |
|
| 3109 | 126 |
\def\Pure{{\tt Pure}\@}
|
127 |
\def\CPure{{\tt CPure}\@}
|
|
| 110 | 128 |
\def\LCF{{\tt LCF}\@}
|
129 |
\def\FOL{{\tt FOL}\@}
|
|
130 |
\def\HOL{{\tt HOL}\@}
|
|
| 1648 | 131 |
\def\HOLCF{{\tt HOLCF}\@}
|
| 110 | 132 |
\def\LK{{\tt LK}\@}
|
133 |
\def\ZF{{\tt ZF}\@}
|
|
134 |
\def\CTT{{\tt CTT}\@}
|
|
| 3109 | 135 |
\def\Cube{{\tt Cube}\@}
|
136 |
\def\Modal{{\tt Modal}\@}
|
|
| 110 | 137 |
|
138 |
%macros to change the treatment of symbols |
|
139 |
\def\relsemicolon{\mathcode`\;="303B} %treat ; like a relation
|
|
140 |
\def\binperiod{\mathcode`\.="213A} %treat . like a binary operator
|
|
141 |
\def\binvert{\mathcode`\|="226A} %treat | like a binary operator
|
|
142 |
||
143 |
%redefinition of \sloppy and \fussy to use \emergencystretch |
|
144 |
\def\sloppy{\tolerance2000 \hfuzz.5pt \vfuzz.5pt \emergencystretch=15pt}
|
|
145 |
\def\fussy{\tolerance200 \hfuzz.1pt \vfuzz.1pt \emergencystretch=0pt}
|
|
146 |
||
| 7169 | 147 |
%non-bf version of description |
148 |
\def\descrlabel#1{\hspace\labelsep #1}
|
|
149 |
\def\descr{\list{}{\labelwidth\z@ \itemindent-\leftmargin\let\makelabel\descrlabel}}
|
|
150 |
\let\enddescr\endlist |
|
151 |
||
| 350 | 152 |
%%%% \tt things |
153 |
||
154 |
\def\ttdescriptionlabel#1{\hspace\labelsep \tt #1}
|
|
155 |
\def\ttdescription{\list{}{\labelwidth\z@ \itemindent-\leftmargin
|
|
156 |
\let\makelabel\ttdescriptionlabel}} |
|
157 |
||
158 |
\let\endttdescription\endlist |
|
159 |
||
| 293 | 160 |
\chardef\ttilde=`\~ % A tilde for \tt font |
161 |
\chardef\ttback=`\\ % A backslash for \tt font |
|
162 |
\chardef\ttlbrace=`\{ % A left brace for \tt font
|
|
163 |
\chardef\ttrbrace=`\} % A right brace for \tt font |
|
| 110 | 164 |
|
| 4244 | 165 |
\newcommand\out{\ \ttfamily\slshape} %% for output from terminal sessions
|
| 110 | 166 |
|
167 |
% The mathcodes for the letters A, ..., Z, a, ..., z are changed to |
|
|
140
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
168 |
% generate text italic rather than math italic by default. This makes |
| 110 | 169 |
% multi-letter identifiers look better. The mathcode for character c |
| 3096 | 170 |
% is set to |"7000| (variable family) + |"400| (text italic) + |c|. |
|
140
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
171 |
% |
| 3096 | 172 |
\DeclareSymbolFont{italics}{\encodingdefault}{\rmdefault}{m}{it}%
|
| 110 | 173 |
\def\@setmcodes#1#2#3{{\count0=#1 \count1=#3
|
|
140
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
174 |
\loop \global\mathcode\count0=\count1 \ifnum \count0<#2 |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
175 |
\advance\count0 by1 \advance\count1 by1 \repeat}} |
| 3096 | 176 |
\@setmcodes{`A}{`Z}{"7\hexnumber@\symitalics41}
|
177 |
\@setmcodes{`a}{`z}{"7\hexnumber@\symitalics61}
|