GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
1
mark.george
/
templates
Browse code
First attempt to match Tobias' style.
master
1 parent
f7102ce
commit
5b97697b97ad56a9895675c835e8ece9a1ae00bf
Mark
authored
on 22 Jul 2014
Patch
Showing
3 changed files
lectures/content.tex
lectures/preamble.tex
lectures/presentation.tex
Ignore Space
Show notes
View
lectures/content.tex
\slidesmag{5} \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} \begin{lecturecontent} \item ... \item ... \end{lecturecontent} \end{slide} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} \section{section} \begin{dimitem} \item foo \item bar \item baz \end{dimitem} Normal, \emph{emph}, normal. \newslide \subsection{subsection} \fontseries{l}\selectfont Lorizzle ipsizzle dolizzle yippiyo amet, own yo' crackalackin mammasay mammasa mamma oo sa. Nullizzle sheezy velit, black volutpat, suscipizzle quis, away vizzle, boom shackalack. Pellentesque eget tortizzle. Sizzle erizzle. Ass izzle dolizzle dapibizzle shiznit tempus tempizzle. Maurizzle yo nibh et turpis. Vestibulum izzle we gonna chung. Phat eleifend check out this nisi. Shut the shizzle up hac habitasse platea dictumst. Donec dapibizzle. Ghetto tellizzle urna, pretizzle own yo', mattizzle izzle, eleifend you son of a bizzle, nunc. Shiz suscipit. Integer black velizzle dang crackalackin. Phasellizzle interdum volutpizzle tellizzle. Ut shiznit own yo' lorizzle. Donec fo shizzle est. Gangsta sapien massa, ultrices nec, accumsizzle crunk, fermentizzle quizzle, bizzle. Ghetto nizzle fo shizzle mah nizzle fo rizzle, mah home g-dizzle. Etizzle gangsta ornare ante. Maurizzle my shizz. Vestibulizzle ut pede varius nibh ghetto we gonna chung. \end{slide} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} \section{code example} Directly above. \begin{codeblock}[gobble=2] // students can be any collection class // old way of traversing Iterator<Student> it = students.iterator(); while(it.hasNext()) { Student aStudent = it.next(); System.out.println(aStudent); } // new way of traversing using Java 5 for-each loop for (Student aStudent : students) { System.out.println(aStudent); } String blah = "this is a string"; \end{codeblock} Directly below. \newslide \section{small code} Directly above. \begin{smallcodeblock}[gobble=2] // students can be any collection class // old way of traversing Iterator<Student> it = students.iterator(); while(it.hasNext()) { Student aStudent = it.next(); System.out.println(aStudent); } // new way of traversing using Java 5 for-each loop for (Student aStudent : students) { System.out.println(aStudent); } String blah = "this is a string"; \end{smallcodeblock} Directly below. \subsection{inline code} Blah blah \code{blah blah blah()} blah blah. \end{slide} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document}
\slidesmag{5} \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} \begin{lecturecontent} \item ... \item ... \end{lecturecontent} \end{slide} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} \section{section} \begin{dimitem} \item ... \item ... \end{dimitem} \subsection{subsection} Blah blah. \end{slide} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} \section{code example} Directly above. \begin{codeblock}[gobble=2] // students can be any collection class // old way of traversing Iterator<Student> it = students.iterator(); while(it.hasNext()) { Student aStudent = it.next(); System.out.println(aStudent); } // new way of traversing using Java 5 for-each loop for (Student aStudent : students) { System.out.println(aStudent); } String blah = "this is a string"; \end{codeblock} Directly below. \newslide \section{small code} Directly above. \begin{smallcodeblock}[gobble=2] // students can be any collection class // old way of traversing Iterator<Student> it = students.iterator(); while(it.hasNext()) { Student aStudent = it.next(); System.out.println(aStudent); } // new way of traversing using Java 5 for-each loop for (Student aStudent : students) { System.out.println(aStudent); } String blah = "this is a string"; \end{smallcodeblock} Directly below. \subsection{inline code} Blah blah \code{blah blah blah()} blah blah. \end{slide} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document}
Ignore Space
Show notes
View
lectures/preamble.tex
\usepackage[pdftex]{hyperref} % options added via hypersetup below \usepackage{fixseminar} \usepackage{soul} \usepackage{graphicx} \usepackage{pslatex} \usepackage{paralist} \usepackage{tplists} \usepackage{multicol} \usepackage{tabularx} \usepackage{hhline} \usepackage{texpower} % options added via \PassOptionsToPackage in driver files \usepackage[T1]{fontenc} % needed for getting rid of smart quotes in code \usepackage[scaled]{beramono} % code font \usepackage{textcomp} % needed for getting rid of smart quotes in code \usepackage[protrusion=true,expansion=true]{microtype} \usepackage{listings} \usepackage[default]{gillius} \definecolor{SectionColor}{rgb}{0.32,0.32,0.32} % % PDF tex graphics extensions {graphicx} \DeclareGraphicsExtensions{.jpg,.jpeg,.pdf,.png,.mps} % slidemargins {seminar,powersem} \renewcommand{\slidetopmargin}{11mm} \renewcommand{\slidebottommargin}{7mm} \renewcommand{\slideleftmargin}{5mm} \renewcommand{\sliderightmargin}{5mm} %%% source code highlighting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % first param is font size, second is baselineskip \newcommand\codesize{\fontsize{9}{1.3\parskip}\selectfont} \newcommand\smallcodesize{\fontsize{8}{1.2\parskip}\selectfont} % define the colors for code highlighting (based on Eclipse colors) \definecolor{KeywordColor}{rgb}{0.5,0,0.33} % violet \definecolor{CommentColor}{rgb}{0.25,0.5,0.37} % green \definecolor{StringColor}{rgb}{0.16,0,1} % blue % define the colors for code highlighting (based on NetBeans colors) %\definecolor{KeywordColor}{rgb}{0.0,0,0.9} %\definecolor{CommentColor}{rgb}{0.45,0.45,0.45} % a bit darker than NetBeans %\definecolor{StringColor}{rgb}{0.81,0.48,0.0} % create the fonts for code highlighting \newcommand{\codefont}{\fontfamily{fvm}\selectfont} % beramono \newcommand{\commentfont}{\rmfamily\itshape} % create a new environment for source code blocks \lstnewenvironment{codeblock}[1][] { \lstset{ language=Java, upquote=true, basicstyle=\color{black}\codefont\codesize, keywordstyle=\color{KeywordColor}\codefont\codesize, commentstyle=\color{CommentColor}\commentfont\normalsize, stringstyle=\color{StringColor}\codefont\codesize, aboveskip=10pt, belowskip=0pt, showstringspaces=false, tabsize=3, showtabs=false, columns=fullflexible, flexiblecolumns=true, xleftmargin=\slideleftmargin, breaklines=true }\lstset{#1}} {} % create a new environment for source code blocks \lstnewenvironment{smallcodeblock}[1][] {% set up source code highlighting environment {listings} \lstset{ language=Java, upquote=true, basicstyle=\color{black}\codefont\smallcodesize, keywordstyle=\color{KeywordColor}\codefont\smallcodesize, commentstyle=\color{CommentColor}\commentfont\codesize, stringstyle=\color{StringColor}\codefont\smallcodesize, aboveskip=5pt, belowskip=-5pt, showstringspaces=false, tabsize=2, showtabs=false, columns=fullflexible, flexiblecolumns=true, xleftmargin=\slideleftmargin, breaklines=true }\lstset{#1}} {} \lstdefinelanguage{JavaScript}{ keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break, this}, sensitive=false, comment=[l]{//}, morecomment=[s]{/*}{*/}, morestring=[b]', morestring=[b]" } % command for typesetting inline code \renewcommand{\code}[2][language=java]{% \lstset{% language=Java, upquote=true, basicstyle=\color{black}\codefont\normalsize, keywordstyle=\color{KeywordColor}\codefont\normalsize, commentstyle=\color{CommentColor}\commentfont\normalsize, stringstyle=\color{StringColor}\codefont\normalsize, showstringspaces=false, showtabs=false }% \mbox{\lstinline[#1]!#2!}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % command for figures - first param is scale, second is file \newcommand{\fig}[2] { \begin{figure}[H] \begin{center} \includegraphics[scale=#1,draft=false]{#2} \end{center} \end{figure} \vspace{-0.75\baselineskip} } % command for figures rotated 90 degrees left - first param is scale. \newcommand{\rotatedfig}[2] { \begin{figure}[H] \begin{center} \includegraphics[scale=#1,draft=false, angle=90]{#2} \end{center} \end{figure} } % command for figures - first param is scale, second is file \newcommand{\capfig}[3] { \begin{figure}[H]% \begin{center}% \includegraphics[scale=#1,draft=false]{#2}% \\ % {\footnotesize #3} % \end{center} % \end{figure} % \vspace{-0.75\baselineskip} } % suppress section numbers \setcounter{secnumdepth}{-2} % scale factors used by seminar/powersem package to make over/under full slides fit a bit better \renewcommand{\slideshrink}{1.0} \renewcommand{\slideskip}{0.25} \renewcommand{\slidestretch}{1.05} % increase paragraph spacing a little bit so slides don't look so crowded \renewcommand{\slideparskip}{1.1ex} % tweak section spacing and fonts \makeatletter \renewcommand\section{\@startsection{section}{1} % {0ex} % indent {-0.1ex} % above {0.1ex} % below {\Huge\color{SectionColor}}} \renewcommand\subsection{\@startsection{subsection}{2} % {0ex} % indent {-0.1ex} % above {0.1ex} % below {\Large\color{SectionColor}}} \renewcommand\subsubsection{\@startsection{subsubsection}{3} % {0ex} % indent {-0.1ex} % above {0.1ex} % below {\large\color{SectionColor}}} \makeatother % suppress slide centering (which buggers up incremental uncovering) \centerslidesfalse % options for hyperef \hypersetup{ final={true}, colorlinks={true}, urlcolor={blue}, filecolor={blue}, linkcolor={blue}, bookmarks={true}, bookmarksopen={true}, pdfpagemode={None} } % title/subject/author attributes are set in lecturedetails.tex % command for continuing slides - moves the content down a bit \newcommand{\continued}{\null\smallskip} \newcommand{\ra}[0]{$\rightarrow$~} %\definecolor{oublue}{cmyk}{1,0.85,0.1,0} % RGB 0, 15, 90 %\definecolor{oured}{cmyk}{0,0.9,0.85,0} % RGB 100, 10, 15 %\definecolor{ougold}{cmyk}{0,0.25,1,0} % RGB 100, 75, 0 %\definecolor{darkred}{cmyk}{0,1,1,0.1} %\newpagestyle{oupagestyle}% %{\color{ougold}\hspace{-\slideleftmargin}\rule[2mm]{0.1\textwidth}{\baselineskip}\color{oublue}\rule[2mm]{0.87\textwidth}{\baselineskip}\color{oured}\rule[2mm]{0.1\textwidth}{\baselineskip}}% %{\color{ougold}\hspace{-\slideleftmargin}\rule{0.97\textwidth}{\baselineskip}\color{oured}\rule{0.1\textwidth}{\baselineskip}% bottom band %\tiny\hspace{-\textwidth}\hspace{-\slideleftmargin}\color{black}% reset to start of band %\hspace{5pt}\raisebox{3.5pt}\PaperCode\hfill\raisebox{3.5pt}{\textsc{\LectureTitle}} % footer content %\hfill\raisebox{3.5pt}{\thepage}\hspace{3pt}% page number %} % %\slidepagestyle{oupagestyle} \slidepagestyle{empty} \slideframe[\setlength{}{}]{none} % environment for generating first page content \newenvironment{lecturecontent}% {% \null\vfill\maketitle\vfill% \section{Topics covered in this lecture}% \begin{compactitem} }% {% \end{compactitem}\vfill\null% } \newcommand{\point}[2]{\textbf{#1}\\#2} \renewcommand{\emph}[1]{\color{emcolor}\textbf{#1}}
\usepackage[pdftex]{hyperref} % options added via hypersetup below \usepackage{fixseminar} \usepackage{soul} \usepackage{graphicx} \usepackage{pslatex} \usepackage{paralist} \usepackage{tplists} \usepackage{multicol} \usepackage{tabularx} \usepackage{hhline} \usepackage{texpower} % options added via \PassOptionsToPackage in driver files \usepackage[T1]{fontenc} % needed for getting rid of smart quotes in code \usepackage[scaled]{beramono} % code font \usepackage{textcomp} % needed for getting rid of smart quotes in code \usepackage[protrusion=true,expansion=true]{microtype} \usepackage{listings} % % PDF tex graphics extensions {graphicx} \DeclareGraphicsExtensions{.jpg,.jpeg,.pdf,.png,.mps} % slidemargins {seminar,powersem} \renewcommand{\slidetopmargin}{11mm} \renewcommand{\slidebottommargin}{7mm} \renewcommand{\slideleftmargin}{5mm} \renewcommand{\sliderightmargin}{5mm} %%% source code highlighting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % first param is font size, second is baselineskip \newcommand\codesize{\fontsize{9}{1.15\parskip}\selectfont} \newcommand\smallcodesize{\fontsize{8}{1.1\parskip}\selectfont} % define the colors for code highlighting (based on Eclipse colors) %\definecolor{KeywordColor}{rgb}{0.5,0,0.33} % violet %\definecolor{CommentColor}{rgb}{0.25,0.5,0.37} % green %\definecolor{StringColor}{rgb}{0.16,0,1} % blue % define the colors for code highlighting (based on NetBeans colors) \definecolor{KeywordColor}{rgb}{0.0,0,0.9} \definecolor{CommentColor}{rgb}{0.45,0.45,0.45} % a bit darker than NetBeans \definecolor{StringColor}{rgb}{0.81,0.48,0.0} % create the fonts for code highlighting \newcommand{\codefont}{\fontfamily{fvm}\selectfont} \newcommand{\commentfont}{\rmfamily\itshape} % create a new environment for source code blocks \lstnewenvironment{codeblock}[1][] { \lstset{ language=Java, upquote=true, basicstyle=\color{black}\codefont\codesize, keywordstyle=\color{KeywordColor}\codefont\codesize, commentstyle=\color{CommentColor}\commentfont\normalsize, stringstyle=\color{StringColor}\codefont\codesize, aboveskip=10pt, belowskip=0pt, showstringspaces=false, tabsize=3, showtabs=false, columns=fullflexible, flexiblecolumns=true, xleftmargin=\slideleftmargin, breaklines=true }\lstset{#1}} {} % create a new environment for source code blocks \lstnewenvironment{smallcodeblock}[1][] {% set up source code highlighting environment {listings} \lstset{ language=Java, upquote=true, basicstyle=\color{black}\codefont\smallcodesize, keywordstyle=\color{KeywordColor}\codefont\smallcodesize, commentstyle=\color{CommentColor}\commentfont\codesize, stringstyle=\color{StringColor}\codefont\smallcodesize, aboveskip=5pt, belowskip=-5pt, showstringspaces=false, tabsize=2, showtabs=false, columns=fullflexible, flexiblecolumns=true, xleftmargin=\slideleftmargin, breaklines=true }\lstset{#1}} {} \lstdefinelanguage{JavaScript}{ keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break, this}, sensitive=false, comment=[l]{//}, morecomment=[s]{/*}{*/}, morestring=[b]', morestring=[b]" } % command for typesetting inline code \renewcommand{\code}[2][language=java]{% \lstset{% language=Java, upquote=true, basicstyle=\color{black}\codefont\normalsize, keywordstyle=\color{KeywordColor}\codefont\normalsize, commentstyle=\color{CommentColor}\commentfont\normalsize, stringstyle=\color{StringColor}\codefont\normalsize, showstringspaces=false, showtabs=false }% \mbox{\lstinline[#1]!#2!}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % command for figures - first param is scale, second is file \newcommand{\fig}[2] { \begin{figure}[H] \begin{center} \includegraphics[scale=#1,draft=false]{#2} \end{center} \end{figure} \vspace{-0.75\baselineskip} } % command for figures rotated 90 degrees left - first param is scale. \newcommand{\rotatedfig}[2] { \begin{figure}[H] \begin{center} \includegraphics[scale=#1,draft=false, angle=90]{#2} \end{center} \end{figure} } % command for figures - first param is scale, second is file \newcommand{\capfig}[3] { \begin{figure}[H]% \begin{center}% \includegraphics[scale=#1,draft=false]{#2}% \\ % {\footnotesize #3} % \end{center} % \end{figure} % \vspace{-0.75\baselineskip} } % suppress section numbers \setcounter{secnumdepth}{-2} % scale factors used by seminar/powersem package to make over/under full slides fit a bit better \renewcommand{\slideshrink}{1.0} \renewcommand{\slideskip}{0.25} \renewcommand{\slidestretch}{1.05} % increase paragraph spacing a little bit so slides don't look so crowded \renewcommand{\slideparskip}{1.1ex} % tweak section spacing and fonts \makeatletter \renewcommand\section{\@startsection{section}{1} % {0ex} % indent {-0.1ex} % above {0.1ex} % below {\Large\sectfont\color{emcolor}}} % font \renewcommand\subsection{\@startsection{subsection}{2} % {0ex} % indent {-0.1ex} % above {0.1ex} % below {\large\sectfont\color{emcolor}}} % font \renewcommand\subsubsection{\@startsection{subsubsection}{3} % {0ex} % indent {-0.1ex} % above {0.1ex} % below {\small\sectfont\color{emcolor}}} \makeatother % suppress slide centering (which buggers up incremental uncovering) \centerslidesfalse % options for hyperef \hypersetup{ final={true}, colorlinks={true}, urlcolor={blue}, filecolor={blue}, linkcolor={blue}, bookmarks={true}, bookmarksopen={true}, pdfpagemode={None} } % title/subject/author attributes are set in lecturedetails.tex % command for continuing slides - moves the content down a bit \newcommand{\continued}{\null\smallskip} \newcommand{\ra}[0]{$\rightarrow$~} \definecolor{oublue}{cmyk}{1,0.85,0.1,0} % RGB 0, 15, 90 \definecolor{oured}{cmyk}{0,0.9,0.85,0} % RGB 100, 10, 15 \definecolor{ougold}{cmyk}{0,0.25,1,0} % RGB 100, 75, 0 \definecolor{darkred}{cmyk}{0,1,1,0.1} \newpagestyle{oupagestyle}% {\color{ougold}\hspace{-\slideleftmargin}\rule[2mm]{0.1\textwidth}{\baselineskip}\color{oublue}\rule[2mm]{0.87\textwidth}{\baselineskip}\color{oured}\rule[2mm]{0.1\textwidth}{\baselineskip}}% {\color{ougold}\hspace{-\slideleftmargin}\rule{0.97\textwidth}{\baselineskip}\color{oured}\rule{0.1\textwidth}{\baselineskip}% bottom band \tiny\hspace{-\textwidth}\hspace{-\slideleftmargin}\color{black}% reset to start of band \hspace{5pt}\raisebox{3.5pt}\PaperCode\hfill\raisebox{3.5pt}{\textsc{\LectureTitle}} % footer content \hfill\raisebox{3.5pt}{\thepage}\hspace{3pt}% page number } \slidepagestyle{oupagestyle} \slideframe[\setlength{}{}]{none} % environment for generating first page content \newenvironment{lecturecontent}% {% \null\vfill\maketitle\vfill% \section{Topics covered in this lecture}% \begin{compactitem} }% {% \end{compactitem}\vfill\null% } \newcommand{\point}[2]{\textbf{#1}\\#2}
Ignore Space
Show notes
View
lectures/presentation.tex
% Driver file for generating a presentation version suitable for displaying via a project. % This uses a coloured background, and enables the incremental uncovering of content. \documentclass[a4,landscape,KOMA,calcdimensions,display]{powersem} \PassOptionsToPackage{coloremph,colorhighlight,whitebackground}{texpower} \include{preamble} \defineTPcolor{inactivecolor}{rgb}{0.1,0.1,0.1} \defineTPcolor{pagecolor}{rgb}{0.87, 0.88, 0.90} \defineTPcolor{textcolor}{rgb}{0.32, 0.32, 0.32} \defineTPcolor{emcolor}{rgb}{0.32, 0.32, 0.32} \include{lecturedetails} \include{content}
% Driver file for generating a presentation version suitable for displaying via a project. % This uses a coloured background, and enables the incremental uncovering of content. \documentclass[a4,landscape,KOMA,calcdimensions,display]{powersem} \PassOptionsToPackage{coloremph,colorhighlight,whitebackground}{texpower} \include{preamble} \defineTPcolor{inactivecolor}{rgb}{0.2,0.2,0.1} \include{lecturedetails} \include{content}
Show line notes below