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