doc-src/IsarImplementation/style.sty
author wenzelm
Mon, 04 Sep 2006 16:28:27 +0200
changeset 20470 c839b38a1f32
parent 20451 27ea2ba48fa3
child 20478 de1bd9717d6c
permissions -rw-r--r--
more on variables;
tuned;
     1 
     2 %% $Id$
     3 
     4 %% toc
     5 \newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
     6 \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
     7 
     8 %% references
     9 \newcommand{\secref}[1]{\S\ref{#1}}
    10 \newcommand{\chref}[1]{chapter~\ref{#1}}
    11 \newcommand{\figref}[1]{figure~\ref{#1}}
    12 
    13 %% glossary
    14 \renewcommand{\glossary}[2]{\nomenclature{\bf #1}{#2}}
    15 \newcommand{\seeglossary}[1]{\emph{#1}}
    16 \newcommand{\glossaryname}{Glossary}
    17 \renewcommand{\nomname}{\glossaryname}
    18 \renewcommand{\pagedeclaration}[1]{\nobreak\quad\dotfill~page~\bold{#1}}
    19 
    20 %% index
    21 \newcommand{\indexml}[1]{\index{\emph{#1}|bold}}
    22 \newcommand{\indexmltype}[1]{\index{\emph{#1} (type)|bold}}
    23 \newcommand{\indexmlstructure}[1]{\index{\emph{#1} (structure)|bold}}
    24 \newcommand{\indexmlfunctor}[1]{\index{\emph{#1} (functor)|bold}}
    25 
    26 
    27 \newcommand{\drv}{\mathrel{\vdash}}
    28 \newcommand{\edrv}{\mathop{\drv}\nolimits}
    29 \newcommand{\Drv}[1]{\mathrel{\vdash_{#1}}}
    30 \newcommand{\Or}{\mathrel{\;|\;}}
    31 
    32 \renewcommand{\vec}[1]{\overline{#1}}
    33 \renewcommand{\phi}{\varphi}
    34 
    35 \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
    36 
    37 \pagestyle{headings}
    38 \sloppy
    39 \binperiod
    40 \underscoreon
    41 
    42 \renewcommand{\isadigit}[1]{\isamath{#1}}
    43 
    44 \newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\medskip\endgroup}
    45 
    46 \isafoldtag{FIXME}
    47 \isakeeptag{mlref}
    48 \renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
    49 \renewcommand{\endisatagmlref}{\endgroup}
    50 
    51 \newcommand{\isasymTHEORY}{\isakeyword{theory}}
    52 \newcommand{\isasymIMPORTS}{\isakeyword{imports}}
    53 \newcommand{\isasymUSES}{\isakeyword{uses}}
    54 \newcommand{\isasymBEGIN}{\isakeyword{begin}}
    55 \newcommand{\isasymEND}{\isakeyword{end}}
    56 \newcommand{\isasymCONSTS}{\isakeyword{consts}}
    57 \newcommand{\isasymDEFS}{\isakeyword{defs}}
    58 \newcommand{\isasymTHEOREM}{\isakeyword{theorem}}
    59 \newcommand{\isasymDEFINITION}{\isakeyword{definition}}
    60 
    61 \isabellestyle{it}
    62 
    63 %%% Local Variables: 
    64 %%% mode: latex
    65 %%% TeX-master: "implementation"
    66 %%% End: