|
1 \documentclass[dvipsnames, 14pt, t, xelatex]{beamer} |
|
2 \usepackage{beamerthemeplaincu} |
|
3 %%\usepackage{ulem} |
|
4 %\usepackage[T1]{fontenc} |
|
5 \usepackage{proof} |
|
6 %\usepackage[latin1]{inputenc} |
|
7 \usepackage{isabelle} |
|
8 \usepackage{isabellesym} |
|
9 \usepackage{mathpartir} |
|
10 \usepackage[absolute, overlay]{textpos} |
|
11 \usepackage{proof} |
|
12 \usepackage{ifthen} |
|
13 \usepackage{animate} |
|
14 \usepackage{tikz} |
|
15 \usepackage{pgf} |
|
16 \usetikzlibrary{arrows} |
|
17 \usetikzlibrary{automata} |
|
18 \usetikzlibrary{shapes} |
|
19 \usetikzlibrary{shadows} |
|
20 \usetikzlibrary{calc} |
|
21 \usetikzlibrary{shapes.callouts,shapes.arrows,decorations.text} |
|
22 \usetikzlibrary{decorations.pathreplacing} |
|
23 |
|
24 % Isabelle configuration |
|
25 %%\urlstyle{rm} |
|
26 \isabellestyle{rm} |
|
27 \renewcommand{\isastyle}{\rm}% |
|
28 \renewcommand{\isastyleminor}{\fontspec{STIXGeneral}}% |
|
29 \renewcommand{\isastylescript}{\fontsize{8}{10}\selectfont\fontspec{STIXGeneral}\slshape}% |
|
30 |
|
31 |
|
32 \renewcommand{\isatagproof}{} |
|
33 \renewcommand{\endisatagproof}{} |
|
34 \renewcommand{\isamarkupcmt}[1]{#1} |
|
35 |
|
36 % Isabelle characters |
|
37 \renewcommand{\isacharunderscore}{\_} |
|
38 \renewcommand{\isacharbar}{\isamath{\mid}} |
|
39 \renewcommand{\isasymiota}{} |
|
40 \renewcommand{\isacharbraceleft}{\{} |
|
41 \renewcommand{\isacharbraceright}{\}} |
|
42 %\renewcommand{\isacharless}{$\langle$} |
|
43 %\renewcommand{\isachargreater}{$\rangle$} |
|
44 \renewcommand{\isasymsharp}{\isamath{\#}} |
|
45 \renewcommand{\isasymdots}{\isamath{...}} |
|
46 \renewcommand{\isasymbullet}{\act} |
|
47 \defaultfontfeatures{Ligatures=TeX} |
|
48 |
|
49 % mathpatir |
|
50 \mprset{sep=1em} |
|
51 |
|
52 % general math stuff |
|
53 \newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}% for definitions |
|
54 \newcommand{\dnn}{\stackrel{\mbox{\Large def}}{=}} |
|
55 \renewcommand{\isasymequiv}{$\dn$} |
|
56 \renewcommand{\emptyset}{\varnothing}% nice round empty set |
|
57 %%\renewcommand{\Gamma}{\varGamma} |
|
58 \DeclareRobustCommand{\flqq}{\mbox{\guillemotleft}} |
|
59 \DeclareRobustCommand{\frqq}{\mbox{\guillemotright}} |
|
60 \newcommand{\smath}[1]{\textcolor{blue}{\ensuremath{#1}}} |
|
61 \newcommand{\fresh}{\mathrel{\#}} |
|
62 \newcommand{\act}{{\raisebox{-0.5mm}{\Large$\boldsymbol{\cdot}$}}}% swapping action |
|
63 \newcommand{\swap}[2]{(#1\,#2)}% swapping operation |
|
64 |
|
65 % beamer stuff |
|
66 \renewcommand{\slidecaption}{Salvador, 26.~August 2008} |
|
67 |
|
68 |
|
69 % colours for Isar Code (in article mode everything is black and white) |
|
70 \mode<presentation>{ |
|
71 \definecolor{isacol:brown}{rgb}{.823,.411,.117} |
|
72 \definecolor{isacol:lightblue}{rgb}{.274,.509,.705} |
|
73 \definecolor{isacol:green}{rgb}{0,.51,0.14} |
|
74 \definecolor{isacol:red}{rgb}{.803,0,0} |
|
75 \definecolor{isacol:blue}{rgb}{0,0,.803} |
|
76 \definecolor{isacol:darkred}{rgb}{.545,0,0} |
|
77 \definecolor{isacol:black}{rgb}{0,0,0}} |
|
78 \mode<article>{ |
|
79 \definecolor{isacol:brown}{rgb}{0,0,0} |
|
80 \definecolor{isacol:lightblue}{rgb}{0,0,0} |
|
81 \definecolor{isacol:green}{rgb}{0,0,0} |
|
82 \definecolor{isacol:red}{rgb}{0,0,0} |
|
83 \definecolor{isacol:blue}{rgb}{0,0,0} |
|
84 \definecolor{isacol:darkred}{rgb}{0,0,0} |
|
85 \definecolor{isacol:black}{rgb}{0,0,0} |
|
86 } |
|
87 |
|
88 |
|
89 \newcommand{\strong}[1]{{\bfseries {#1}}} |
|
90 \newcommand{\bluecmd}[1]{{\color{isacol:lightblue}{\strong{#1}}}} |
|
91 \newcommand{\browncmd}[1]{{\color{isacol:brown}{\strong{#1}}}} |
|
92 \newcommand{\redcmd}[1]{{\color{isacol:red}{\strong{#1}}}} |
|
93 |
|
94 \renewcommand{\isakeyword}[1]{% |
|
95 \ifthenelse{\equal{#1}{show}}{\browncmd{#1}}{% |
|
96 \ifthenelse{\equal{#1}{case}}{\browncmd{#1}}{% |
|
97 \ifthenelse{\equal{#1}{assume}}{\browncmd{#1}}{% |
|
98 \ifthenelse{\equal{#1}{obtain}}{\browncmd{#1}}{% |
|
99 \ifthenelse{\equal{#1}{fix}}{\browncmd{#1}}{% |
|
100 \ifthenelse{\equal{#1}{oops}}{\redcmd{#1}}{% |
|
101 \ifthenelse{\equal{#1}{thm}}{\redcmd{#1}}{% |
|
102 {\bluecmd{#1}}}}}}}}}}% |
|
103 |
|
104 % inner syntax colour |
|
105 \chardef\isachardoublequoteopen=`\"% |
|
106 \chardef\isachardoublequoteclose=`\"% |
|
107 \chardef\isacharbackquoteopen=`\`% |
|
108 \chardef\isacharbackquoteclose=`\`% |
|
109 \newenvironment{innersingle}% |
|
110 {\isacharbackquoteopen\color{isacol:green}}% |
|
111 {\color{isacol:black}\isacharbackquoteclose} |
|
112 \newenvironment{innerdouble}% |
|
113 {\isachardoublequoteopen\color{isacol:green}}% |
|
114 {\color{isacol:black}\isachardoublequoteclose} |
|
115 |
|
116 %% misc |
|
117 \newcommand{\gb}[1]{\textcolor{isacol:green}{#1}} |
|
118 \newcommand{\rb}[1]{\textcolor{red}{#1}} |
|
119 |
|
120 %% animations |
|
121 \newcounter{growcnt} |
|
122 \newcommand{\grow}[2] |
|
123 {\begin{tikzpicture}[baseline=(n.base)]% |
|
124 \node[scale=(0.1 *#1 + 0.001),inner sep=0pt] (n) {#2}; |
|
125 \end{tikzpicture}% |
|
126 } |
|
127 |
|
128 %% isatabbing |
|
129 %\renewcommand{\isamarkupcmt}[1]% |
|
130 %{\ifthenelse{\equal{TABSET}{#1}}{\=}% |
|
131 % {\ifthenelse{\equal{TAB}{#1}}{\>}% |
|
132 % {\ifthenelse{\equal{NEWLINE}{#1}}{\\}% |
|
133 % {\ifthenelse{\equal{DOTS}{#1}}{\ldots}{\isastylecmt--- {#1}}}% |
|
134 % }% |
|
135 % }% |
|
136 %}% |
|
137 |
|
138 |
|
139 |
|
140 \newenvironment{isatabbing}% |
|
141 {\renewcommand{\isanewline}{\\}\begin{tabbing}}% |
|
142 {\end{tabbing}} |
|
143 |
|
144 \begin{document} |
|
145 \nocite{*} |
|
146 \input{session} |
|
147 \end{document} |
|
148 |
|
149 %%% Local Variables: |
|
150 %%% mode: latex |
|
151 %%% TeX-master: t |
|
152 %%% TeX-command-default: "Slides" |
|
153 %%% TeX-view-style: (("." "kghostview --landscape --scale 0.45 --geometry 605x505 %f")) |
|
154 %%% End: |
|
155 |