doc-src/IsarRef/style.sty
author wenzelm
Mon, 02 May 2011 21:59:47 +0200
changeset 43502 028f94955436
parent 30242 aea5d7fa7ef5
child 43525 b1a051891ec4
permissions -rw-r--r--
proper treatment of underscore in rail diagrams;
wenzelm@26738
     1
%% toc
wenzelm@26738
     2
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
wenzelm@26738
     3
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
wenzelm@26738
     4
wenzelm@26865
     5
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
wenzelm@26865
     6
wenzelm@26738
     7
%% references
wenzelm@26738
     8
\newcommand{\secref}[1]{\S\ref{#1}}
wenzelm@26738
     9
\newcommand{\chref}[1]{chapter~\ref{#1}}
wenzelm@26759
    10
\newcommand{\Chref}[1]{Chapter~\ref{#1}}
wenzelm@26759
    11
\newcommand{\appref}[1]{appendix~\ref{#1}}
wenzelm@26759
    12
\newcommand{\Appref}[1]{Appendix~\ref{#1}}
wenzelm@26738
    13
\newcommand{\figref}[1]{figure~\ref{#1}}
wenzelm@26759
    14
\newcommand{\Figref}[1]{Figure~\ref{#1}}
wenzelm@26738
    15
wenzelm@28760
    16
%% ML
wenzelm@28763
    17
\newenvironment{mldecls}{\par\noindent\begingroup\def\isanewline{\\}\begin{tabular}{ll}}{\end{tabular}\medskip\endgroup}
wenzelm@28758
    18
wenzelm@30051
    19
%% Isar
wenzelm@30051
    20
\newcommand{\isasymBBAR}{{\,\newdimen{\tmpheight}\settoheight\tmpheight{\isacharbar}\rule{1pt}{\tmpheight}\,}}
wenzelm@30059
    21
\isafoldtag{noproof}\def\isafoldnoproof{~\isafold{proof}}
wenzelm@30051
    22
wenzelm@26859
    23
%% math
wenzelm@30051
    24
\newcommand{\isasymstrut}{\isamath{\mathstrut}}
wenzelm@30051
    25
\newcommand{\isasymvartheta}{\isamath{\,\theta}}
wenzelm@26859
    26
\newcommand{\isactrlvec}[1]{\emph{$\overline{#1}$}}
wenzelm@26859
    27
\renewcommand{\isadigit}[1]{\isamath{#1}}
wenzelm@30051
    28
\newcommand{\text}[1]{\mbox{#1}}
wenzelm@26738
    29
wenzelm@26865
    30
%% global style options
wenzelm@26738
    31
\pagestyle{headings}
wenzelm@26738
    32
\sloppy
wenzelm@26738
    33
wenzelm@26738
    34
\isabellestyle{it}
wenzelm@43502
    35
\newcommand{\isasymdash}{\mbox{-}}
wenzelm@43502
    36
wenzelm@26859
    37
\underscoreon
wenzelm@43502
    38
\newcommand{\setupunderscore}{\def\isacharunderscore{\_}\def\isacharunderscorekeyword{\_}}
wenzelm@43502
    39
\setupunderscore
wenzelm@43502
    40
wenzelm@43502
    41
\makeatletter
wenzelm@43502
    42
\def\rail@termfont{\isabellestyle{tt}\setupunderscore}
wenzelm@43502
    43
\def\rail@nontfont{\isabellestyle{it}\setupunderscore}
wenzelm@43502
    44
\def\rail@namefont{\isabellestyle{it}\setupunderscore}
wenzelm@43502
    45
\makeatother