\usepackage{times} \usepackage{calc} % Simple computations with LaTeX variables \usepackage[hang]{caption2} % Improved captions \usepackage{fancyhdr} % Headers and footers definitions \usepackage{fancyvrb} % Fancy verbatim environments \usepackage[usenames,dvipsnames]{color} %\usepackage{pstcol} % PSTricks with the standard color package % (before `graphicx' for the \scalebox macro) \usepackage{graphicx} % Standard graphics package \usepackage{multido} % General loop macro \usepackage{pifont} % Ding symbols (mainly for lists) %\usepackage{pst-3d} % PSTricks 3D framed boxes %\usepackage{pst-grad} % PSTricks gradient mode %\usepackage{pst-node} % PSTricks nodes %\usepackage{pst-slpe} % Improved PSTricks gradients \usepackage{semcolor} % Seminar colored slides \usepackage{semhelv} % Seminar helvetica fonts \usepackage{semlayer} % Seminar overlays \usepackage{slidesec} % Seminar sections and list of slides %\usepackage{thumbpdf} % Thumbnails for PDF versions \usepackage{url} % Convenient URL typesetting \usepackage{textfit} % Fits text-size to arbitrary size \usepackage{xspace} \input{seminar.bug} % Official bugs corrections \input{seminar.bg2} % Unofficial bugs corrections % (warning: you must load `longtable' before % if you use it) %\input{seminar.bg3} % Unofficial bugs corrections % Hyperlinks for PDF versions \usepackage[bookmarks=true,colorlinks=true,pageanchor=false,pdfpagemode=UseNone,urlcolor=NavyBlue]{hyperref} \usepackage{amsmath} \usepackage{amssymb} \definecolor{heading}{rgb}{0.7,0.0,0.0} \definecolor{watermark}{rgb}{0.7,0.7,0.7} \definecolor{title}{rgb}{0.0,0.7,0.0} \definecolor{new}{rgb}{0.0,0.0,0.7} \usepackage{listings} \lstloadlanguages{C,C++} \lstdefinelanguage[jensen]{Csharp}[ansi]{C++}{ % keywords={if,else,try catch,finally,using,lock,fixed},% morekeywords={using,lock,fixed,finally,delegate},% %% %deletekeywords=% %% ndkeywords={using,lock,fixed,finally} %% %morendkeywords=% %% %deletendkeywords=% } \definecolor{basicstylecolor}{rgb}{.0,.0,.0} \definecolor{keywordstylecolor}{rgb}{.0,.0,.5} \definecolor{ndkeywordstylecolor}{rgb}{.0,1.0,.0} \definecolor{identifierstylecolor}{rgb}{.1,.1,0.1} \definecolor{commentstylecolor}{rgb}{.9,.2,.2} \definecolor{stringstylecolor}{rgb}{0.8,.3,0.8} \definecolor{directivestylecolor}{rgb}{.9,.0,.9} \definecolor{emphcolor}{rgb}{.9,.0,.0} \newcommand{\lstlistingfont}{% \usefont{T1}{ptm}{}{n}\fontsize{8pt}{8pt}\selectfont} \newcommand{\lstlistingsize}{\lstlistingfont} \newcommand{\cscode}[1]{\mbox{\lstinline[style=basichighlight]§#1§}} \lstdefinestyle{basichighlight}{ basicstyle=\color{basicstylecolor}\lstlistingsize\ttfamily,% keywordstyle=\color{keywordstylecolor}\bfseries,% ndkeywordstyle=\color{ndkeywordstylecolor},% identifierstyle=\color{identifierstylecolor},% commentstyle=\color{commentstylecolor},% stringstyle=\color{stringstylecolor},% directivestyle=\color{directivestylecolor},% emphstyle=\color{emphcolor}\underline,% } \lstdefinestyle{display}{% style=basichighlight,% frameshape={}{}{}{},% numberstyle=\tiny,% firstnumber=1,% stepnumber=1,% numbersep=.2em,% numbers=left,% xleftmargin=3em,% xrightmargin=0em,% breakautoindent=true,% breakindent=3em,% breaklines=true,% numbersep=.2em,% } \lstnewenvironment{CS}[1][]% {\lstset{language=[jensen]Csharp,style=display,#1}}{} % Workaround to use hyperref and landscape slides % Remove if you are using portrait slides %\makeatletter %\def\special@paper{297mm,210mm} %\makeatother \hypersetup{% pdftitle = \pdftitle, pdfsubject = \pdfsubject, pdfkeywords = \pdfkeywords, pdfauthor = \pdfauthor, } % Customization of seminar package........................................... \slidesmag{4} % Set magnification of slide \slideframe{none} % No default frame % General size parameters \renewcommand{\slideparindent}{0mm} \renewcommand{\slideparskip}{0mm} \raggedslides[0mm] \setlength{\slidewidth}{270mm} \setlength{\slideheight}{160mm} % To adjust the frame length to the header and footer ones \autoslidemarginstrue % We suppress the header and footer `fancyhdr' rules \fancyhf{} % Clear all fields \renewcommand{\headrule}{\rule[6ex]{\textwidth}{.5ex}} \renewcommand{\footrule}{} \newcommand{\headersize}[0]{\scriptsize} % Headers and footers personalization using the `fancyhdr' package \fancyhead[L]{{\headersize\color{title}\FileTitle{}}} \fancyhead[R]{{\headersize\color{watermark}\FileAuthor{}}} \fancyfoot[L]{\href{\docsvnurl}{\tiny{\url{\docsvnurl} -r\docsvnversion{}}}} \fancyfoot[C]{} \fancyfoot[R]{{\headersize \theslide}} % To avoid that the headers be too close of the top of the page \renewcommand{\slidetopmargin}{2cm} \renewcommand{\slidebottommargin}{2cm} \renewcommand{\slideleftmargin}{0mm} \renewcommand{\sliderightmargin}{0mm} % To center horizontally the headers and footers (see seminar.bug) \renewcommand{\headwidth}{\textwidth} % Paragraph title \newcommand{\ParagraphTitle}[1]{\noindent{\large{#1}}} % Customization of the headings and subheadings \renewcommand{\makeslideheading}[1]{% {\centerline{\color{heading}\Large\textbf{#1}}\endgraf}} \renewcommand{\makeslidesubheading}[1]{% \CenteredParagraphTitle{\theslidesubsection{} -- #1}} % "dinglist" environment % Redefinition of it to be able to use colored symbols \renewenvironment{dinglist}[2][black] {\begin{list}{\ding{#2}}{}}{\end{list}} % Symbol definitions for these lists \newcommand{\DingListSymbolA}{43} \newcommand{\DingListSymbolB}{243} \newcommand{\DingListSymbolC}{224} \newcommand{\DingListSymbolD}{219} % Boxed equation \newcommand{\eqbox}[2][0.6]{% \centerline{\psshadowbox[fillstyle=solid,fillcolor=LimeGreen]{% \parbox{#1\hsize}{% \[ \textcolor{black} {#2} \]}}}} \slideframe{none} \centerslidesfalse \newcommand{\using}{\texttt{using}\xspace} \newcommand{\WaitHandle}{\texttt{WaitHandle}\xspace} \newcommand{\Interlocked}{\texttt{Interlocked}\xspace} \newcommand{\lock}{\texttt{lock}\xspace} \newcommand{\chsarp}{\texttt{C\#}\xspace}