doc-src/IsarAdvanced/Functions/style.sty
author krauss
Tue, 07 Nov 2006 12:20:11 +0100
changeset 21212 547224bf9348
child 26781 861e06a047c5
permissions -rw-r--r--
Added a (stub of a) function tutorial
krauss@21212
     1
krauss@21212
     2
%% $Id$
krauss@21212
     3
krauss@21212
     4
%% toc
krauss@21212
     5
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
krauss@21212
     6
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
krauss@21212
     7
krauss@21212
     8
%% references
krauss@21212
     9
\newcommand{\secref}[1]{\S\ref{#1}}
krauss@21212
    10
\newcommand{\chref}[1]{chapter~\ref{#1}}
krauss@21212
    11
\newcommand{\figref}[1]{figure~\ref{#1}}
krauss@21212
    12
krauss@21212
    13
%% glossary
krauss@21212
    14
\renewcommand{\glossary}[2]{\nomenclature{\bf #1}{#2}}
krauss@21212
    15
\newcommand{\seeglossary}[1]{\emph{#1}}
krauss@21212
    16
\newcommand{\glossaryname}{Glossary}
krauss@21212
    17
\renewcommand{\nomname}{\glossaryname}
krauss@21212
    18
\renewcommand{\pagedeclaration}[1]{\nobreak\quad\dotfill~page~\bold{#1}}
krauss@21212
    19
krauss@21212
    20
%% index
krauss@21212
    21
\newcommand{\indexml}[1]{\index{\emph{#1}|bold}}
krauss@21212
    22
\newcommand{\indexmltype}[1]{\index{\emph{#1} (type)|bold}}
krauss@21212
    23
\newcommand{\indexmlstructure}[1]{\index{\emph{#1} (structure)|bold}}
krauss@21212
    24
\newcommand{\indexmlfunctor}[1]{\index{\emph{#1} (functor)|bold}}
krauss@21212
    25
krauss@21212
    26
%% math
krauss@21212
    27
\newcommand{\text}[1]{\mbox{#1}}
krauss@21212
    28
\newcommand{\isasymvartheta}{\isamath{\theta}}
krauss@21212
    29
\newcommand{\isactrlvec}[1]{\emph{$\overline{#1}$}}
krauss@21212
    30
krauss@21212
    31
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
krauss@21212
    32
krauss@21212
    33
\pagestyle{headings}
krauss@21212
    34
\sloppy
krauss@21212
    35
\binperiod
krauss@21212
    36
\underscoreon
krauss@21212
    37
krauss@21212
    38
\renewcommand{\isadigit}[1]{\isamath{#1}}
krauss@21212
    39
krauss@21212
    40
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
krauss@21212
    41
krauss@21212
    42
\isafoldtag{FIXME}
krauss@21212
    43
\isakeeptag{mlref}
krauss@21212
    44
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
krauss@21212
    45
\renewcommand{\endisatagmlref}{\endgroup}
krauss@21212
    46
krauss@21212
    47
\newcommand{\isasymGUESS}{\isakeyword{guess}}
krauss@21212
    48
\newcommand{\isasymOBTAIN}{\isakeyword{obtain}}
krauss@21212
    49
\newcommand{\isasymTHEORY}{\isakeyword{theory}}
krauss@21212
    50
\newcommand{\isasymIMPORTS}{\isakeyword{imports}}
krauss@21212
    51
\newcommand{\isasymUSES}{\isakeyword{uses}}
krauss@21212
    52
\newcommand{\isasymBEGIN}{\isakeyword{begin}}
krauss@21212
    53
\newcommand{\isasymEND}{\isakeyword{end}}
krauss@21212
    54
\newcommand{\isasymCONSTS}{\isakeyword{consts}}
krauss@21212
    55
\newcommand{\isasymDEFS}{\isakeyword{defs}}
krauss@21212
    56
\newcommand{\isasymTHEOREM}{\isakeyword{theorem}}
krauss@21212
    57
\newcommand{\isasymDEFINITION}{\isakeyword{definition}}
krauss@21212
    58
krauss@21212
    59
\isabellestyle{it}
krauss@21212
    60
krauss@21212
    61
%%% Local Variables: 
krauss@21212
    62
%%% mode: latex
krauss@21212
    63
%%% TeX-master: "implementation"
krauss@21212
    64
%%% End: