doc-src/Codegen/style.sty
author haftmann
Mon, 20 Sep 2010 09:19:13 +0200
changeset 39760 5aced2f43837
parent 38630 a461dd80f83c
child 39888 0afaf89ab591
permissions -rw-r--r--
\\isatypewrite now part of isabelle latex style
haftmann@20948
     1
haftmann@20948
     2
%% toc
haftmann@20948
     3
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
haftmann@20948
     4
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
haftmann@20948
     5
haftmann@30210
     6
%% paragraphs
haftmann@30210
     7
\setlength{\parindent}{1em}
haftmann@30210
     8
haftmann@20948
     9
%% references
haftmann@20948
    10
\newcommand{\secref}[1]{\S\ref{#1}}
haftmann@20948
    11
haftmann@29017
    12
%% logical markup
haftmann@29017
    13
\newcommand{\strong}[1]{{\bfseries {#1}}}
haftmann@29017
    14
\newcommand{\qn}[1]{\emph{#1}}
haftmann@20948
    15
haftmann@29017
    16
%% typographic conventions
haftmann@29017
    17
\newcommand{\qt}[1]{``{#1}''}
haftmann@38630
    18
\newcommand{\ditem}[1]{\item[\isastyletext #1]}
haftmann@29017
    19
haftmann@30210
    20
%% quote environment
haftmann@29017
    21
\isakeeptag{quote}
haftmann@30210
    22
\renewenvironment{quote}
haftmann@30210
    23
  {\list{}{\leftmargin2em\rightmargin0pt}\parindent0pt\parskip0pt\item\relax}
haftmann@30210
    24
  {\endlist}
haftmann@30210
    25
\renewcommand{\isatagquote}{\begin{quote}}
haftmann@30210
    26
\renewcommand{\endisatagquote}{\end{quote}}
haftmann@30210
    27
\newcommand{\quotebreak}{\\[1.2ex]}
haftmann@29017
    28
haftmann@29017
    29
\isakeeptag{quotett}
haftmann@30210
    30
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle}
haftmann@30210
    31
\renewcommand{\endisatagquotett}{\end{quote}\isabellestyle{it}\isastyle}
haftmann@29017
    32
haftmann@29017
    33
%% a trick
haftmann@29017
    34
\newcommand{\isasymSML}{SML}
haftmann@29017
    35
haftmann@29017
    36
%% presentation
haftmann@20948
    37
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
haftmann@20948
    38
haftmann@30210
    39
%% character detail
haftmann@30210
    40
\renewcommand{\isadigit}[1]{\isamath{#1}}
haftmann@20948
    41
\binperiod
haftmann@29104
    42
\underscoreoff
haftmann@20948
    43
haftmann@30210
    44
%% format
haftmann@30210
    45
\pagestyle{headings}
haftmann@30210
    46
\isabellestyle{it}
haftmann@20948
    47
haftmann@29017
    48
%% ml reference
haftmann@20948
    49
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
haftmann@20948
    50
haftmann@20948
    51
\isakeeptag{mlref}
haftmann@20948
    52
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
haftmann@20948
    53
\renewcommand{\endisatagmlref}{\endgroup}
haftmann@20948
    54
haftmann@29017
    55
\isabellestyle{it}
haftmann@20948
    56
haftmann@20948
    57
haftmann@20948
    58
%%% Local Variables: 
haftmann@20948
    59
%%% mode: latex
haftmann@20948
    60
%%% TeX-master: "implementation"
haftmann@20948
    61
%%% End: