doc-src/IsarImplementation/style.sty
author wenzelm
Tue Feb 17 22:46:41 2009 +0100 (2009-02-17 ago)
changeset 29763 c0f2c8424848
parent 29758 7a3b5bbed313
child 29776 8f2eb202ae94
permissions -rw-r--r--
some more Isar macros;
     1 %% toc
     2 \newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
     3 \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
     4 
     5 %% references
     6 \newcommand{\secref}[1]{\S\ref{#1}}
     7 \newcommand{\chref}[1]{chapter~\ref{#1}}
     8 \newcommand{\figref}[1]{figure~\ref{#1}}
     9 
    10 %% index
    11 \newcommand{\indexml}[1]{\index{\emph{#1}|bold}}
    12 \newcommand{\indexmlexception}[1]{\index{\emph{#1} (exception)|bold}}
    13 \newcommand{\indexmltype}[1]{\index{\emph{#1} (type)|bold}}
    14 \newcommand{\indexmlstructure}[1]{\index{\emph{#1} (structure)|bold}}
    15 \newcommand{\indexmlfunctor}[1]{\index{\emph{#1} (functor)|bold}}
    16 
    17 %% math
    18 \newcommand{\text}[1]{\mbox{#1}}
    19 \newcommand{\isasymvartheta}{\isamath{\theta}}
    20 \newcommand{\isactrlvec}[1]{\emph{$\overline{#1}$}}
    21 \newcommand{\isactrlBG}{\isacharbackquoteopen}
    22 \newcommand{\isactrlEN}{\isacharbackquoteclose}
    23 
    24 \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
    25 
    26 \pagestyle{headings}
    27 \sloppy
    28 \binperiod
    29 \underscoreon
    30 
    31 \renewcommand{\isadigit}[1]{\isamath{#1}}
    32 
    33 \newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
    34 
    35 \isafoldtag{FIXME}
    36 \isakeeptag{mlref}
    37 \renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
    38 \renewcommand{\endisatagmlref}{\endgroup}
    39 
    40 \newcommand{\minorcmd}[1]{{\sf #1}}
    41 \newcommand{\isasymtype}{\minorcmd{type}}
    42 \newcommand{\isasymval}{\minorcmd{val}}
    43 
    44 \newcommand{\isasymFIX}{\isakeyword{fix}}
    45 \newcommand{\isasymASSUME}{\isakeyword{assume}}
    46 \newcommand{\isasymDEFINE}{\isakeyword{define}}
    47 \newcommand{\isasymNOTE}{\isakeyword{note}}
    48 \newcommand{\isasymGUESS}{\isakeyword{guess}}
    49 \newcommand{\isasymOBTAIN}{\isakeyword{obtain}}
    50 \newcommand{\isasymTHEORY}{\isakeyword{theory}}
    51 \newcommand{\isasymUSES}{\isakeyword{uses}}
    52 \newcommand{\isasymEND}{\isakeyword{end}}
    53 \newcommand{\isasymCONSTS}{\isakeyword{consts}}
    54 \newcommand{\isasymDEFS}{\isakeyword{defs}}
    55 \newcommand{\isasymTHEOREM}{\isakeyword{theorem}}
    56 \newcommand{\isasymDEFINITION}{\isakeyword{definition}}
    57 
    58 \isabellestyle{it}
    59 
    60 
    61 %%% Local Variables: 
    62 %%% mode: latex
    63 %%% TeX-master: "implementation"
    64 %%% End: