author | wenzelm |
Fri, 29 Mar 2019 12:24:34 +0100 | |
changeset 70010 | 499896e3a7b0 |
parent 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 |
39746
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
34 |
\isakeeptag{quotett} |
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
35 |
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle} |
0da00ec1fd31
combine quote and typewriter tag; typewriter considers isa@parindent
haftmann
parents:
39711
diff
changeset
|
36 |
\renewcommand{\endisatagquotett}{\end{quote}} |
29017 | 37 |
|
38 |
%% a trick |
|
39 |
\newcommand{\isasymSML}{SML} |
|
40351 | 40 |
\newcommand{\isasymSMLdummy}{SML} |
29017 | 41 |
|
42 |
%% presentation |
|
20948 | 43 |
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} |
44 |
||
30227 | 45 |
%% character detail |
46 |
\renewcommand{\isadigit}[1]{\isamath{#1}} |
|
20948 | 47 |
\binperiod |
29104 | 48 |
\underscoreoff |
20948 | 49 |
|
30227 | 50 |
%% format |
51 |
\pagestyle{headings} |
|
20948 | 52 |
|
29017 | 53 |
%% ml reference |
20948 | 54 |
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup} |
55 |
||
56 |
\isakeeptag{mlref} |
|
57 |
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small} |
|
58 |
\renewcommand{\endisatagmlref}{\endgroup} |
|
59 |
||
70010
499896e3a7b0
clarified style: allow to search PDF for keywords containing "_";
wenzelm
parents:
69660
diff
changeset
|
60 |
\isabellestyle{literalunderscore} |
69660
2bc2a8599369
canonical operation to typeset generated code makes dedicated environment obsolete
haftmann
parents:
65041
diff
changeset
|
61 |
\def\isastylett{\footnotesize\normalfont\ttfamily} |
20948 | 62 |
|
63 |
||
64 |
%%% Local Variables: |
|
65 |
%%% mode: latex |
|
66 |
%%% TeX-master: "implementation" |
|
67 |
%%% End: |