doc-src/Codegen/style.sty
author haftmann
Tue, 03 Mar 2009 11:00:51 +0100
changeset 30209 2f4684e2ea95
parent 30120 doc-src/IsarAdvanced/Codegen/style.sty@aaa4667285c8
child 30210 853abb4853cc
permissions -rw-r--r--
more canonical directory structure of manuals
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@20948
     6
%% references
haftmann@20948
     7
\newcommand{\secref}[1]{\S\ref{#1}}
haftmann@20948
     8
haftmann@29017
     9
%% logical markup
haftmann@29017
    10
\newcommand{\strong}[1]{{\bfseries {#1}}}
haftmann@29017
    11
\newcommand{\qn}[1]{\emph{#1}}
haftmann@20948
    12
haftmann@29017
    13
%% typographic conventions
haftmann@29017
    14
\newcommand{\qt}[1]{``{#1}''}
haftmann@29017
    15
haftmann@29017
    16
%% verbatim text
haftmann@29017
    17
\newcommand{\isatypewriter}{\fontsize{9pt}{0pt}\tt\renewcommand{\baselinestretch}{1}\setlength{\baselineskip}{9pt}}
haftmann@29017
    18
haftmann@29017
    19
%% quoted segments
haftmann@29017
    20
\makeatletter
haftmann@29017
    21
\isakeeptag{quote}
haftmann@29017
    22
\newenvironment{quotesegment}{\begin{quote}\isa@parindent\parindent\parindent0pt\isa@parskip\parskip\parskip0pt}{\end{quote}}
haftmann@29017
    23
\renewcommand{\isatagquote}{\begin{quotesegment}}
haftmann@29017
    24
\renewcommand{\endisatagquote}{\end{quotesegment}}
haftmann@29017
    25
\makeatother
haftmann@29017
    26
haftmann@29017
    27
\isakeeptag{quotett}
haftmann@29017
    28
\renewcommand{\isatagquotett}{\begin{quotesegment}\isabellestyle{tt}\isastyle}
haftmann@29017
    29
\renewcommand{\endisatagquotett}{\end{quotesegment}\isabellestyle{it}\isastyle}
haftmann@29017
    30
haftmann@29017
    31
%% a trick
haftmann@29017
    32
\newcommand{\isasymSML}{SML}
haftmann@29017
    33
haftmann@29017
    34
%% presentation
haftmann@20948
    35
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
haftmann@20948
    36
haftmann@20948
    37
\pagestyle{headings}
haftmann@20948
    38
\binperiod
haftmann@29104
    39
\underscoreoff
haftmann@20948
    40
haftmann@20948
    41
\renewcommand{\isadigit}[1]{\isamath{#1}}
haftmann@20948
    42
haftmann@29017
    43
%% ml reference
haftmann@20948
    44
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
haftmann@20948
    45
haftmann@20948
    46
\isakeeptag{mlref}
haftmann@20948
    47
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
haftmann@20948
    48
\renewcommand{\endisatagmlref}{\endgroup}
haftmann@20948
    49
haftmann@29017
    50
\isabellestyle{it}
haftmann@20948
    51
haftmann@20948
    52
haftmann@20948
    53
%%% Local Variables: 
haftmann@20948
    54
%%% mode: latex
haftmann@20948
    55
%%% TeX-master: "implementation"
haftmann@20948
    56
%%% End: