| author | haftmann |
| Thu, 20 Dec 2018 12:40:24 +0000 | |
| changeset 69484 | ed6b100a9c7d |
| parent 65041 | 2525e680f94f |
| child 69660 | 2bc2a8599369 |
| 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 |
|
| 65041 | 21 |
%% vectors |
22 |
\newcommand{\isactrlvec}[1]{\emph{$\overline{#1}$}}
|
|
23 |
||
| 30227 | 24 |
%% quote environment |
| 29017 | 25 |
\isakeeptag{quote}
|
| 30227 | 26 |
\renewenvironment{quote}
|
27 |
{\list{}{\leftmargin2em\rightmargin0pt}\parindent0pt\parskip0pt\item\relax}
|
|
28 |
{\endlist}
|
|
29 |
\renewcommand{\isatagquote}{\begin{quote}}
|
|
30 |
\renewcommand{\endisatagquote}{\end{quote}}
|
|
31 |
\newcommand{\quotebreak}{\\[1.2ex]}
|
|
| 29017 | 32 |
|
|
39664
0afaf89ab591
more canonical type setting of type writer code examples
haftmann
parents:
39538
diff
changeset
|
33 |
%% typewriter text |
| 39680 | 34 |
\newenvironment{typewriter}{\renewcommand{\isastyletext}{}%
|
35 |
\renewcommand{\isadigit}[1]{{##1}}%
|
|
|
39665
f1622d126e31
more idiomatic handling of latex typewriter type setting
haftmann
parents:
39664
diff
changeset
|
36 |
\parindent0pt% |
|
39746
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
37 |
\makeatletter\isa@parindent0pt\makeatother% |
| 39676 | 38 |
\isabellestyle{tt}\isastyle%
|
39 |
\fontsize{9pt}{9pt}\selectfont}{}
|
|
|
39664
0afaf89ab591
more canonical type setting of type writer code examples
haftmann
parents:
39538
diff
changeset
|
40 |
|
|
39746
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
41 |
\isakeeptag{quotetypewriter}
|
|
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
42 |
\renewcommand{\isatagquotetypewriter}{\begin{quote}\begin{typewriter}}
|
|
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
43 |
\renewcommand{\endisatagquotetypewriter}{\end{typewriter}\end{quote}}
|
|
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
44 |
|
|
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
45 |
\isakeeptag{quotett}
|
|
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
46 |
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle}
|
|
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
47 |
\renewcommand{\endisatagquotett}{\end{quote}}
|
| 29017 | 48 |
|
49 |
%% a trick |
|
50 |
\newcommand{\isasymSML}{SML}
|
|
| 40351 | 51 |
\newcommand{\isasymSMLdummy}{SML}
|
| 29017 | 52 |
|
53 |
%% presentation |
|
| 20948 | 54 |
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
|
55 |
||
| 30227 | 56 |
%% character detail |
57 |
\renewcommand{\isadigit}[1]{\isamath{#1}}
|
|
| 20948 | 58 |
\binperiod |
| 29104 | 59 |
\underscoreoff |
| 20948 | 60 |
|
| 30227 | 61 |
%% format |
62 |
\pagestyle{headings}
|
|
63 |
\isabellestyle{it}
|
|
| 20948 | 64 |
|
| 29017 | 65 |
%% ml reference |
| 20948 | 66 |
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
|
67 |
||
68 |
\isakeeptag{mlref}
|
|
69 |
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
|
|
70 |
\renewcommand{\endisatagmlref}{\endgroup}
|
|
71 |
||
| 29017 | 72 |
\isabellestyle{it}
|
| 20948 | 73 |
|
74 |
||
75 |
%%% Local Variables: |
|
76 |
%%% mode: latex |
|
77 |
%%% TeX-master: "implementation" |
|
78 |
%%% End: |