2
|
1 |
\documentclass[11pt,a4paper]{report}
|
0
|
2 |
\usepackage{amsmath,amsthm}
|
2
|
3 |
\usepackage{isabelle}
|
|
4 |
\usepackage{isabellesym}
|
|
5 |
\usepackage{charter}
|
|
6 |
\usepackage[pdftex]{graphicx}
|
21
|
7 |
\usepackage{proof}
|
31
|
8 |
\usepackage{alltt}
|
|
9 |
\usepackage{rail}
|
|
10 |
\usepackage{url}
|
38
|
11 |
\usepackage[a4paper,hscale=0.67,vscale=0.76]{geometry}
|
0
|
12 |
|
|
13 |
% Cross references to other manuals:
|
7
d7cebb2c5105
added an explicit file containing references in the Implementation manual (should be replaced by antiquotations)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
14 |
\usepackage{xr}
|
d7cebb2c5105
added an explicit file containing references in the Implementation manual (should be replaced by antiquotations)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
15 |
\externaldocument[I-]{implementation}
|
d7cebb2c5105
added an explicit file containing references in the Implementation manual (should be replaced by antiquotations)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
16 |
\newcommand{\impref}[1]{\ref{I-#1}}
|
13
|
17 |
\newcommand{\ichcite}[1]{[Impl.\,Man., Ch.~\impref{#1}]}
|
|
18 |
\newcommand{\isccite}[1]{[Impl.\,Man., Sec.~\impref{#1}]}
|
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
19 |
\externaldocument[R-]{isar-ref}
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
20 |
\newcommand{\isarref}[1]{\ref{R-#1}}
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
21 |
\newcommand{\rchcite}[1]{[Isar Ref.\,Man., Ch.~\isarref{#1}]}
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
22 |
\newcommand{\rsccite}[1]{[Isar Ref.\,Man., Sec.~\isarref{#1}]}
|
0
|
23 |
|
|
24 |
\usepackage{pdfsetup}
|
|
25 |
|
|
26 |
\urlstyle{rm}
|
|
27 |
\renewcommand{\isastyletxt}{\isastyletext}% use same formatting for txt and text
|
39
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
28 |
\renewcommand{\isastyleminor}{\tt\slshape}%
|
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
29 |
\renewcommand{\isastyle}{\small\tt\slshape}%
|
41
b11653b11bd3
further progress on the parsing section and tuning on the antiqu's
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
30 |
\isadroptag{theory}
|
0
|
31 |
|
5
|
32 |
% sane default for proof documents
|
|
33 |
\parindent 0pt\parskip 0.6ex
|
|
34 |
|
|
35 |
% for comments on the margin
|
|
36 |
\newcommand{\readmoremarginpar}[1]%
|
|
37 |
{\marginpar[\raggedleft\small{#1}]{\raggedright\small{#1}}}
|
|
38 |
|
|
39 |
\newenvironment{readmore}%
|
|
40 |
{\hspace{-3pt}\readmoremarginpar{\fbox{\textbf{Read More}}}\it}{}
|
0
|
41 |
|
39
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
42 |
% to work around a problem with \isanewline
|
42
|
43 |
\renewcommand{\isanewline}{{\parindent0pt\parskip0pt\mbox{}\par\mbox{}}}
|
39
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
44 |
|
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
45 |
\renewenvironment{isabelle}
|
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
46 |
{\begin{trivlist}\begin{isabellebody}\small\item\relax}
|
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
47 |
{\end{isabellebody}\end{trivlist}}
|
631d12c25bde
substantial changes to the antiquotations (preliminary version)
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
48 |
|
15
|
49 |
% for exercises and comments
|
0
|
50 |
\newtheorem{exercise}{Exercise}[section]
|
15
|
51 |
\newcommand{\solution}[1]{{\bf Solution for Exercise~\ref{#1}.}}
|
0
|
52 |
|
31
|
53 |
% a table environment with proper indentation
|
|
54 |
\newenvironment{mytable}{\begin{trivlist}\item\begin{tabular}{@{\hspace{2ex}}l}}{\end{tabular}\end{trivlist}}
|
|
55 |
|
43
02f76f1b6e7b
added positions to anti-quotations; removed old antiquotation_setup; tuned the text a bit
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
56 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
31
|
57 |
\hyphenation{Isabelle}
|
|
58 |
|
0
|
59 |
\begin{document}
|
|
60 |
|
2
|
61 |
\title{\mbox{}\\[-10ex]
|
|
62 |
\includegraphics[scale=0.5]{cookbook-logo.jpg}\\[3ex]
|
|
63 |
The Isabelle Programmer's Cookbook (fragment)}
|
|
64 |
\author{with contributions by:\\[2ex]
|
|
65 |
\begin{tabular}{l}
|
|
66 |
Alexander Krauss\\
|
|
67 |
Jeremy Dawson\\
|
|
68 |
Stefan Berghofer
|
|
69 |
\end{tabular}}
|
0
|
70 |
\maketitle
|
|
71 |
|
|
72 |
\tableofcontents
|
|
73 |
|
|
74 |
|
|
75 |
% generated text of all theories
|
|
76 |
\input{session}
|
|
77 |
|
2
|
78 |
\newpage
|
|
79 |
\bibliographystyle{abbrv}
|
17
|
80 |
\bibliography{root}
|
0
|
81 |
|
|
82 |
\end{document}
|
|
83 |
|
|
84 |
%%% Local Variables:
|
|
85 |
%%% mode: latex
|
|
86 |
%%% TeX-master: t
|
|
87 |
%%% End:
|