doc-src/IsarRef/style.sty
author wenzelm
Thu, 13 Nov 2008 21:49:46 +0100
changeset 28763 b5e6122ff575
parent 28760 cbc435f7b16b
child 29725 03916d2d16d3
child 30240 5b25fee0362c
permissions -rw-r--r--
added pretty printing options (from old ref manual);


%% $Id$

%% toc
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}

\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}

%% references
\newcommand{\secref}[1]{\S\ref{#1}}
\newcommand{\chref}[1]{chapter~\ref{#1}}
\newcommand{\Chref}[1]{Chapter~\ref{#1}}
\newcommand{\appref}[1]{appendix~\ref{#1}}
\newcommand{\Appref}[1]{Appendix~\ref{#1}}
\newcommand{\figref}[1]{figure~\ref{#1}}
\newcommand{\Figref}[1]{Figure~\ref{#1}}

%% ML
\newenvironment{mldecls}{\par\noindent\begingroup\def\isanewline{\\}\begin{tabular}{ll}}{\end{tabular}\medskip\endgroup}
\newcommand{\indexml}[1]{\index{#1 (ML value)|bold}}

%% math
\newcommand{\isactrlvec}[1]{\emph{$\overline{#1}$}}
\renewcommand{\isadigit}[1]{\isamath{#1}}


%% global style options
\pagestyle{headings}
\sloppy

\isabellestyle{it}
\underscoreon
\renewcommand{\isacharunderscore}{\_}
\renewcommand{\isacharunderscorekeyword}{\_}
\newcommand{\isasymdash}{\mbox{-}}