\documentclass[17pt]{beamer} % \usepackage{pgfpages} % \setbeameroption{show notes on second screen} % \newlength\hackpaperwidth \hackpaperwidth256mm % \newlength\hackpaperheight \hackpaperheight96mm % \RequirePackage{everyshi} % \EveryShipout % {\special{papersize=\the\hackpaperwidth,\the\hackpaperheight}} % \usetheme{AnnArbor} % \usetheme{Antibes} % \usetheme{Bergen} % \usetheme{Berkeley} % \usetheme{Berlin} % \usetheme{Boadilla} \usetheme{boxes} % \usetheme{CambridgeUS} % \usetheme{Copenhagen} % \usetheme{Darmstadt} % \usetheme{default} % \usetheme{Dresden} % \usetheme{Frankfurt} % \usetheme{Goettingen} % \usetheme{Hannover} % \usetheme{Ilmenau} % \usetheme{JuanLesPins} % \usetheme{Luebeck} % \usetheme{Madrid} % \usetheme{Malmoe} % \usetheme{Marburg} % \usetheme{Montpellier} % \usetheme{PaloAlto} % \usetheme{Pittsburgh} % \usetheme{Rochester} % \usetheme{Singapore} % \usetheme{Szeged} % \usetheme{Warsaw % \usefonttheme{default} \usefonttheme{professionalfonts} % \usefonttheme{serif} % \usefonttheme{structurebold} % \usefonttheme{structureitalicserif} % \usefonttheme{structuresmallcapsserif} % \useinnertheme{circles} % \useinnertheme{default} % \useinnertheme{inmargin} % \useinnertheme{rectangles} % \useinnertheme{rounded} % \setbeamercovered{transparent} \beamertemplatenavigationsymbolsempty \setbeamertemplate{footline}{\hfill\vbox{\hbox{\color{black!50!white}\strut\insertframenumber/22\hspace{1em}}\vspace{1em}}} \setbeamertemplate{itemize item}{\bullet} \setbeamertemplate{itemize subitem}{\subbullet} \setbeamertemplate{itemize subsubitem}{\subsubbullet} % \setbeamercolor{alert}{yellow} % \setbeamertemplate{alert text end}{!} % \newcommand<>{alert}[1]{#1} % \def\alert<#1>#2{\only{#1} \usepackage{settobox} \newbox\alertedbox \newlength\alertedwidth \newlength\alertedheight \newlength\alerteddepth \setlength{\fboxrule}{1pt} \makeatletter \newenvironment{framed}% {% \usebeamercolor[fg]{alerted text}% \setbox\alertedbox\hbox\bgroup\color@@setgroup\(% }% {% \)\color@@endgroup\egroup% \settoboxwidth{\alertedwidth}{\alertedbox}% \settoboxdepth{\alerteddepth}{\alertedbox}% \settoboxheight{\alertedheight}{\alertedbox}% % \fbox{\usebox{\alertedbox}} % \rlap{!}\usebox{\alertedbox}\rlap{!}% \tikz{% \path[use as bounding box] (0, 0); \path[draw, thick] % (-2mm, -1\alerteddepth - 2mm) -- % (\alertedwidth + 2mm, -1\alerteddepth - 2mm) -- % (\alertedwidth + 2mm, \alertedheight + 2mm) -- % (-2mm, \alertedheight + 2mm) -- % cycle;% }% \usebox{\alertedbox}% }% \makeatother \setbeamertemplate{alerted text begin}{\begin{framed}} \setbeamertemplate{alerted text end}{\end{framed}} % \def\alert<#1>#2{\alt<#1>{\begin{framed}#2\end{framed}}{#2}} \usepackage{xltxtra} \setsansfont[Numbers=OldStyle]{Cambria} \usepackage{unicode-math} \setmathfont[Numbers=OldStyle]{Cambria Math} \usepackage{tikz} \usetikzlibrary{trees,positioning,arrows} % \usepackage{tikz-qtree} \newcommand{\clap}[1]{\hbox to0pt{\hss#1\hss}} \renewcommand{\diamond}[2][0.1]{ \makebox[1.5em][c]{ \hspace{-0.2em}\begin{tikzpicture}[scale=0.3141592,baseline=-5,line width=0.9pt] \draw (0,-1) -- (1,0) -- (0, 1) -- (-1, 0) -- cycle; \draw (0,-0.5+#1) node{\smash{\clap{\small #2}}}; \end{tikzpicture}}} \newcommand{\smalldiamond}{ \makebox[1.5em][c]{ \hspace{-0.2em}\begin{tikzpicture}[scale=0.271828183,baseline=-5,line width=0.9pt] \draw (0,-1) -- (1,0) -- (0, 1) -- (-1, 0) -- cycle; \end{tikzpicture}}} \newcommand{\rdiamond}[2][0.1]{ \makebox[1.5em][c]{ \hspace{-0.2em}\begin{tikzpicture}[scale=0.3141592,baseline=-5,line width=0.9pt] \draw (0,-1) -- (1,0) -- (0, 1); \draw (0,-0.5+#1) node{\smash{\small #2}}; \end{tikzpicture}}} \newcommand{\ldiamond}[2][0.1]{ \makebox[1.5em][c]{ \hspace{-0.2em}\begin{tikzpicture}[scale=0.3141592,baseline=-5,line width=0.9pt] \draw (0,-1) -- (-1,0) -- (0, 1); \draw (0,-0.5+#1) node{\smash{\small #2}}; \end{tikzpicture}}} \def\unicode{\char"} \renewcommand{\bullet} {\begin{tikzpicture}[scale=0.157079633,baseline=-5,line width=0.9pt] \fill (0,-1) -- (1.73205081,0) -- (0,1) -- cycle; \end{tikzpicture}} \let\subbullet\bullet \let\subsubbullet\subbullet %include polycode.fmt %subst code a = "\begin{postit}\small\begin{hscode}\SaveRestoreHook'n" a "\ColumnHook'n\end{hscode}\resethooks'n\end{postit}" %format \ = "\mathrm{\lambda}\;\!" %format alpha = "\alpha" %format beta = "\beta" %format gamma = "\gamma" %format delta = "\delta" %format <|> = "\diamond{|}" %format <$$> = "\diamond{\$$}" %format <*> = "\diamond{$$\ast$$}" %format *> = "\rdiamond{$$\ast$$}" %format <* = "\ldiamond{$$\ast$$}" %format <> = "\smalldiamond" %format ... = "\ldots" %format <$$ = "\ldiamond{\$$}" %format <+> = "\diamond{$$+$$}" % template haskell %format (QUOTE(x)) = "\llbracket" x "\rrbracket" %format (CONSTR(x)) = "{}^\prime\!" x %format (TYPE(x)) = "\prime\prime\!" x %format (SPLICE(x)) = "\$$(" x ")" %format (SPLICE1(x)) = "\$$" x % subst string a = "{\rm \unicode 0022 " a "\unicode 0022}" \renewcommand{\Conid}[1]{\text{\it #1}} \renewcommand{\Varid}[1]{\text{\it #1}} \setbeamercolor{postit}{fg=black,bg=yellow!70!white} \newenvironment{postit} {\begin{beamercolorbox}[leftskip=1em, rightskip=1em]{postit}} {\end{beamercolorbox}} \let\oldhscode\hscode \let\endoldhscode\endhscode $if(verbatim-in-note)$ \usepackage{fancyvrb} $endif$ $if(fancy-enums)$ % Redefine labelwidth for lists; otherwise, the enumerate package will cause % markers to extend beyond the left margin. \makeatletter\AtBeginDocument{% \renewcommand{\@listi} {\setlength{\labelwidth}{4em}} }\makeatother \usepackage{enumerate} $endif$ $if(tables)$ \usepackage{array} % This is needed because raggedright in table elements redefines \\: \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp} \let\PBS=\PreserveBackslash $endif$ $if(strikeout)$ \usepackage[normalem]{ulem} $endif$ $if(subscript)$ \newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}} $endif$ $if(url)$ \usepackage{url} $endif$ $if(graphics)$ \usepackage{graphicx} $endif$ % \setlength{\parindent}{0pt} % \setlength{\parskip}{6pt plus 2pt minus 1pt} $if(numbersections)$ $else$ \setcounter{secnumdepth}{0} $endif$ $if(verbatim-in-note)$ \VerbatimFootnotes % allows verbatim text in footnotes $endif$ $for(header-includes)$ $header-includes$ $endfor$ $if(title)$\title$if(shorttitle)$[$shorttitle$]$endif${$title$}$endif$ $if(author)$\author$if(shortauthor)$[$for(shortauthor)$$shortauthor$$sep$, $endfor$]$endif${$for(author)$$author$$sep$\\$endfor$}$endif$ $if(institute)$\institute$if(shortinstitute)$[$shortinstitute$]$endif${$institute$}$endif$ $if(date)$\date$if(shortdate)$[$shortdate$]$endif${$date$}$endif$ $if(logo)$\logo{$logo$}$endif$ $if(titlegraphic)$\titlegraphic{$titlegraphic$}$endif$ $if(subject)$\subject{$subject$}$endif$ $if(keyword)$\keywords{$for(keyword)$$keyword$$sep$, $endfor$}$endif$ \let\emph\textbf \begin{document} \AtBeginNote{ \scriptsize } \abovedisplayskip 0cm \belowdisplayskip 0cm \mathindent 0mm \def\alert<#1>#2{#2} $for(include-before)$ $include-before$ $endfor$ $body$ $for(include-after)$ $include-after$ $endfor$ \end{document}