diff -r 9ea667baf097 -r dbe49327b6c5 slides/slides01.tex --- a/slides/slides01.tex Wed Aug 07 17:31:42 2013 +0100 +++ b/slides/slides01.tex Tue Sep 24 01:12:36 2013 +0100 @@ -1,7 +1,7 @@ -\documentclass[dvipsnames,14pt,t]{beamer} -\usepackage{beamerthemeplainculight} -\usepackage[T1]{fontenc} -\usepackage[latin1]{inputenc} +\documentclass[dvipsnames,14pt,t,xelatex]{beamer} +\usepackage{beamerthemeplaincu} + \usepackage{fontenc,xltxtra,xunicode} +\defaultfontfeatures{Mapping=tex-text} \usepackage{mathpartir} \usepackage[absolute,overlay]{textpos} \usepackage{ifthen} @@ -9,7 +9,7 @@ \usepackage{pgf} \usepackage{calc} \usepackage{ulem} -\usepackage{courier} +%%\usepackage{courier} \usepackage{listings} \renewcommand{\uline}[1]{#1} \usetikzlibrary{arrows} @@ -25,6 +25,11 @@ \definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords \definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc +\makeatletter +\lst@CCPutMacro\lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{-{}}} +\@empty\z@\@empty +\makeatother + \lstset{language=Java, basicstyle=\ttfamily, keywordstyle=\color{javapurple}\bfseries, @@ -96,7 +101,7 @@ \begin{center} \begin{tabular}{ll} Email: & christian.urban at kcl.ac.uk\\ - Of$\!$fice: & S1.27 (1st floor Strand Building)\\ + Office: & S1.27 (1st floor Strand Building)\\ Slides: & KEATS \end{tabular} \end{center} @@ -196,7 +201,7 @@ \frametitle{\begin{tabular}{c}This Course\end{tabular}} \begin{itemize} -\item the ultimate goal is to implement a small web-browser (really small one)\bigskip +\item the ultimate goal is to implement a small compiler (really small one)\bigskip \end{itemize} Let's start with: @@ -255,7 +260,7 @@ \footnotesize a simple Scala function for reading webpages\\[-3mm] {\lstset{language=Scala}\fontsize{8}{10}\selectfont -\texttt{\lstinputlisting{app0.scala}}}\pause +\texttt{\lstinputlisting{../progs/app0.scala}}}\pause {\lstset{language=Scala}\fontsize{8}{10}\selectfont \texttt{\lstinline{get_page("""http://www.inf.kcl.ac.uk/staff/urbanc/""")}}}\pause\bigskip @@ -264,7 +269,7 @@ \footnotesize {\lstset{language=Scala}\fontsize{8}{10}\selectfont -\texttt{\lstinputlisting{app1.scala}}} +\texttt{\lstinputlisting{../progs/app1.scala}}} \end{frame}} @@ -318,7 +323,7 @@ \begin{frame}[c] {\lstset{language=Scala}\fontsize{8}{10}\selectfont -\texttt{\lstinputlisting{app2.scala}}}\medskip +\texttt{\lstinputlisting{../progs/app2.scala}}}\medskip {\lstset{language=Scala}\fontsize{8}{10}\selectfont \texttt{crawl(some\_start\_URL, 2)}}\ @@ -334,7 +339,7 @@ a version that only ``crawls'' links in my domain: {\lstset{language=Scala}\fontsize{8}{10}\selectfont -\texttt{\lstinputlisting{app3.scala}}} +\texttt{\lstinputlisting{../progs/app3.scala}}} \end{frame}} @@ -348,7 +353,7 @@ a little email ``harvester'': {\lstset{language=Scala}\fontsize{8}{10}\selectfont -\texttt{\lstinputlisting{app4.scala}}}\bigskip +\texttt{\lstinputlisting{../progs/app4.scala}}}\bigskip \tiny \textcolor{gray}{\url{http://net.tutsplus.com/tutorials/other/8-regular-expressions-you-should-know/}} @@ -388,7 +393,7 @@ {\lstset{language=Scala}\fontsize{8}{10}\selectfont -\texttt{\lstinputlisting{app51.scala}}} +\texttt{\lstinputlisting{../progs/app51.scala}}} \end{frame}}