author | haftmann |
Thu, 23 Sep 2010 16:28:12 +0200 | |
changeset 39665 | f1622d126e31 |
parent 39664 | 0afaf89ab591 |
child 39676 | 810f98bd4eea |
permissions | -rw-r--r-- |
20948 | 1 |
|
2 |
%% toc |
|
3 |
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1} |
|
4 |
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} |
|
5 |
||
30227 | 6 |
%% paragraphs |
7 |
\setlength{\parindent}{1em} |
|
8 |
||
20948 | 9 |
%% references |
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 | 12 |
|
29017 | 13 |
%% logical markup |
14 |
\newcommand{\strong}[1]{{\bfseries {#1}}} |
|
15 |
\newcommand{\qn}[1]{\emph{#1}} |
|
16 |
||
17 |
%% typographic conventions |
|
18 |
\newcommand{\qt}[1]{``{#1}''} |
|
38404 | 19 |
\newcommand{\ditem}[1]{\item[\isastyletext #1]} |
29017 | 20 |
|
30227 | 21 |
%% quote environment |
29017 | 22 |
\isakeeptag{quote} |
30227 | 23 |
\renewenvironment{quote} |
24 |
{\list{}{\leftmargin2em\rightmargin0pt}\parindent0pt\parskip0pt\item\relax} |
|
25 |
{\endlist} |
|
26 |
\renewcommand{\isatagquote}{\begin{quote}} |
|
27 |
\renewcommand{\endisatagquote}{\end{quote}} |
|
28 |
\newcommand{\quotebreak}{\\[1.2ex]} |
|
29017 | 29 |
|
39664
0afaf89ab591
more canonical type setting of type writer code examples
haftmann
parents:
39538
diff
changeset
|
30 |
%% typewriter text |
0afaf89ab591
more canonical type setting of type writer code examples
haftmann
parents:
39538
diff
changeset
|
31 |
\newenvironment{typewriter}{\renewcommand{\isadigit}[1]{{##1}}% |
39665
f1622d126e31
more idiomatic handling of latex typewriter type setting
haftmann
parents:
39664
diff
changeset
|
32 |
\parindent0pt% |
f1622d126e31
more idiomatic handling of latex typewriter type setting
haftmann
parents:
39664
diff
changeset
|
33 |
\fontsize{9pt}{0pt}% |
f1622d126e31
more idiomatic handling of latex typewriter type setting
haftmann
parents:
39664
diff
changeset
|
34 |
\isabellestyle{tt}\isastyle}{} |
39664
0afaf89ab591
more canonical type setting of type writer code examples
haftmann
parents:
39538
diff
changeset
|
35 |
|
29017 | 36 |
\isakeeptag{quotett} |
30227 | 37 |
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle} |
39664
0afaf89ab591
more canonical type setting of type writer code examples
haftmann
parents:
39538
diff
changeset
|
38 |
\renewcommand{\endisatagquotett}{\end{quote}} |
29017 | 39 |
|
40 |
%% a trick |
|
41 |
\newcommand{\isasymSML}{SML} |
|
42 |
||
43 |
%% presentation |
|
20948 | 44 |
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} |
45 |
||
30227 | 46 |
%% character detail |
47 |
\renewcommand{\isadigit}[1]{\isamath{#1}} |
|
20948 | 48 |
\binperiod |
29104 | 49 |
\underscoreoff |
20948 | 50 |
|
30227 | 51 |
%% format |
52 |
\pagestyle{headings} |
|
53 |
\isabellestyle{it} |
|
20948 | 54 |
|
29017 | 55 |
%% ml reference |
20948 | 56 |
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup} |
57 |
||
58 |
\isakeeptag{mlref} |
|
59 |
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small} |
|
60 |
\renewcommand{\endisatagmlref}{\endgroup} |
|
61 |
||
29017 | 62 |
\isabellestyle{it} |
20948 | 63 |
|
64 |
||
65 |
%%% Local Variables: |
|
66 |
%%% mode: latex |
|
67 |
%%% TeX-master: "implementation" |
|
68 |
%%% End: |