123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898 |
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% IDENTIFICATION
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \ProvidesPackage{comp}
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%% SETUP MACROS AND SWITCHES
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \def\@title{}
- \def\@author{}
- \def\titlepageblurb#1{\gdef\@titlepageblurb{#1}}
- \def\principaladviser#1{\gdef\@principaladviser{#1}}
- \def\@principaladviser{*}
- \def\coprincipaladviser#1{\gdef\@coprincipaladviser{#1}}
- \def\@coprincipaladviser{*}
- \def\assistantadviser#1{\gdef\@assistantadviser{#1}}
- \def\@assistantadviser{*}
- \def\submitdate#1{\gdef\@submitdate{#1}}
- \def\copyrightyear#1{\gdef\@copyrightyear{#1}}
- \def\@copyrightyear{\number\the\year}
- \def\reportnumber#1{\gdef\@reportnumber{#1}}
- %\def\tocdepthvalue#1{\gdef\@tocdepthvalue{#1}}
- %\def\secnumdepthvalue#1{\gdef\@secnumdepthvalue{#1}}
- \def\@tocdepthvalue{}
- \def\@secnumdepthvalue{}
- \def\bibfile#1{\gdef\@bibfile{#1}}
- \newif\ifw@ntsignature
- \newif\ifw@ntcopyright
- \newif\ifw@nttableofcontents
- \newif\ifw@ntlistoffigures
- \newif\ifw@ntlistoftables
- \newif\ifw@ntbibliography
- \newif\ifw@ntindex
- \newif\ifw@ntnumbers
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% OPTION DECLARATION PART
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %-------------------
- %%%% ENGLISH OPTION
- %-------------------
- \DeclareOption{english}{%
- \PassOptionsToPackage{english}{babel}
- %
- \def\@submitdate{%
- \ifcase\the\month\or
- January\or February\or March\or April\or May\or June\or
- July\or August\or September\or October\or November\or December\fi
- \space \number\the\year
- }
- %
- \def\@phddegree{Doctor}
- %
- \def\@masterdegree{Master}
- %
- \def\@bachelordegree{Bachelor}
- %
- \def\@advisername{Principal Adviser}
- %
- \def\@coadvisername{Principal Co-Adviser}
- %
- \def\@assistantadvisername{Assistant Adviser}
- %
- \def\@dissertationblurb{
- Dissertation Submitted in \@submitdate\ to the\\
- Department of Mathematics and Computer Science\\
- of the Faculty of Sciences, University of Antwerp,\\
- in Partial Fulfillment of the Requirements\\
- for the Degree of \@thesisdegree\ of Science.
- }
- %
- \def\@techreportblurb{
- Technical Report \@reportnumber , submitted \@submitdate . \\
- Department of Mathematics and Computer Science\\
- of the Faculty of Sciences, University of Antwerp.
- }
- %
- \def\@advisersblurb{%
- \if*\@principaladviser \else
- {\@advisername: \@principaladviser} \\
- \fi
- \if*\@coprincipaladviser \else
- {\@coadvisername : \@coprincipaladviser}\\
- \fi
- \if*\@assistantadviser \else
- {\@assistantadvisername : \@assistantadviser}\\
- \fi
- }
- %
- \def\@courseblurb{
- \@coursedegree\ of Computer Science curriculum,\\
- Faculty of Sciences, University of Antwerp.\\
- Course notes for academic year \@submitdate.
- }
- %
- \def\@researchgroupblurb{%
-
- }
- %
- \def\@signatureblurb{%
- I certify that I have read this dissertation and that,
- in my opinion, it is fully adequate in scope and quality as a
- dissertation for the degree of \@thesisdegree.
- }
- %
- \def\@copyrightblurb{%
- All rights reserved.
- }
- }
- %-----------------
- %%%% DUTCH OPTION
- %-----------------
- \DeclareOption{dutch}{%
- \PassOptionsToPackage{dutch}{babel}
- %
- \def\@submitdate{%
- \ifcase\the\month\or
- Januari\or Februari\or Maart\or April\or Mei\or Juni\or
- Juli\or Augustus\or September\or Oktober\or November\or December\fi
- \space \number\the\year
- }
- %
- \def\@phddegree{Doctor}
- %
- \def\@masterdegree{Master}
- %
- \def\@bachelordegree{Bachelor}
- %
- \def\@advisername{Promotor}
- %
- \def\@coadvisername{Co-Promotor}
- %
- \def\@assistantadvisername{Begeleider}
- %
- \def\@dissertationblurb{
- Thesis ingediend in \@submitdate\ bij het\\
- Departement Wiskunde en Informatica van de\\
- Faculteit Wetenschappen, Universiteit Antwerpen,\\
- ter vervulling van de vereisten voor het bekomen\\
- van het Diploma van \@thesisdegree\ in de Wetenschappen.
- \newline
- }
- %
- \def\@advisersblurb{%
- \if*\@principaladviser \else
- {\@advisername: \@principaladviser} \\
- \fi
- \if*\@coprincipaladviser \else
- {\@coadvisername : \@coprincipaladviser}\\
- \fi
- \if*\@assistantadviser \else
- {\@assistantadvisername : \@assistantadviser}\\
- \fi
- }
- %
- \def\@courseblurb{
- Opleiding \@coursedegree\ of Science in Informatica, van de\\
- Faculteit Wetenschappen, Universiteit Antwerpen.\\
- Nota's bij de cursus voor academiejaar \@submitdate.
- \newline
- }
- %
- \def\@researchgroupblurb{%
-
- }
- %
- \def\@signatureblurb{%
- Ik verklaar dat ik deze thesis heb gelezen en dat, naar mijn
- mening, het werk in draagwijdte en kwaliteit beantwoordt
- aan de vereisten voor een thesis voor het diploma van
- \@thesisdegree.
- }
- %
- \def\@copyrightblurb{%
- Alle rechten voorbehouden.
- }
- }
- %---------------------
- %%%% PHDTHESIS OPTION
- %---------------------
- \DeclareOption{phdthesis}{%
- \def\@thesisdegree{\@phddegree}
- \def\@titlepageblurb{\@dissertationblurb}
- \w@ntcopyrighttrue
- \w@ntsignaturetrue
- \w@nttableofcontentstrue
- \def\@tocdepthvalue{2}
- \w@nttableofcontentstrue
- \w@ntlistoffigurestrue
- \w@ntlistoftablestrue
- %
- \def\@secnumdepthvalue{2}
- %
- \w@ntbibliographytrue
- \w@ntindextrue
- }
- %------------------------
- %%%% MASTERTHESIS OPTION
- %------------------------
- \DeclareOption{masterthesis}{%
- \def\@thesisdegree{\@masterdegree}
- \def\@titlepageblurb{\@dissertationblurb}
- \w@ntcopyrightfalse
- \w@ntsignaturefalse
- \w@nttableofcontentstrue
- \def\@tocdepthvalue{2}
- \w@ntlistoffigurestrue
- \w@ntlistoftablestrue
- %
- \def\@secnumdepthvalue{2}
- %
- \w@ntbibliographytrue
- \w@ntindexfalse
- }
- %--------------------------
- %%%% BACHELORTHESIS OPTION
- %--------------------------
- \DeclareOption{bachelorthesis}{%
- \def\@thesisdegree{\@bachelordegree}
- \def\@titlepageblurb{\@dissertationblurb}
- \w@ntsopyrightfalse
- \w@ntsignaturefalse
- \w@nttableofcontentstrue
- \def\@tocdepthvalue{1}
- \w@ntlistoffiguresfalse
- \w@ntlistofoablesfalse
- %
- \def\@secnumdepthvalue{2}
- %
- \w@ntbibliographytrue
- \w@ntindexfalse
- }
- %------------------------
- %%%% MASTERCOURSE OPTION
- %------------------------
- \DeclareOption{mastercourse}{%
- \def\@coursedegree{\@masterdegree}
- \def\@titlepageblurb{\@courseblurb}
- \w@ntcopyrightfalse
- \w@ntsignaturefalse
- \w@nttableofcontentstrue
- \def\@tocdepthvalue{1}
- \w@ntlistoffiguresfalse
- \w@ntlistoftablesfalse
- %
- \def\@secnumdepthvalue{2}
- %
- \w@ntbibliographytrue
- \w@ntindexfalse
- }
- %--------------------------
- %%%% BACHELORCOURSE OPTION
- %--------------------------
- \DeclareOption{bachelorcourse}{%
- \def\@coursedegree{\@bachelordegree}
- \def\@titlepageblurb{\@courseblurb}
- \w@nttableofcontentstrue
- \w@ntcopyrightfalse
- \w@ntsignaturefalse
- \def\@tocdepthvalue{1}
- \w@ntlistoffiguresfalse
- \w@ntlistoftablesfalse
- %
- \def\@secnumdepthvalue{2}
- %
- \w@ntbibliographytrue
- \w@ntindexfalse
- }
- %----------------------
- %%%% TECHREPORT OPTION
- %----------------------
- \DeclareOption{techreport}{%
- \def\@titlepageblurb{\@techreportblurb}
- \w@nttableofcontentstrue
- \w@ntcopyrightfalse
- \w@ntsignaturefalse
- \def\@tocdepthvalue{1}
- \w@ntlistoffiguresfalse
- \w@ntlistoftablesfalse
- %
- \def\@secnumdepthvalue{2}
- %
- \w@ntbibliographytrue
- \w@ntindexfalse
- }
- %-------------------
- %%%% GENERIC OPTION
- %-------------------
- \DeclareOption{generic}{%
- \def\@titlepageblurb{}
- \w@nttableofcontentsfalse
- \w@ntcopyrightfalse
- \w@ntsignaturefalse
- \def\@tocdepthvalue{1}
- \w@ntlistoffiguresfalse
- \w@ntlistoftablesfalse
- %
- \def\@secnumdepthvalue{2}
- %
- \w@ntbibliographytrue
- \w@ntindexfalse
- }
- %---------------------------------
- %%%% COPYRIGHT/NOCOPYRIGHT OPTION
- %---------------------------------
- \DeclareOption{copyright}{%
- \w@ntcopyrighttrue
- }
- \DeclareOption{nocopyright}{%
- \w@ntcopyrightfalse
- }
- %---------------------------------
- %%%% SIGNATURE/NOSIGNATURE OPTION
- %---------------------------------
- \DeclareOption{signature}{%
- \w@ntsignaturetrue
- }
- \DeclareOption{nosignature}{%
- \w@ntsignaturefalse
- }
- %---------------------------------
- %%%% TABLEOFCONTENTS/NOTABLEOFCONTENTS OPTION
- %---------------------------------
- \DeclareOption{tableofcontents}{%
- \w@nttableofcontentstrue
- }
- \DeclareOption{notableofcontents}{%
- \w@nttableofcontentsfalse
- }
- %-----------------------------------------
- %%%% LISTOFFIGURES/NOLISTOFFIGURES OPTION
- %-----------------------------------------
- \DeclareOption{listoffigures}{%
- \w@ntlistoffigurestrue
- }
- \DeclareOption{nolistoffigures}{%
- \w@ntlistoffiguresfalse
- }
- %---------------------------------------
- %%%% LISTOFTABLES/NOLISTOFTABLES OPTION
- %---------------------------------------
- \DeclareOption{listoftables}{%
- \w@ntlistoftablestrue
- }
- \DeclareOption{nolistoftables}{%
- \w@ntlistoftablesfalse
- }
- %---------------------------------------
- %%%% BIBLIOGRAPHY/NOBIBLIOGRAPHY OPTION
- %---------------------------------------
- \DeclareOption{bibliograpy}{%
- \w@ntbibliographytrue
- }
- \DeclareOption{nobibliography}{%
- \w@ntbibliographyfalse
- }
- %-------------------------
- %%%% INDEX/NOINDEX OPTION
- %-------------------------
- \DeclareOption{index}{%
- \makeindex
- \w@ntindextrue
- }
- \DeclareOption{noindex}{%
- \w@ntindexfalse
- }
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% EXECUTION OF OPTIONS PART
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \ExecuteOptions{phdthesis,english}
- \ProcessOptions
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% PACKAGE LOADING PART
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %\RequirePackage{graphicx}
- \RequirePackage[dvips,dvipdf,pdftex]{graphicx}
- %\DeclareGraphicsRule{*}{mps}{*}{}
- %\DeclareGraphicsExtensions{.jpg,.mps,.pdf,.png,.ps}
- \DeclareGraphicsRule{*}{eps}{*}{}
- \RequirePackage[Sonny]{fncychap}
- \RequirePackage[noindentafter,calcwidth]{titlesec}
- \RequirePackage{fancyhdr}
- \RequirePackage{paralist}
- \RequirePackage{listings,color}
- \RequirePackage[toc,page,title,titletoc]{appendix}
- \RequirePackage[round]{natbib}
- \RequirePackage{url}
- \RequirePackage{babel}
- \RequirePackage{ifthen}
- \RequirePackage{picinpar}
- \RequirePackage{colortbl}
- \RequirePackage{shadow}
- \RequirePackage{lineno}
- \RequirePackage{algorithm2e}
- \RequirePackage{epsfig}
- \RequirePackage{hyperref}
- % make sure to link CORRECTLY to images and tables, and not to the caption
- % needs to be loaded AFTER the hyperref package
- %
- \ifw@ntindex
- \RequirePackage{makeidx}
- \fi
- %
- \ifcase\pdfoutput
- \else
- \RequirePackage{pdfpages}
- \fi
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% MAIN CODE PART: TEXTPAGE FORMATTING
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %---------------
- %%%% PAGE LAYOUT
- %---------------
- \oddsidemargin=0cm
- \textwidth=16cm
- \setlength{\voffset}{-10mm}
- \setlength{\textheight}{215mm}
- \setlength{\headheight}{14pt}
- %\setlength{\parindent}{0.0mm}
- %\addtolength{\parskip}{0.3\baselineskip}
- %--------------
- %%%% PAGE STYLE
- %--------------
- \fancypagestyle{compP@geStyle}{%
- \fancyhf{}
- \rhead{\thepage}
- \lhead{\rightmark}
- \renewcommand{\headrulewidth}{0.5pt}
- \renewcommand{\footrulewidth}{0pt}
- \addtolength{\headheight}{0.5pt}
- }
- \fancypagestyle{plain}{%
- \fancyhead{}
- \renewcommand{\headrulewidth}{0pt}
- }
- %------------------
- %%%% SECTION TITLES
- %------------------
- \newenvironment{unnumbered}
- { \setcounter{secnumdepth}{0}%
- \addtocontents{toc}{\protect\setcounter{tocdepth}{0}\ignorespaces}%
- \w@ntnumbersfalse
- }
- { \setcounter{secnumdepth}{2}%
- \addtocontents{toc}{\protect\setcounter{tocdepth}{2}\ignorespaces}%
- \w@ntnumberstrue
- }
- \AtBeginDocument{
- \w@ntnumberstrue
- \setcounter{secnumdepth}{\@secnumdepthvalue}
- \titleformat{\section}[block]
- {\Large\sffamily\bfseries}
- {}{0ex}
- {\titleline*[l]{\titlerule[1pt]}\vspace{4pt} \thesection\quad}
- [{\titleline*[l]{\vspace{18pt}\titlerule[1pt]}}]
- \titlespacing*{\section}{0pc}{*3}{*2}
- %
- \titleformat{\subsection}[block]
- {\large\sffamily\bfseries}
- {}{0ex}
- %{\ifthenelse{\@secnumdepthvalue<2}{}{\thesubsection\quad}}
- {\ifw@ntnumbers \thesubsection\quad \else \quad \fi}
- %[]
- \titlespacing*{\subsection}{0pc}{*2}{*1}
- %
- \titleformat{\subsubsection}[block]
- {\large\sffamily\bfseries}
- {}{0ex}
- {\ifthenelse{\@secnumdepthvalue<3}{}{\thesubsubsection\quad}}
- []
- \titlespacing*{\subsubsection}{0pc}{*1}{*0}
- %
- %
- % \myCppCodeFormat
- % \myJavaCodeFormat
- \myShabox
- }
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% MAIN CODE PART : MAKING THE FRONT PAGES
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %--------------
- %%%% TITLE PAGE
- %--------------
- \newcommand{\makeTitlePage}{%
- \begin{titlepage}
- \null
- \hbox{
- \ifcase\pdfoutput
- %\includegraphics[scale=0.2]{UA-LogoText.eps}
- \includegraphics[5cm,7.2cm][9cm,8.5cm]{images/UA-LogoText.png}
- \else
- %\includegraphics[width=50mm, height=10mm, keepaspectratio]{UA-LogoText.jpg}
- \includegraphics[scale=0.2]{images/UA-LogoText.png}
- %\includegraphics[5cm,7.2cm][9cm,8.5cm]{UA-LogoText.jpg}
- \fi
- }
- \hbox{
- \vrule depth 0.87\textheight%
- \mbox{\hspace{2pt}}
- \vtop{%
- \vskip 70\p@
- \raisebox{0mm}[5ex][0ex]{
- \parbox{12cm}{ {\huge \bfseries \@title \par} }
- }
- \vskip 120\p@
- \mbox{\hspace{2pt} \bfseries \@author \par}
- \vskip 120\p@
- \mbox{\hspace{2pt} \@advisername :\quad \@principaladviser \par}
- \vskip 5\p@
- \mbox{\hspace{2pt} \@assistantadvisername :\quad \@assistantadviser \par}
- \vskip 45\p@
- \raisebox{0mm}[6ex][0ex]{
- \parbox{10cm}{{\@titlepageblurb} }
- }
- \vskip 50\p@
- \mbox{
- \ifcase\pdfoutput
- %\includegraphics[scale=0.5]{CoMP-logo-embedfont.eps}
- \includegraphics[bb = 7cm 7.8cm 9.5cm 8.8cm, keepaspectratio]{images/ansymo_logo.pdf}
- \else
- %\includegraphics[width=25mm, height=8mm, keepaspectratio]{CoMP-logo-embedfont.jpg}
- \includegraphics[scale=0.5]{images/ansymo_logo.pdf}
- %\includegraphics[7cm,7cm][9cm,8cm]{CoMP-logo-embedfont.jpg}
- \fi
- }
- \raisebox{4mm}{
- \resizebox{!}{0.37cm}{
- \parbox{8cm}{ \scshape \@researchgroupblurb }
- }
- }
- }
- }
- \vfill
- \end{titlepage}
- }
- %-------------------
- %%%%% COPYRIGHT PAGE
- %-------------------
- \newcommand{\makeCopyrightPage}{%
- \begin{titlepage}
- \null
- \vfill
- \begin{center}
- \large
- Copyright\ \copyright\ \@copyrightyear\ \@author\\
- \@copyrightblurb
- \end{center}
- \vfill
- \end{titlepage}
- }
- %-------------------
- %%%%% SIGNATURE PAGE
- %-------------------
- \newcommand{\signature}[1]{%
- \vspace{1.0in}
- \hbox to 5in{\hfil\begin{tabular}{@{}l@{}}
- \vrule width 4in height 0.4pt depth 0pt\\ #1\end{tabular}}
- }
- \newcommand{\makeSignaturePage}{%
- \begin{titlepage}
- \begin{flushright}
- \begin{minipage}{5in}
- \vspace{7cm}
- \@signatureblurb
- \par
- % pricipal adviser
- \signature{\@advisername ,\quad \@principaladviser}
- \vfill
- % if second principal advisor
- \if*\@coprincipaladviser \else
- \signature{\@coadvisername ,\quad \@coprincipaladviser}
- \vfill\fi
- \if*\@assistantadviser \else
- \signature{\@assistantadvisername ,\quad \@assistantadviser}
- \vfill\fi
- \end{minipage}
- \end{flushright}
- \end{titlepage}
- }
- %---------------------------
- %%%%% TABLE OF CONTENTS PAGE
- %---------------------------
- \AtBeginDocument{
- \setcounter{tocdepth}{\@tocdepthvalue}
- }
- \newcommand{\makeTableOfContentsPage}{%
- {\sffamily \tableofcontents}
- }
- %-------------------------
- %%%%% LIST OF FIGURES PAGE
- %-------------------------
- \newcommand{\makeListOfFiguresPage}{%
- \clearpage
- \phantomsection
- \addcontentsline{toc}{chapter}{\listfigurename}
- \listoffigures
- }
- %------------------------
- %%%%% LIST OF TABLES PAGE
- %------------------------
- \newcommand{\makeListOfTablesPage}{%
- \clearpage
- \phantomsection
- \addcontentsline{toc}{chapter}{\listtablename}
- \listoftables
- }
- %------------------------
- %%%%% LIST OF LISTINGS PAGE
- %------------------------
- \newcommand{\makeListOfListingsPage}{%
- \renewcommand{\lstlistlistingname}{List of Listings}
- \clearpage
- \phantomsection
- \addcontentsline{toc}{chapter}{\lstlistlistingname}
- \lstlistoflistings%
- }
- %---------------
- %%%% FRONT PAGES
- %---------------
- \newcommand{\frontpages}{%
- \pagenumbering{roman}
- \pagestyle{plain}
- \makeTitlePage
- \ifw@ntcopyright \makeCopyrightPage \fi
- \ifw@ntsignature \makeSignaturePage \fi
- \ifw@nttableofcontents \makeTableOfContentsPage \fi
- \ifw@ntlistoffigures \makeListOfFiguresPage \fi
- \ifw@ntlistoftables \makeListOfTablesPage \fi
- %\makeListOfListingsPage
- }
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% MAIN CODE PART : MAKING THE MAIN BODY PAGES
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %-------------------
- %%%% MAIN BODY PAGES
- %-------------------
- \newcommand{\mainbodypages}{%
- \clearpage
- \pagestyle{compP@geStyle}
- \pagenumbering{arabic}
- %\setlength{\parindent}{0.0mm}
- %\addtolength{\parskip}{0.5\baselineskip}
- }
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% MAIN CODE PART : MAKING THE BACK PAGES
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %----------------------
- %%%%% BIBLIOGRAPHY PAGE
- %----------------------
- \newcommand{\makeBibliographyPage}{%
- \bibliographystyle{plain}
- \clearpage
- \phantomsection
- \addcontentsline{toc}{chapter}{Bibliography}
- \bibliography{\@bibfile}
- }
- %---------------------
- %%%%% THE INDEX PAGE
- %---------------------
- \newcommand{\makeIndexPage}{%
- \addcontentsline{toc}{chapter}{Index}
- \printindex
- }
- %--------------
- %%%% BACK PAGES
- %--------------
- \newcommand{\backpages}{%
- \pagestyle{plain}
- \ifw@ntbibliography
- \makeBibliographyPage
- \fi
- \ifw@ntindex
- \makeIndexPage
- \fi
- }
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%% MISCELLANEOUS COMMANDS TO BE USED IN THE MAIN BODY
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %---------
- %%%% myDef
- %---------
- \newcommand{\myDef}[2]{
- \begin{flushright}
- \parbox{3.3cm}{
- \begin{flushleft}
- {\emph Definitie:\\ \vspace{1mm}}{\bf #1 }
- \end{flushleft}
- }
- \parbox{10.5cm}{ #2 }
- \end{flushright}
- }
- %---------
- %%%% myTxt
- %---------
- \newcommand{\myTxt}[2]{
- \begin{flushright}
- \parbox{3.3cm}{
- \begin{flushleft}
- {\bf #1 }
- \end{flushleft}
- }
- \parbox{10.5cm}{ #2 }
- \end{flushright}
- }
- %------------
- %%%% myMarTxt
- %------------
- \newcommand{\myMarTxt}[1]{
- \reversemarginpar
- \setlength{\marginparwidth}{5cm}
- \marginpar[\ \\ \begin{minipage}{5cm}{\begin{flushright} { #1 } \end{flushright}}\end{minipage}]{}
- }
- %-------------
- % mySidebarTxt
- %-------------
- \newcommand{\mySidebarTxt}[1]{%
- \newlength{\temptabcolsep}
- \setlength{\temptabcolsep}{\tabcolsep}%
- \setlength{\tabcolsep}{0pt}%
- \begin{tabular}{r|>{\columncolor[gray]{0.75}}cr}%
- \begin{minipage}{4cm}%
- \begin{flushright}
- #1%
- \end{flushright}
- \end{minipage}%
- \hspace*{0.15cm} &%
- \hspace*{0.15cm} &%
- \end{tabular}%
- \setlength{\tabcolsep}{\temptabcolsep}%
- }
- %---------------------
- % myShadedParagraphTxt
- %---------------------
- \newcommand{\shadedparagraph}[1]{%
- \begin{tabular}{>{\columncolor[gray]{.75}}l}%
- \begin{minipage}{0.96\textwidth}%
- \vspace*{0.2cm}%
- #1%
- \vspace*{0.2cm}%
- \end{minipage}%
- \end{tabular}%
- }
- %-----------
- % myBoxedTxt
- %-----------
- \newcommand{\framedparagraph}[1]{
- \setlength{\fboxsep}{0.5cm}
- \begin{center}
- \framebox { \parbox{13cm}{#1}}
- \end{center}
- }
- %----------------
- % myCppCodeFormat
- %----------------
- \newcommand{\myCppCodeFormat}{%
- \lstloadlanguages{C++}
- \lstset{language=C++,commentstyle=\scriptsize\color{green}, identifierstyle=\color{red},tabsize=4, xleftmargin=2ex,captionpos=b}
- }
- %-----------------
- % myJavaCodeFormat
- %-----------------
- \newcommand{\myJavaCodeFormat}{%
- \lstloadlanguages{Java}
- \lstset{language=Java,commentstyle=\scriptsize,identifierstyle=\color{red},tabsize=4, xleftmargin=2ex,captionpos=b}
- }
- %-----------------
- % myShabox
- %-----------------
- \newcommand{\myShabox}{%
- \setlength{\sdim}{6pt}
- }
- % graphviz.tex
- % originally written by Derek Rayside, November 2003
- % following an idea that Daniel Jackson implemented in his Tagger program
- %
- % parameters to \digraph:
- % 1 - parameters for \includegraphics (optional; default value is "scale=1")
- % 2 - name of the digraph
- % 3 - body of the digraph
- \newcommand{\digraph}[3][scale=1]{
- \newwrite\dotfile
- \immediate\openout\dotfile=#2.dot
- \immediate\write\dotfile{digraph #2 {\string#3}}
- \immediate\closeout\dotfile
- \IfFileExists{#2.ps}
- % the postscript exists: include it
- { \includegraphics[#1]{#2} }
- % the postscript doesn't exist: tell the user how to create it
- { \fbox{ \begin{tabular}{l}
- The file \texttt{#2.ps} hasn't been created from
- \texttt{#2.dot} yet. \\
- Run `\texttt{dot -Tps -o #2.ps #2.dot}' to create it. \\
- Here is a \textsf{bash} loop to process all \textsf{dot} files
- in the current directory: \\
- \texttt{
- for f in *.dot do ;
- dot -Tps -o \$\{f\%dot\}ps \$f ;
- done
- }
- \end{tabular}}
- }
- }
- % BoxedGraph
- %
- % 1 - parameters for \includegraphics (optional; default value is "scale=1")
- % 2 - name of the digraph
- \newcommand{\psgraphboxed}[4][scale=1]
- {
- \begin{figure}[h]
- \begin{center}
- %\fbox{
- \includegraphics[#1]{#2}
- \caption{#3}
- \label{#4}
- %}
- \end{center}
- \end{figure}
- }
|