doc-src/iman.sty
author lcp
Wed Mar 23 13:05:12 1994 +0100 (1994-03-23)
changeset 293 63a0077dd9f2
parent 140 3a8c68d1d466
child 301 f5ccfc4d362f
permissions -rw-r--r--
first draft of Springer volume
     1 % iman.sty : Isabelle Manual Page Layout
     2 %
     3 \typeout{Document Style iman. Released 17 February 1994}
     4 
     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
     9 
    10 %%%INDEXING  use sedindex to process the index
    11 %index, putting page numbers of definitions in boldface
    12 \newcommand\bold[1]{{\bf#1}}
    13 \newcommand\fnote[1]{#1n}
    14 \newcommand\indexbold[1]{\index{#1|bold}}
    15 
    16 %for cross-references: 2nd argument (page number) is ignored
    17 \newcommand\see[2]{{\it see \/}{#1}}
    18 \newcommand\seealso[2]{{\it see also \/}{#1}}
    19 
    20 %set argument in \tt font; at the sime time, index using * prefix
    21 \newcommand\ttindex[1]{{\tt#1}\index{*#1}\@}
    22 \newcommand\ttindexbold[1]{{\tt#1}\index{*#1|bold}\@}
    23 
    24 %set argument in \bf font and index in ROMAN font (for definitions in text!)
    25 \newcommand\bfindex[1]{{\bf#1}\index{#1|bold}\@}
    26 
    27 
    28 %%% underscores as ordinary characters, not for subscripting
    29 %%  use @ or \sb for subscripting; use \at for @
    30 %%  only works in \tt font
    31 %%  must not make _ an active char; would make \ttindex fail!
    32 \gdef\underscoreoff{\catcode`\@=8\catcode`\_=\other}
    33 \gdef\underscoreon{\catcode`\_=8\makeatother}
    34 \chardef\other=12
    35 \chardef\at=`\@
    36 
    37 % alternative underscore
    38 \def\_{\leavevmode\kern.06em\vbox{\hrule height.2ex width.3em}\hskip0.1em}
    39 
    40 %%% \dquotes permits usage of "..." for \hbox{...} -- also taken from under.sty
    41 {\catcode`\"=\active
    42 \gdef\dquotes{\catcode`\"=\active  \let"=\@mathText}%
    43 \gdef\@mathText#1"{\hbox{\mathTextFont #1\/}}}
    44 \def\mathTextFont{\frenchspacing\tt}
    45 
    46 %%%% meta-logical connectives
    47 
    48 \let\Forall=\bigwedge
    49 \let\Imp=\Longrightarrow
    50 \let\To=\Rightarrow
    51 \newcommand\Var[1]{{?\!#1}}
    52 
    53 %%%% ``WARNING'' environment
    54 \def\dbend{\vtop to 0pt{\vss\hbox{\Huge\bf!}\vss}}
    55 \newenvironment{warn}{\medskip\medbreak\begingroup \clubpenalty=10000 
    56          \small %%WAS\baselineskip=0.9\baselineskip
    57          \noindent \hangindent\parindent \hangafter=-2 
    58          \hbox to0pt{\hskip-\hangindent\dbend\hfill}\ignorespaces}%
    59         {\par\endgroup\medbreak}
    60 
    61 
    62 %%%% Standard logical symbols
    63 \let\turn=\vdash
    64 \let\conj=\wedge
    65 \let\disj=\vee
    66 \let\imp=\rightarrow
    67 \let\bimp=\leftrightarrow
    68 \newcommand\all[1]{\forall#1.}  %quantification
    69 \newcommand\ex[1]{\exists#1.}
    70 \newcommand{\pair}[1]{\langle#1\rangle}
    71 
    72 \newcommand\lbrakk{\mathopen{[\![}}
    73 \newcommand\rbrakk{\mathclose{]\!]}}
    74 \newcommand\List[1]{\lbrakk#1\rbrakk}  %was \obj
    75 \newcommand\vpile[1]{\begin{array}{c}#1\end{array}}
    76 
    77 \let\int=\cap
    78 \let\un=\cup
    79 \let\inter=\bigcap
    80 \let\union=\bigcup
    81 
    82 \def\ML{{\sc ml}}
    83 \def\OBJ{{\sc obj}}
    84 
    85 \def\LCF{{\tt LCF}\@}
    86 \def\FOL{{\tt FOL}\@}
    87 \def\HOL{{\tt HOL}\@}
    88 \def\LK{{\tt LK}\@}
    89 \def\ZF{{\tt ZF}\@}
    90 \def\CTT{{\tt CTT}\@}
    91 \def\Cube{{\tt Cube}}
    92 \def\Modal{{\tt Modal}}
    93 
    94 %macros to change the treatment of symbols
    95 \def\relsemicolon{\mathcode`\;="303B}   %treat ; like a relation
    96 \def\binperiod{\mathcode`\.="213A}   %treat . like a binary operator
    97 \def\binvert{\mathcode`\|="226A}     %treat | like a binary operator
    98 
    99 %redefinition of \sloppy and \fussy to use \emergencystretch
   100 \def\sloppy{\tolerance2000 \hfuzz.5pt \vfuzz.5pt \emergencystretch=15pt}
   101 \def\fussy{\tolerance200 \hfuzz.1pt \vfuzz.1pt \emergencystretch=0pt}
   102 
   103 \chardef\ttilde=`\~     % A tilde for \tt font
   104 \chardef\ttback=`\\     % A backslash for \tt font
   105 \chardef\ttlbrace=`\{   % A left brace for \tt font
   106 \chardef\ttrbrace=`\}   % A right brace for \tt font
   107 
   108 \newfont{\sltt}{cmsltt10}     %% for output from terminal sessions
   109 \newcommand\out{\ \sltt}
   110 
   111 % "itmath.sty" use cmr italic for letters in math mode and get the
   112 %              usual letter spacing of text mode.
   113 %
   114 % Michael Lawley, April 1993
   115 % (lawley@cit.gu.edu.au)
   116 %
   117 % Derived from itma.sty (of unknown origin).
   118 %
   119 % MATHCODES
   120 %
   121 % The mathcodes for the letters A, ..., Z, a, ..., z are changed to
   122 % generate text italic rather than math italic by default. This makes
   123 % multi-letter identifiers look better. The mathcode for character c
   124 % is set to "7000 (variable class) + "400 (text italic) + c.
   125 %
   126 % For NFSS the mathcode is "7000 (variable class) + (hex)\itfam + c
   127 % \itfam is probably equal to 7.
   128 %
   129 
   130 \ifx\undefined\hexnumber@
   131   \def\hexnumber@#1{\ifcase#1 \z@
   132   \or \@ne \or \tw@ \or \thr@@
   133   \or 4\or 5\or 6\or 7\or 8\or
   134   9\or A\or B\or C\or D\or E\or F\fi}
   135 \fi
   136 
   137 \def\@setmcodes#1#2#3{{\count0=#1 \count1=#3
   138         \loop \global\mathcode\count0=\count1 \ifnum \count0<#2
   139         \advance\count0 by1 \advance\count1 by1 \repeat}}
   140 
   141 \edef\@tempa{\hexnumber@\itfam}
   142 
   143 \@setmcodes{`A}{`Z}{"7\@tempa 41}
   144 \@setmcodes{`a}{`z}{"7\@tempa 61}
   145 
   146 \ifx\define@mathgroup\undefined\else
   147         \define@mathgroup\mv@normal{\itfam}{cmr}{m}{it}\fi