doc-src/Codegen/style.sty
author wenzelm
Wed, 21 Jul 2010 13:55:44 +0200
changeset 37866 cd1d1bc7684c
parent 30227 853abb4853cc
child 38404 a461dd80f83c
permissions -rw-r--r--
thy_deps: more direct comparison of sessions, which is presumably what "unfold" is meant to indicate here -- also avoid referring to accidental theory loader state;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
     1
9b9910b82645 initial draft
haftmann
parents:
diff changeset
     2
%% toc
9b9910b82645 initial draft
haftmann
parents:
diff changeset
     3
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
     4
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
     5
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
     6
%% paragraphs
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
     7
\setlength{\parindent}{1em}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
     8
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
     9
%% references
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    10
\newcommand{\secref}[1]{\S\ref{#1}}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    11
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    12
%% logical markup
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    13
\newcommand{\strong}[1]{{\bfseries {#1}}}
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    14
\newcommand{\qn}[1]{\emph{#1}}
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    15
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    16
%% typographic conventions
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    17
\newcommand{\qt}[1]{``{#1}''}
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    18
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    19
%% verbatim text
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    20
\newcommand{\isatypewriter}{\fontsize{9pt}{0pt}\tt\renewcommand{\baselinestretch}{1}\setlength{\baselineskip}{9pt}}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    21
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    22
%% quote environment
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    23
\isakeeptag{quote}
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    24
\renewenvironment{quote}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    25
  {\list{}{\leftmargin2em\rightmargin0pt}\parindent0pt\parskip0pt\item\relax}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    26
  {\endlist}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    27
\renewcommand{\isatagquote}{\begin{quote}}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    28
\renewcommand{\endisatagquote}{\end{quote}}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    29
\newcommand{\quotebreak}{\\[1.2ex]}
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    30
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    31
\isakeeptag{quotett}
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    32
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    33
\renewcommand{\endisatagquotett}{\end{quote}\isabellestyle{it}\isastyle}
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    34
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    35
%% a trick
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    36
\newcommand{\isasymSML}{SML}
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    37
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    38
%% presentation
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    39
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    40
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    41
%% character detail
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    42
\renewcommand{\isadigit}[1]{\isamath{#1}}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    43
\binperiod
29104
a5ac0bc68e2b \underscoreoff is now default
haftmann
parents: 29017
diff changeset
    44
\underscoreoff
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    45
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    46
%% format
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    47
\pagestyle{headings}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    48
\isabellestyle{it}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    49
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    50
%% ml reference
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    51
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    52
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    53
\isakeeptag{mlref}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    54
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    55
\renewcommand{\endisatagmlref}{\endgroup}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    56
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    57
\isabellestyle{it}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    58
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    59
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    60
%%% Local Variables: 
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    61
%%% mode: latex
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    62
%%% TeX-master: "implementation"
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    63
%%% End: