doc-src/Codegen/style.sty
author haftmann
Fri Jan 22 13:38:28 2010 +0100 (2010-01-22)
changeset 34944 970e1466028d
parent 30227 853abb4853cc
child 38404 a461dd80f83c
permissions -rw-r--r--
code literals: distinguish numeral classes by different entries
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@30227
     6
%% paragraphs
haftmann@30227
     7
\setlength{\parindent}{1em}
haftmann@30227
     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@29017
    15
haftmann@29017
    16
%% typographic conventions
haftmann@29017
    17
\newcommand{\qt}[1]{``{#1}''}
haftmann@29017
    18
haftmann@29017
    19
%% verbatim text
haftmann@29017
    20
\newcommand{\isatypewriter}{\fontsize{9pt}{0pt}\tt\renewcommand{\baselinestretch}{1}\setlength{\baselineskip}{9pt}}
haftmann@20948
    21
haftmann@30227
    22
%% quote environment
haftmann@29017
    23
\isakeeptag{quote}
haftmann@30227
    24
\renewenvironment{quote}
haftmann@30227
    25
  {\list{}{\leftmargin2em\rightmargin0pt}\parindent0pt\parskip0pt\item\relax}
haftmann@30227
    26
  {\endlist}
haftmann@30227
    27
\renewcommand{\isatagquote}{\begin{quote}}
haftmann@30227
    28
\renewcommand{\endisatagquote}{\end{quote}}
haftmann@30227
    29
\newcommand{\quotebreak}{\\[1.2ex]}
haftmann@29017
    30
haftmann@29017
    31
\isakeeptag{quotett}
haftmann@30227
    32
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle}
haftmann@30227
    33
\renewcommand{\endisatagquotett}{\end{quote}\isabellestyle{it}\isastyle}
haftmann@29017
    34
haftmann@29017
    35
%% a trick
haftmann@29017
    36
\newcommand{\isasymSML}{SML}
haftmann@29017
    37
haftmann@29017
    38
%% presentation
haftmann@20948
    39
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
haftmann@20948
    40
haftmann@30227
    41
%% character detail
haftmann@30227
    42
\renewcommand{\isadigit}[1]{\isamath{#1}}
haftmann@20948
    43
\binperiod
haftmann@29104
    44
\underscoreoff
haftmann@20948
    45
haftmann@30227
    46
%% format
haftmann@30227
    47
\pagestyle{headings}
haftmann@30227
    48
\isabellestyle{it}
haftmann@20948
    49
haftmann@29017
    50
%% ml reference
haftmann@20948
    51
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
haftmann@20948
    52
haftmann@20948
    53
\isakeeptag{mlref}
haftmann@20948
    54
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
haftmann@20948
    55
\renewcommand{\endisatagmlref}{\endgroup}
haftmann@20948
    56
haftmann@29017
    57
\isabellestyle{it}
haftmann@20948
    58
haftmann@20948
    59
haftmann@20948
    60
%%% Local Variables: 
haftmann@20948
    61
%%% mode: latex
haftmann@20948
    62
%%% TeX-master: "implementation"
haftmann@20948
    63
%%% End: