| author | Christian Urban <urbanc@in.tum.de> |
| Sun, 16 Jun 2019 14:54:32 +0100 | |
| changeset 580 | 883ce9c7b13b |
| parent 570 | ff14d64c07fd |
| permissions | -rw-r--r-- |
|
255
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
1 |
\documentclass[11pt,a4paper]{book}
|
|
62
c3fe4749ef01
added Sacha as contributor
Christian Urban <urbanc@in.tum.de>
parents:
51
diff
changeset
|
2 |
\usepackage[latin1]{inputenc}
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
3 |
\usepackage{amsmath,amsthm}
|
|
2
978a3c2ed7ce
split the document into smaller pieces;
Christian Urban <urbanc@in.tum.de>
parents:
0
diff
changeset
|
4 |
\usepackage{isabelle}
|
|
978a3c2ed7ce
split the document into smaller pieces;
Christian Urban <urbanc@in.tum.de>
parents:
0
diff
changeset
|
5 |
\usepackage{isabellesym}
|
|
978a3c2ed7ce
split the document into smaller pieces;
Christian Urban <urbanc@in.tum.de>
parents:
0
diff
changeset
|
6 |
\usepackage{charter}
|
|
978a3c2ed7ce
split the document into smaller pieces;
Christian Urban <urbanc@in.tum.de>
parents:
0
diff
changeset
|
7 |
\usepackage[pdftex]{graphicx}
|
|
21
2356e5c70d98
added a proof and tuned the rest
Christian Urban <urbanc@in.tum.de>
parents:
17
diff
changeset
|
8 |
\usepackage{proof}
|
| 31 | 9 |
\usepackage{url}
|
|
38
e21b2f888fa2
added a preliminary section about parsing
Christian Urban <urbanc@in.tum.de>
parents:
37
diff
changeset
|
10 |
\usepackage[a4paper,hscale=0.67,vscale=0.76]{geometry}
|
|
51
c346c156a7cd
completes the recipie on antiquotations
Christian Urban <urbanc@in.tum.de>
parents:
47
diff
changeset
|
11 |
\usepackage{lineno}
|
|
69
19106a9975c1
highligted the background of ML-code
Christian Urban <urbanc@in.tum.de>
parents:
66
diff
changeset
|
12 |
\usepackage{xcolor}
|
|
77
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
13 |
\usepackage{framed}
|
|
173
d820cb5873ea
used latex package boxedminipage
Christian Urban <urbanc@in.tum.de>
parents:
121
diff
changeset
|
14 |
\usepackage{boxedminipage}
|
| 89 | 15 |
\usepackage{mathpartir}
|
|
218
7ff7325e3b4e
started to adapt the rest of chapter 5 to the simplified version without parameters (they will be described in the extension section)
Christian Urban <urbanc@in.tum.de>
parents:
211
diff
changeset
|
16 |
\usepackage{flafter}
|
|
342
930b1308fd96
fixed glitch with tocibind
Christian Urban <urbanc@in.tum.de>
parents:
339
diff
changeset
|
17 |
\usepackage{index}
|
|
257
ce0f60d0351e
corrected index references and minor polishing
Christian Urban <urbanc@in.tum.de>
parents:
256
diff
changeset
|
18 |
\usepackage{tocbibind}
|
| 358 | 19 |
\usepackage{tikz}
|
|
535
5734ab5dd86d
adapted to new build framework
Christian Urban <urbanc@in.tum.de>
parents:
525
diff
changeset
|
20 |
\usepackage{bashful}
|
| 358 | 21 |
\usetikzlibrary{shadows}
|
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
22 |
\usepackage{pdfsetup}
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
23 |
|
|
339
c588e8422737
used a better implementation of \index in Latex; added more to the theorem section
Christian Urban <urbanc@in.tum.de>
parents:
329
diff
changeset
|
24 |
|
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
25 |
\urlstyle{rm}
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
26 |
\renewcommand{\isastyletxt}{\isastyletext}% use same formatting for txt and text
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
27 |
\renewcommand{\isastyleminor}{\tt\slshape}%
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
28 |
\renewcommand{\isastyle}{\small\tt\slshape}%
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
29 |
\isadroptag{theory}
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
30 |
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
31 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
255
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
32 |
% indexing |
| 373 | 33 |
\newindex{default}{idx}{ind}{Index}
|
34 |
\newindex{str}{str}{stu}{Structure Index}
|
|
|
255
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
35 |
|
|
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
36 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
37 |
% For cross references to the 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>
parents:
5
diff
changeset
|
38 |
\usepackage{xr}
|
|
d7cebb2c5105
added an explicit file containing references in the Implementation manual (should be replaced by antiquotations)
Christian Urban <urbanc@in.tum.de>
parents:
5
diff
changeset
|
39 |
\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>
parents:
5
diff
changeset
|
40 |
\newcommand{\impref}[1]{\ref{I-#1}}
|
|
13
2b07da8b310d
polished and added a subdirectory for the recipes
Christian Urban <urbanc@in.tum.de>
parents:
7
diff
changeset
|
41 |
\newcommand{\ichcite}[1]{[Impl.\,Man., Ch.~\impref{#1}]}
|
|
2b07da8b310d
polished and added a subdirectory for the recipes
Christian Urban <urbanc@in.tum.de>
parents:
7
diff
changeset
|
42 |
\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>
parents:
43
diff
changeset
|
43 |
\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>
parents:
43
diff
changeset
|
44 |
\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>
parents:
43
diff
changeset
|
45 |
\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>
parents:
43
diff
changeset
|
46 |
\newcommand{\rsccite}[1]{[Isar Ref.\,Man., Sec.~\isarref{#1}]}
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
47 |
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
48 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
5
e91f54791e14
minor modifiations to the Intro and FirstSteps chapters
Christian Urban <urbanc@in.tum.de>
parents:
2
diff
changeset
|
49 |
% sane default for proof documents |
|
77
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
50 |
\parindent 0pt |
|
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
51 |
\parskip 0.6ex |
|
173
d820cb5873ea
used latex package boxedminipage
Christian Urban <urbanc@in.tum.de>
parents:
121
diff
changeset
|
52 |
\abovecaptionskip 1mm |
|
77
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
53 |
\belowcaptionskip 10mm |
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
54 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
55 |
\hyphenation{Isabelle}
|
| 121 | 56 |
\renewcommand{\isasymiota}{}
|
|
211
d5accbc67e1b
more work on simple inductive and marked all sections that are still seriously incomplete with TBD
Christian Urban <urbanc@in.tum.de>
parents:
210
diff
changeset
|
57 |
\renewcommand{\isamarkupsubsection}[1]{\subsection*{#1}}
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
58 |
|
|
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
59 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
60 |
% to work around a problem with \isanewline |
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
61 |
\renewcommand{\isanewline}{{\parindent0pt\parskip0pt\mbox{}\par\mbox{}}}
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
62 |
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
63 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
64 |
% for exercises, comments and readmores |
| 329 | 65 |
\newtheoremstyle{exercisestyle}{\topsep}{\topsep}{\small\it}{}{\small\bfseries}{:}{1ex}{}
|
66 |
\theoremstyle{exercisestyle}
|
|
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
67 |
\newtheorem{exercise}{Exercise}[section]
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
68 |
\newcommand{\solution}[1]{{\bf Solution for Exercise~\ref{#1}.}}
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
69 |
|
|
5
e91f54791e14
minor modifiations to the Intro and FirstSteps chapters
Christian Urban <urbanc@in.tum.de>
parents:
2
diff
changeset
|
70 |
\newcommand{\readmoremarginpar}[1]%
|
|
e91f54791e14
minor modifiations to the Intro and FirstSteps chapters
Christian Urban <urbanc@in.tum.de>
parents:
2
diff
changeset
|
71 |
{\marginpar[\raggedleft\small{#1}]{\raggedright\small{#1}}}
|
|
e91f54791e14
minor modifiations to the Intro and FirstSteps chapters
Christian Urban <urbanc@in.tum.de>
parents:
2
diff
changeset
|
72 |
|
|
97
a99aa67455f3
changed the readmore environment
Christian Urban <urbanc@in.tum.de>
parents:
89
diff
changeset
|
73 |
\newenvironment{leftrightbar}{%
|
|
a99aa67455f3
changed the readmore environment
Christian Urban <urbanc@in.tum.de>
parents:
89
diff
changeset
|
74 |
\def\FrameCommand##1{\vrule width 2pt \hspace{8pt}##1\hspace{8pt}\vrule width 2pt}%
|
|
a99aa67455f3
changed the readmore environment
Christian Urban <urbanc@in.tum.de>
parents:
89
diff
changeset
|
75 |
\MakeFramed {\advance\hsize-\width \FrameRestore}}%
|
|
a99aa67455f3
changed the readmore environment
Christian Urban <urbanc@in.tum.de>
parents:
89
diff
changeset
|
76 |
{\endMakeFramed}
|
|
a99aa67455f3
changed the readmore environment
Christian Urban <urbanc@in.tum.de>
parents:
89
diff
changeset
|
77 |
|
|
5
e91f54791e14
minor modifiations to the Intro and FirstSteps chapters
Christian Urban <urbanc@in.tum.de>
parents:
2
diff
changeset
|
78 |
\newenvironment{readmore}%
|
| 101 | 79 |
{\begin{leftrightbar}\small\it{\textbf{Read More}}\\}{\end{leftrightbar}}
|
| 347 | 80 |
\newenvironment{conventions}%
|
|
368
b1a458a03a8e
new parts in the tactical section
Christian Urban <urbanc@in.tum.de>
parents:
358
diff
changeset
|
81 |
{\begin{leftrightbar}\small\it{\textbf{Coding Conventions / Rules of Thumb}}}{\end{leftrightbar}}
|
| 312 | 82 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
83 |
% some mathematical notation |
|
84 |
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}
|
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
85 |
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
86 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
87 |
% this is to draw a gray box around code |
|
77
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
88 |
%(FIXME redefine pagebreak so that it includes a \smallskip) |
|
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
89 |
\newenvironment{graybox}
|
|
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
90 |
{\def\FrameCommand{\fboxsep=1pt\colorbox{gray!20}}\MakeFramed{\smallskip\FrameRestore}}
|
|
bca83ed1d45a
changed definition of graybox
Christian Urban <urbanc@in.tum.de>
parents:
74
diff
changeset
|
91 |
{\smallskip\endMakeFramed}
|
| 488 | 92 |
\newenvironment{grayboxwithoutsep}
|
93 |
{\def\FrameCommand{\fboxsep=1pt\colorbox{gray!20}}\MakeFramed{\FrameRestore}}
|
|
94 |
{\endMakeFramed}
|
|
| 31 | 95 |
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
96 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
97 |
% this hack is for getting rid of the ML {* ... *}
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
98 |
% scaffolding around function definitions |
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
99 |
\newenvironment{vanishML}{%
|
|
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
100 |
\renewcommand{\isacommand}[1]{}%
|
|
570
ff14d64c07fd
ommit cartouche while displaying ML
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
101 |
\renewcommand{\isacartoucheopen}{}%
|
|
ff14d64c07fd
ommit cartouche while displaying ML
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
102 |
\renewcommand{\isacartoucheclose}{}}{}
|
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
103 |
|
|
517
d8c376662bb4
removed special ML-setup and replaced it by explicit markups (i.e., %grayML)
Christian Urban <urbanc@in.tum.de>
parents:
488
diff
changeset
|
104 |
\isakeeptag{grayML}
|
|
d8c376662bb4
removed special ML-setup and replaced it by explicit markups (i.e., %grayML)
Christian Urban <urbanc@in.tum.de>
parents:
488
diff
changeset
|
105 |
\renewcommand{\isataggrayML}{\begin{vanishML}\begin{graybox}}
|
|
d8c376662bb4
removed special ML-setup and replaced it by explicit markups (i.e., %grayML)
Christian Urban <urbanc@in.tum.de>
parents:
488
diff
changeset
|
106 |
\renewcommand{\endisataggrayML}{\end{graybox}\end{vanishML}}
|
|
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
107 |
|
|
562
daf404920ab9
Accomodate to Isabelle 2018
Norbert Schirmer <norbert.schirmer@web.de>
parents:
535
diff
changeset
|
108 |
\isakeeptag{linenosgrayML}
|
|
daf404920ab9
Accomodate to Isabelle 2018
Norbert Schirmer <norbert.schirmer@web.de>
parents:
535
diff
changeset
|
109 |
\renewcommand{\isataglinenosgrayML}{\begin{vanishML}\begin{graybox}\begin{linenos}}
|
|
daf404920ab9
Accomodate to Isabelle 2018
Norbert Schirmer <norbert.schirmer@web.de>
parents:
535
diff
changeset
|
110 |
\renewcommand{\endisataglinenosgrayML}{\end{linenos}\end{graybox}\end{vanishML}}
|
| 488 | 111 |
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
112 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
72
7b8c4fe235aa
added an antiquotation option [gray] for gray boxes around displays
Christian Urban <urbanc@in.tum.de>
parents:
71
diff
changeset
|
113 |
% for code that has line numbers |
|
118
5f003fdf2653
polished and added more material to the package chapter
Christian Urban <urbanc@in.tum.de>
parents:
117
diff
changeset
|
114 |
\newenvironment{linenos}{\resetlinenumber\internallinenumbers}{\par\nolinenumbers}
|
|
117
796c6ea633b3
added an option for linenumbers to the chunk-antiquotation
Christian Urban <urbanc@in.tum.de>
parents:
116
diff
changeset
|
115 |
|
|
114
13fd0a83d3c3
properly handled linenumbers in ML-text and Isar-proofs
Christian Urban <urbanc@in.tum.de>
parents:
108
diff
changeset
|
116 |
\isakeeptag{linenos}
|
|
117
796c6ea633b3
added an option for linenumbers to the chunk-antiquotation
Christian Urban <urbanc@in.tum.de>
parents:
116
diff
changeset
|
117 |
\renewcommand{\isataglinenos}{\begin{linenos}}
|
|
118
5f003fdf2653
polished and added more material to the package chapter
Christian Urban <urbanc@in.tum.de>
parents:
117
diff
changeset
|
118 |
\renewcommand{\endisataglinenos}{\end{linenos}}
|
|
114
13fd0a83d3c3
properly handled linenumbers in ML-text and Isar-proofs
Christian Urban <urbanc@in.tum.de>
parents:
108
diff
changeset
|
119 |
|
| 478 | 120 |
% should be used in ML code |
|
114
13fd0a83d3c3
properly handled linenumbers in ML-text and Isar-proofs
Christian Urban <urbanc@in.tum.de>
parents:
108
diff
changeset
|
121 |
\isakeeptag{linenosgray}
|
|
117
796c6ea633b3
added an option for linenumbers to the chunk-antiquotation
Christian Urban <urbanc@in.tum.de>
parents:
116
diff
changeset
|
122 |
\renewcommand{\isataglinenosgray}{\begin{vanishML}\begin{graybox}\begin{linenos}}
|
|
118
5f003fdf2653
polished and added more material to the package chapter
Christian Urban <urbanc@in.tum.de>
parents:
117
diff
changeset
|
123 |
\renewcommand{\endisataglinenosgray}{\end{linenos}\end{graybox}\end{vanishML}}
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
124 |
|
| 478 | 125 |
\isakeeptag{graylinenos}
|
126 |
\renewcommand{\isataggraylinenos}{\begin{graybox}\begin{linenos}}
|
|
127 |
\renewcommand{\endisataggraylinenos}{\end{linenos}\end{graybox}}
|
|
128 |
||
| 177 | 129 |
\isakeeptag{gray}
|
130 |
\renewcommand{\isataggray}{\begin{graybox}}
|
|
131 |
\renewcommand{\endisataggray}{\end{graybox}}
|
|
132 |
||
|
115
039845fc96bd
some update of the package introduction
Christian Urban <urbanc@in.tum.de>
parents:
114
diff
changeset
|
133 |
\isakeeptag{small}
|
|
039845fc96bd
some update of the package introduction
Christian Urban <urbanc@in.tum.de>
parents:
114
diff
changeset
|
134 |
\renewcommand{\isatagsmall}{\begingroup\small}
|
|
039845fc96bd
some update of the package introduction
Christian Urban <urbanc@in.tum.de>
parents:
114
diff
changeset
|
135 |
\renewcommand{\endisatagsmall}{\endgroup}
|
|
039845fc96bd
some update of the package introduction
Christian Urban <urbanc@in.tum.de>
parents:
114
diff
changeset
|
136 |
|
|
244
dc95a56b1953
fixed the problem with double definition of even and odd
Christian Urban <urbanc@in.tum.de>
parents:
240
diff
changeset
|
137 |
% for code that should not be printed |
|
dc95a56b1953
fixed the problem with double definition of even and odd
Christian Urban <urbanc@in.tum.de>
parents:
240
diff
changeset
|
138 |
\isakeeptag{no}
|
|
dc95a56b1953
fixed the problem with double definition of even and odd
Christian Urban <urbanc@in.tum.de>
parents:
240
diff
changeset
|
139 |
\renewcommand{\isatagno}{}
|
|
dc95a56b1953
fixed the problem with double definition of even and odd
Christian Urban <urbanc@in.tum.de>
parents:
240
diff
changeset
|
140 |
\renewcommand{\endisatagno}{}
|
|
dc95a56b1953
fixed the problem with double definition of even and odd
Christian Urban <urbanc@in.tum.de>
parents:
240
diff
changeset
|
141 |
|
|
72
7b8c4fe235aa
added an antiquotation option [gray] for gray boxes around displays
Christian Urban <urbanc@in.tum.de>
parents:
71
diff
changeset
|
142 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
7b8c4fe235aa
added an antiquotation option [gray] for gray boxes around displays
Christian Urban <urbanc@in.tum.de>
parents:
71
diff
changeset
|
143 |
\renewenvironment{isabelle}
|
|
7b8c4fe235aa
added an antiquotation option [gray] for gray boxes around displays
Christian Urban <urbanc@in.tum.de>
parents:
71
diff
changeset
|
144 |
{\begin{trivlist}\begin{isabellebody}\small\item\relax}
|
|
7b8c4fe235aa
added an antiquotation option [gray] for gray boxes around displays
Christian Urban <urbanc@in.tum.de>
parents:
71
diff
changeset
|
145 |
{\end{isabellebody}\end{trivlist}}
|
|
85
b02904872d6b
better handling of {* and *}
Christian Urban <urbanc@in.tum.de>
parents:
77
diff
changeset
|
146 |
|
|
b02904872d6b
better handling of {* and *}
Christian Urban <urbanc@in.tum.de>
parents:
77
diff
changeset
|
147 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
b02904872d6b
better handling of {* and *}
Christian Urban <urbanc@in.tum.de>
parents:
77
diff
changeset
|
148 |
% for {* *} in antiquotations
|
|
567
f7c97e64cc2a
tuned ML-antiquotations; added intro portions.
Norbert Schirmer <norbert.schirmer@web.de>
parents:
562
diff
changeset
|
149 |
%\newcommand{\isasymverbopen}{\isacharverbatimopen}
|
|
f7c97e64cc2a
tuned ML-antiquotations; added intro portions.
Norbert Schirmer <norbert.schirmer@web.de>
parents:
562
diff
changeset
|
150 |
%\newcommand{\isasymverbclose}{\isacharverbatimclose}
|
|
f7c97e64cc2a
tuned ML-antiquotations; added intro portions.
Norbert Schirmer <norbert.schirmer@web.de>
parents:
562
diff
changeset
|
151 |
\newcommand{\isasymverbopen}{\isacartoucheopen}
|
|
f7c97e64cc2a
tuned ML-antiquotations; added intro portions.
Norbert Schirmer <norbert.schirmer@web.de>
parents:
562
diff
changeset
|
152 |
\newcommand{\isasymverbclose}{\isacartoucheclose}
|
|
240
d111f5988e49
replaced explode by Symbol.explode
Christian Urban <urbanc@in.tum.de>
parents:
218
diff
changeset
|
153 |
\newcommand{\isasymfoo}{\isa{{\isacharbackslash}{\isacharless}foo{\isachargreater}}}
|
|
85
b02904872d6b
better handling of {* and *}
Christian Urban <urbanc@in.tum.de>
parents:
77
diff
changeset
|
154 |
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
155 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
108
8bea3f74889d
added to the tactical chapter; polished; added the tabularstar environment (which is just tabular*)
Christian Urban <urbanc@in.tum.de>
parents:
106
diff
changeset
|
156 |
% since * cannot be used in text {*...*}
|
|
8bea3f74889d
added to the tactical chapter; polished; added the tabularstar environment (which is just tabular*)
Christian Urban <urbanc@in.tum.de>
parents:
106
diff
changeset
|
157 |
\newenvironment{tabularstar}[2]
|
|
8bea3f74889d
added to the tactical chapter; polished; added the tabularstar environment (which is just tabular*)
Christian Urban <urbanc@in.tum.de>
parents:
106
diff
changeset
|
158 |
{\begin{tabular*}{#1}{#2}}{\end{tabular*}}
|
|
8bea3f74889d
added to the tactical chapter; polished; added the tabularstar environment (which is just tabular*)
Christian Urban <urbanc@in.tum.de>
parents:
106
diff
changeset
|
159 |
|
|
8bea3f74889d
added to the tactical chapter; polished; added the tabularstar environment (which is just tabular*)
Christian Urban <urbanc@in.tum.de>
parents:
106
diff
changeset
|
160 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
116
c9ff326e3ce5
more changes to the package chapter
Christian Urban <urbanc@in.tum.de>
parents:
115
diff
changeset
|
161 |
% short hands |
|
c9ff326e3ce5
more changes to the package chapter
Christian Urban <urbanc@in.tum.de>
parents:
115
diff
changeset
|
162 |
\def\simpleinductive{\isacommand{simple\isacharunderscore{}inductive}}
|
|
c9ff326e3ce5
more changes to the package chapter
Christian Urban <urbanc@in.tum.de>
parents:
115
diff
changeset
|
163 |
|
|
c9ff326e3ce5
more changes to the package chapter
Christian Urban <urbanc@in.tum.de>
parents:
115
diff
changeset
|
164 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
165 |
\begin{document}
|
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
166 |
|
|
2
978a3c2ed7ce
split the document into smaller pieces;
Christian Urban <urbanc@in.tum.de>
parents:
0
diff
changeset
|
167 |
\title{\mbox{}\\[-10ex]
|
| 297 | 168 |
\includegraphics[scale=0.5]{tutorial-logo.jpg}\\[3ex]
|
|
427
94538ddcac9b
added example from Tobias and changed the title
Christian Urban <urbanc@in.tum.de>
parents:
390
diff
changeset
|
169 |
{\huge\bf The Isabelle Cookbook}\\
|
|
567
f7c97e64cc2a
tuned ML-antiquotations; added intro portions.
Norbert Schirmer <norbert.schirmer@web.de>
parents:
562
diff
changeset
|
170 |
\mbox{A Gentle Tutorial for Programming Isabelle/ML}\\ (draft)}
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
171 |
|
|
119
4536782969fa
added an acknowledgement section
Christian Urban <urbanc@in.tum.de>
parents:
118
diff
changeset
|
172 |
\author{by Christian Urban with contributions from:\\[2ex]
|
|
62
c3fe4749ef01
added Sacha as contributor
Christian Urban <urbanc@in.tum.de>
parents:
51
diff
changeset
|
173 |
\begin{tabular}{r@{\hspace{1.8mm}}l}
|
|
c3fe4749ef01
added Sacha as contributor
Christian Urban <urbanc@in.tum.de>
parents:
51
diff
changeset
|
174 |
Stefan & Berghofer\\ |
|
248
11851b20fb78
added more to the pretty section and updated the acknowledgements
Christian Urban <urbanc@in.tum.de>
parents:
244
diff
changeset
|
175 |
Jasmin & Blanchette\\ |
|
62
c3fe4749ef01
added Sacha as contributor
Christian Urban <urbanc@in.tum.de>
parents:
51
diff
changeset
|
176 |
Sascha & Böhme\\ |
|
390
8ad407e77ea0
added example by Lukas Bulwahn
Christian Urban <urbanc@in.tum.de>
parents:
373
diff
changeset
|
177 |
Lukas & Bulwahn\\ |
|
62
c3fe4749ef01
added Sacha as contributor
Christian Urban <urbanc@in.tum.de>
parents:
51
diff
changeset
|
178 |
Jeremy & Dawson\\ |
|
525
92a3600e50e4
added a new recipe for introspecting theorems (suggested by Lukas and Rafal)
Christian Urban <urbanc@in.tum.de>
parents:
517
diff
changeset
|
179 |
Rafal & Kolanski\\ |
|
293
0a567f923b42
slightly changed exercises about rev_sum
Christian Urban <urbanc@in.tum.de>
parents:
257
diff
changeset
|
180 |
Alexander & Krauss\\ |
|
427
94538ddcac9b
added example from Tobias and changed the title
Christian Urban <urbanc@in.tum.de>
parents:
390
diff
changeset
|
181 |
Tobias & Nipkow\\ |
|
567
f7c97e64cc2a
tuned ML-antiquotations; added intro portions.
Norbert Schirmer <norbert.schirmer@web.de>
parents:
562
diff
changeset
|
182 |
Norbert & Schirmer\\ |
| 435 | 183 |
Andreas & Schropp\\ |
|
293
0a567f923b42
slightly changed exercises about rev_sum
Christian Urban <urbanc@in.tum.de>
parents:
257
diff
changeset
|
184 |
Christian & Sternagel\\ |
|
2
978a3c2ed7ce
split the document into smaller pieces;
Christian Urban <urbanc@in.tum.de>
parents:
0
diff
changeset
|
185 |
\end{tabular}}
|
|
71
14c3dd5ee2ad
removed mytable from root-file
Christian Urban <urbanc@in.tum.de>
parents:
69
diff
changeset
|
186 |
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
187 |
\maketitle |
|
255
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
188 |
|
|
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
189 |
% table of contents |
|
257
ce0f60d0351e
corrected index references and minor polishing
Christian Urban <urbanc@in.tum.de>
parents:
256
diff
changeset
|
190 |
\frontmatter |
|
210
db8e302f44c8
more work on the simple inductive section
Christian Urban <urbanc@in.tum.de>
parents:
189
diff
changeset
|
191 |
\setcounter{tocdepth}{1}
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
192 |
\tableofcontents |
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
193 |
|
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
194 |
% generated text of all theories |
|
257
ce0f60d0351e
corrected index references and minor polishing
Christian Urban <urbanc@in.tum.de>
parents:
256
diff
changeset
|
195 |
\mainmatter |
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
196 |
\input{session}
|
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
197 |
|
|
255
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
198 |
% bibliography |
|
257
ce0f60d0351e
corrected index references and minor polishing
Christian Urban <urbanc@in.tum.de>
parents:
256
diff
changeset
|
199 |
\backmatter |
|
2
978a3c2ed7ce
split the document into smaller pieces;
Christian Urban <urbanc@in.tum.de>
parents:
0
diff
changeset
|
200 |
\bibliographystyle{abbrv}
|
|
17
8afa1c990a14
fixed creation of bibliography
Christian Urban <urbanc@in.tum.de>
parents:
15
diff
changeset
|
201 |
\bibliography{root}
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
202 |
|
| 373 | 203 |
% indices |
204 |
\setindexname{Structure Index}
|
|
205 |
\printindex[str] |
|
206 |
\setindexname{Index}
|
|
|
255
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
207 |
\printindex |
|
ef1da1abee46
added infrastructure for index; antiquotations have now the options [index] and [indexc]
Christian Urban <urbanc@in.tum.de>
parents:
248
diff
changeset
|
208 |
|
|
0
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
209 |
\end{document}
|
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
210 |
|
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
211 |
%%% Local Variables: |
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
212 |
%%% mode: latex |
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
213 |
%%% TeX-master: t |
|
02503850a8cf
initial commit of Alexander's files
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
214 |
%%% End: |