doc-src/IsarImplementation/style.sty
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 12 Aug 2010 15:03:34 +0200
branchisac-from-Isabelle2009-2
changeset 37913 20e3616b2d9c
parent 34990 e59915c6a552
child 40264 f9066b94bf07
permissions -rw-r--r--
prepare reactivation of isac-update-Isa09-2
     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 %% math
    11 \newcommand{\text}[1]{\mbox{#1}}
    12 \newcommand{\isasymvartheta}{\isamath{\theta}}
    13 \newcommand{\isactrlvec}[1]{\emph{$\vec{#1}$}}
    14 \newcommand{\isactrlBG}{\isacharbackquoteopen}
    15 \newcommand{\isactrlEN}{\isacharbackquoteclose}
    16 
    17 \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
    18 
    19 \pagestyle{headings}
    20 \sloppy
    21 \binperiod
    22 
    23 \renewcommand{\isadigit}[1]{\isamath{#1}}
    24 
    25 \newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
    26 
    27 \isafoldtag{FIXME}
    28 \isakeeptag{mlref}
    29 \renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
    30 \renewcommand{\endisatagmlref}{\endgroup}
    31 
    32 \isakeeptag{mlex}
    33 \renewcommand{\isatagmlex}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Examples}}
    34 \renewcommand{\endisatagmlex}{}
    35 
    36 \renewcommand{\isatagML}{\begingroup\isabellestyle{default}\isastyle\def\isadigit##1{##1}}
    37 \renewcommand{\endisatagML}{\endgroup}
    38 
    39 \newcommand{\minorcmd}[1]{{\sf #1}}
    40 \newcommand{\isasymtype}{\minorcmd{type}}
    41 \newcommand{\isasymval}{\minorcmd{val}}
    42 
    43 \newcommand{\isasymFIX}{\isakeyword{fix}}
    44 \newcommand{\isasymASSUME}{\isakeyword{assume}}
    45 \newcommand{\isasymDEFINE}{\isakeyword{define}}
    46 \newcommand{\isasymNOTE}{\isakeyword{note}}
    47 \newcommand{\isasymGUESS}{\isakeyword{guess}}
    48 \newcommand{\isasymOBTAIN}{\isakeyword{obtain}}
    49 \newcommand{\isasymTHEORY}{\isakeyword{theory}}
    50 \newcommand{\isasymUSES}{\isakeyword{uses}}
    51 \newcommand{\isasymEND}{\isakeyword{end}}
    52 \newcommand{\isasymCONSTS}{\isakeyword{consts}}
    53 \newcommand{\isasymDEFS}{\isakeyword{defs}}
    54 \newcommand{\isasymTHEOREM}{\isakeyword{theorem}}
    55 \newcommand{\isasymDEFINITION}{\isakeyword{definition}}
    56 
    57 \isabellestyle{it}
    58 \underscoreon
    59 \renewcommand{\isacharunderscore}{\_}
    60 \renewcommand{\isacharunderscorekeyword}{\_}
    61 \newcommand{\isasymdash}{\mbox{-}}