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