| author | clasohm |
| Thu, 26 Oct 1995 13:53:04 +0100 | |
| changeset 1313 | 9fb65f3db319 |
| parent 1112 | 737a1a0df754 |
| child 1647 | f42776cced4c |
| 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 |
|
16 |
\newcommand\bold[1]{{\bf#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}}
|
|
34 |
\newcommand\tydx[1]{{\tt#1}\index{#1@{\tt#1} type}}
|
|
35 |
\newcommand\thydx[1]{{\tt#1}\index{#1@{\tt#1} theory}}
|
|
36 |
||
| 110 | 37 |
%for cross-references: 2nd argument (page number) is ignored |
38 |
\newcommand\see[2]{{\it see \/}{#1}}
|
|
39 |
\newcommand\seealso[2]{{\it see also \/}{#1}}
|
|
40 |
||
41 |
%set argument in \tt font; at the sime time, index using * prefix |
|
| 350 | 42 |
\newcommand\rmindex[1]{{#1}\index{#1}\@}
|
| 110 | 43 |
\newcommand\ttindex[1]{{\tt#1}\index{*#1}\@}
|
44 |
\newcommand\ttindexbold[1]{{\tt#1}\index{*#1|bold}\@}
|
|
45 |
||
46 |
%set argument in \bf font and index in ROMAN font (for definitions in text!) |
|
47 |
\newcommand\bfindex[1]{{\bf#1}\index{#1|bold}\@}
|
|
48 |
||
49 |
||
50 |
%%% underscores as ordinary characters, not for subscripting |
|
51 |
%% use @ or \sb for subscripting; use \at for @ |
|
52 |
%% only works in \tt font |
|
53 |
%% must not make _ an active char; would make \ttindex fail! |
|
54 |
\gdef\underscoreoff{\catcode`\@=8\catcode`\_=\other}
|
|
55 |
\gdef\underscoreon{\catcode`\_=8\makeatother}
|
|
56 |
\chardef\other=12 |
|
57 |
\chardef\at=`\@ |
|
58 |
||
59 |
% alternative underscore |
|
60 |
\def\_{\leavevmode\kern.06em\vbox{\hrule height.2ex width.3em}\hskip0.1em}
|
|
61 |
||
62 |
%%% \dquotes permits usage of "..." for \hbox{...} -- also taken from under.sty
|
|
63 |
{\catcode`\"=\active
|
|
64 |
\gdef\dquotes{\catcode`\"=\active \let"=\@mathText}%
|
|
65 |
\gdef\@mathText#1"{\hbox{\mathTextFont #1\/}}}
|
|
66 |
\def\mathTextFont{\frenchspacing\tt}
|
|
67 |
||
68 |
%%%% meta-logical connectives |
|
69 |
||
70 |
\let\Forall=\bigwedge |
|
71 |
\let\Imp=\Longrightarrow |
|
72 |
\let\To=\Rightarrow |
|
73 |
\newcommand\Var[1]{{?\!#1}}
|
|
74 |
||
75 |
%%%% ``WARNING'' environment |
|
76 |
\def\dbend{\vtop to 0pt{\vss\hbox{\Huge\bf!}\vss}}
|
|
77 |
\newenvironment{warn}{\medskip\medbreak\begingroup \clubpenalty=10000
|
|
| 293 | 78 |
\small %%WAS\baselineskip=0.9\baselineskip |
79 |
\noindent \hangindent\parindent \hangafter=-2 |
|
80 |
\hbox to0pt{\hskip-\hangindent\dbend\hfill}\ignorespaces}%
|
|
81 |
{\par\endgroup\medbreak}
|
|
| 110 | 82 |
|
83 |
||
84 |
%%%% Standard logical symbols |
|
85 |
\let\turn=\vdash |
|
86 |
\let\conj=\wedge |
|
87 |
\let\disj=\vee |
|
88 |
\let\imp=\rightarrow |
|
89 |
\let\bimp=\leftrightarrow |
|
| 293 | 90 |
\newcommand\all[1]{\forall#1.} %quantification
|
| 110 | 91 |
\newcommand\ex[1]{\exists#1.}
|
92 |
\newcommand{\pair}[1]{\langle#1\rangle}
|
|
93 |
||
94 |
\newcommand\lbrakk{\mathopen{[\![}}
|
|
95 |
\newcommand\rbrakk{\mathclose{]\!]}}
|
|
96 |
\newcommand\List[1]{\lbrakk#1\rbrakk} %was \obj
|
|
97 |
\newcommand\vpile[1]{\begin{array}{c}#1\end{array}}
|
|
98 |
||
99 |
\let\int=\cap |
|
100 |
\let\un=\cup |
|
101 |
\let\inter=\bigcap |
|
102 |
\let\union=\bigcup |
|
103 |
||
104 |
\def\ML{{\sc ml}}
|
|
105 |
\def\OBJ{{\sc obj}}
|
|
| 350 | 106 |
\def\AST{{\sc ast}}
|
| 110 | 107 |
|
108 |
\def\LCF{{\tt LCF}\@}
|
|
109 |
\def\FOL{{\tt FOL}\@}
|
|
110 |
\def\HOL{{\tt HOL}\@}
|
|
| 1112 | 111 |
\def\CHOL{{\tt CHOL}\@}
|
| 110 | 112 |
\def\LK{{\tt LK}\@}
|
113 |
\def\ZF{{\tt ZF}\@}
|
|
114 |
\def\CTT{{\tt CTT}\@}
|
|
115 |
\def\Cube{{\tt Cube}}
|
|
116 |
\def\Modal{{\tt Modal}}
|
|
117 |
||
118 |
%macros to change the treatment of symbols |
|
119 |
\def\relsemicolon{\mathcode`\;="303B} %treat ; like a relation
|
|
120 |
\def\binperiod{\mathcode`\.="213A} %treat . like a binary operator
|
|
121 |
\def\binvert{\mathcode`\|="226A} %treat | like a binary operator
|
|
122 |
||
123 |
%redefinition of \sloppy and \fussy to use \emergencystretch |
|
124 |
\def\sloppy{\tolerance2000 \hfuzz.5pt \vfuzz.5pt \emergencystretch=15pt}
|
|
125 |
\def\fussy{\tolerance200 \hfuzz.1pt \vfuzz.1pt \emergencystretch=0pt}
|
|
126 |
||
| 350 | 127 |
%%%% \tt things |
128 |
||
129 |
\def\ttdescriptionlabel#1{\hspace\labelsep \tt #1}
|
|
130 |
\def\ttdescription{\list{}{\labelwidth\z@ \itemindent-\leftmargin
|
|
131 |
\let\makelabel\ttdescriptionlabel}} |
|
132 |
||
133 |
\let\endttdescription\endlist |
|
134 |
||
| 293 | 135 |
\chardef\ttilde=`\~ % A tilde for \tt font |
136 |
\chardef\ttback=`\\ % A backslash for \tt font |
|
137 |
\chardef\ttlbrace=`\{ % A left brace for \tt font
|
|
138 |
\chardef\ttrbrace=`\} % A right brace for \tt font |
|
| 110 | 139 |
|
140 |
\newfont{\sltt}{cmsltt10} %% for output from terminal sessions
|
|
141 |
\newcommand\out{\ \sltt}
|
|
142 |
||
|
140
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
143 |
% "itmath.sty" use cmr italic for letters in math mode and get the |
| 293 | 144 |
% usual letter spacing of text mode. |
|
140
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
145 |
% |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
146 |
% Michael Lawley, April 1993 |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
147 |
% (lawley@cit.gu.edu.au) |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
148 |
% |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
149 |
% Derived from itma.sty (of unknown origin). |
| 110 | 150 |
% |
151 |
% MATHCODES |
|
152 |
% |
|
153 |
% 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
|
154 |
% generate text italic rather than math italic by default. This makes |
| 110 | 155 |
% multi-letter identifiers look better. The mathcode for character c |
|
140
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
156 |
% is set to "7000 (variable class) + "400 (text italic) + c. |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
157 |
% |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
158 |
% For NFSS the mathcode is "7000 (variable class) + (hex)\itfam + c |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
159 |
% \itfam is probably equal to 7. |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
160 |
% |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
161 |
|
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
162 |
\ifx\undefined\hexnumber@ |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
163 |
\def\hexnumber@#1{\ifcase#1 \z@
|
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
164 |
\or \@ne \or \tw@ \or \thr@@ |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
165 |
\or 4\or 5\or 6\or 7\or 8\or |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
166 |
9\or A\or B\or C\or D\or E\or F\fi} |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
167 |
\fi |
| 110 | 168 |
|
169 |
\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
|
170 |
\loop \global\mathcode\count0=\count1 \ifnum \count0<#2 |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
171 |
\advance\count0 by1 \advance\count1 by1 \repeat}} |
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
172 |
|
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
173 |
\edef\@tempa{\hexnumber@\itfam}
|
| 110 | 174 |
|
|
140
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
175 |
\@setmcodes{`A}{`Z}{"7\@tempa 41}
|
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
176 |
\@setmcodes{`a}{`z}{"7\@tempa 61}
|
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
177 |
|
|
3a8c68d1d466
changed itmath trickery to be compatible with NFSS (itmath.sty)
nipkow
parents:
110
diff
changeset
|
178 |
\ifx\define@mathgroup\undefined\else |
| 293 | 179 |
\define@mathgroup\mv@normal{\itfam}{cmr}{m}{it}\fi
|