doc-src/Codegen/style.sty
author boehmes
Tue, 07 Dec 2010 15:44:38 +0100
changeset 41064 0c447a17770a
parent 40351 090dac52cfd7
permissions -rw-r--r--
updated SMT certificates
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}}
39665
f1622d126e31 more idiomatic handling of latex typewriter type setting
haftmann
parents: 39664
diff changeset
    11
\newcommand{\figref}[1]{figure~\ref{#1}}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    12
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    13
%% logical markup
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    14
\newcommand{\strong}[1]{{\bfseries {#1}}}
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    15
\newcommand{\qn}[1]{\emph{#1}}
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    16
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    17
%% typographic conventions
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    18
\newcommand{\qt}[1]{``{#1}''}
38404
haftmann
parents: 30227
diff changeset
    19
\newcommand{\ditem}[1]{\item[\isastyletext #1]}
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    20
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    21
%% quote environment
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    22
\isakeeptag{quote}
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    23
\renewenvironment{quote}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    24
  {\list{}{\leftmargin2em\rightmargin0pt}\parindent0pt\parskip0pt\item\relax}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    25
  {\endlist}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    26
\renewcommand{\isatagquote}{\begin{quote}}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    27
\renewcommand{\endisatagquote}{\end{quote}}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    28
\newcommand{\quotebreak}{\\[1.2ex]}
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    29
39664
0afaf89ab591 more canonical type setting of type writer code examples
haftmann
parents: 39538
diff changeset
    30
%% typewriter text
39680
a0d49ed5a23a use typewriter tag instead of bare environment
haftmann
parents: 39676
diff changeset
    31
\newenvironment{typewriter}{\renewcommand{\isastyletext}{}%
a0d49ed5a23a use typewriter tag instead of bare environment
haftmann
parents: 39676
diff changeset
    32
\renewcommand{\isadigit}[1]{{##1}}%
39665
f1622d126e31 more idiomatic handling of latex typewriter type setting
haftmann
parents: 39664
diff changeset
    33
\parindent0pt%
39746
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    34
\makeatletter\isa@parindent0pt\makeatother%
39676
810f98bd4eea fixed small font size fore typewriter text
haftmann
parents: 39665
diff changeset
    35
\isabellestyle{tt}\isastyle%
810f98bd4eea fixed small font size fore typewriter text
haftmann
parents: 39665
diff changeset
    36
\fontsize{9pt}{9pt}\selectfont}{}
39664
0afaf89ab591 more canonical type setting of type writer code examples
haftmann
parents: 39538
diff changeset
    37
39746
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    38
\isakeeptag{quotetypewriter}
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    39
\renewcommand{\isatagquotetypewriter}{\begin{quote}\begin{typewriter}}
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    40
\renewcommand{\endisatagquotetypewriter}{\end{typewriter}\end{quote}}
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    41
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    42
\isakeeptag{quotett}
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    43
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle}
0da00ec1fd31 combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents: 39711
diff changeset
    44
\renewcommand{\endisatagquotett}{\end{quote}}
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    45
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    46
%% a trick
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    47
\newcommand{\isasymSML}{SML}
40351
090dac52cfd7 SMLdummy target
haftmann
parents: 39746
diff changeset
    48
\newcommand{\isasymSMLdummy}{SML}
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    49
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    50
%% presentation
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    51
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    52
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    53
%% character detail
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    54
\renewcommand{\isadigit}[1]{\isamath{#1}}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    55
\binperiod
29104
a5ac0bc68e2b \underscoreoff is now default
haftmann
parents: 29017
diff changeset
    56
\underscoreoff
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    57
30227
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    58
%% format
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    59
\pagestyle{headings}
853abb4853cc tuned manuals
haftmann
parents: 30226
diff changeset
    60
\isabellestyle{it}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    61
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    62
%% ml reference
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    63
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    64
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    65
\isakeeptag{mlref}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    66
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    67
\renewcommand{\endisatagmlref}{\endgroup}
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    68
29017
9a1eaad4a7bb tuned LaTeX files
haftmann
parents: 26781
diff changeset
    69
\isabellestyle{it}
20948
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    70
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    71
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    72
%%% Local Variables: 
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    73
%%% mode: latex
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    74
%%% TeX-master: "implementation"
9b9910b82645 initial draft
haftmann
parents:
diff changeset
    75
%%% End: