Project

General

Profile

Actions

RUmscsty

% ---------------------------------------------------------------------------------------------
% Style for Reykjav’k University School of Computer Science and
% Science and Engineering M.Sc. Theses and Reports
% ---------------------------------------------------------------------------------------------

\def\styleoption{RUCSMSc.sty}
\def\fileversion{v2}
\def\filedate{9.5.2010}
\def\fileauthor{Bjorn Thor Jonsson, }
\NeedsTeXFormat{LaTeX2e}

\typeout{M.Sc. Thesis/Report Style for Reykjavik University, School of Science and Engineering:
\styleoption, \fileversion from <\filedate>, by \fileauthor}

%% ----- Preamble ------------------------------------------------------------------------------

\@twosidetrue

% This style file uses (at least) the following styles: fancyhdr, apacite, textpos, (everyshi)
\usepackage[icelandic]{babel}
\usepackage{times}
\usepackage{helvet}
\usepackage{courier}
\usepackage{apacite}
\usepackage{fancyhdr}
\RequirePackage{graphicx}
\RequirePackage[absolute]{textpos}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\usepackage{helvet}
\usepackage{color}
\usepackage[overload]{textcase}

\usepackage{todonotes}
\usepackage[colorlinks,linkcolor=black,citecolor=black,urlcolor=black]{hyperref}
\usepackage{hypcap}
\usepackage{float}

\definecolor{rugray}{rgb}{0.2,0.2,0.2}
\definecolor{rured}{rgb}{0.84,0.10,0.13}

%% Fix the geometry of the pages
\usepackage[left=3cm,right=3cm,top=3.5cm,bottom=2.5cm]{geometry}
\usepackage{geometry}
\geometry{a4paper}
\usepackage[parfill]{parskip}

\def\twttb{\fontencoding{T1}\fontfamily{pmt}\fontseries{b}\fontshape{n}\fontsize{24pt}{28pt}\selectfont}
\def\fftntb{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{15pt}{20pt}\selectfont}
\def\twvtr{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{14pt}{16pt}\selectfont}
\def\tentm{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{10pt}{12pt}\selectfont}
\def\eigtm{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{8pt}{10pt}\selectfont}
\def\tenhv{\fontencoding{T1}\fontfamily{phv}\fontseries{m}\fontshape{n}\fontsize{10pt}{12pt}\selectfont}

%% ----- M.Sc. Thesis Options -------------------------------------------------------

\def\SCS{\gdef\@MScschool{School of Computer Science}}
\def\SSE{\gdef\@MScschool{School of Science and Engineering}}

\def\TD{\gdef\@MScdeild{T\"{o}lvunarfr\ae{}\dh{}ideild}}
\def\TVD{\gdef\@MScdeild{T\ae{}kni- og verkfr\ae{}\dh{}ideild}}

\def\DE{\gdef\@MScProgram{Decision Engineering}}
\def\FE{\gdef\@MScProgram{Financial Engineering}}
\def\EM{\gdef\@MScProgram{Engineering Management}}
\def\EE{\gdef\@MScProgram{Electrical Engineering}}
\def\ME{\gdef\@MScProgram{Mechanical Engineering}}

\def\CS{\gdef\@MScProgram{Computer Science}}
\def\SE{\gdef\@MScProgram{Software Engineering}}
\def\LT{\gdef\@MScProgram{Language Technology}}

\def\THESIS{\gdef\MScTHESIS{}}
\def\REPORT{\gdef\MScREPORT{}}

\def\PAPER{\gdef\MScPAPER}
\def\ONLINE{\gdef\MScONLINE}

\def\DRAFT{\gdef\MScDRAFT}
\def\PROOF{\gdef\MScPROOF}

\def\MScwhen#1{\gdef\@MScwhen{#1}}
\def\MScdags#1{\gdef\@MScdags{#1}}

\def\@MScProgram{??\@warning{*** No Program. }}
\def\@MScwhen{??\@warning{
No English date. }}
\def\@MScdags{??\@warning{
No Icelandic date. ***}}

\def\MSctitlehead#1{\gdef\@MSctitlehead{#1}}
\def\MScauthorhead#1{\gdef\@MScauthorhead{#1}}
\MSctitlehead{}
\MScauthorhead{}

\def\MSctitle#1{\gdef\@MSctitle{#1}\gdef\@MSctitleF{#1}\gdef\@MSctitleP{#1}\gdef\@MSctitleI{#1}\gdef\@MSctitlehead{#1}}
\def\MScheiti#1{\gdef\@MScheiti{#1}}
% The english title may be formatted, but must appear unformatted in a couple of places
\def\MSctitleF#1{\gdef\@MSctitleF{#1}}
\def\MSctitleP#1{\gdef\@MSctitleP{#1}}
\def\MSctitleI#1{\gdef\@MSctitleI{#1}}
% The icelandic title is only in formatted form, so just redefine the command
\def\MScheitiI#1{\gdef\@MScheiti{#1}}

\def\@MSctitle{??\@warning{*** No English title. }}
\def\@MScheiti{??\@warning{
No Icelandic title. ***}}

\long\def\MScabstract#1 {\long\def\@MScabstract {#1}}
\long\def\MScutdrattur#1{\long\def\@MScutdrattur{#1}}
\def\@MScabstract {??\@warning{*** No English abstract. }}
\def\@MScutdrattur{??\@warning{
No Icelandic abstract. ***}}
\gdef\@MScabstract{}
\gdef\@MScutdrattur{}

\def\MScauthor#1{\def\and{, }\gdef\@MScauthor{#1}\gdef\@MScauthorS{#1}\gdef\@MScauthorhead{#1}}
\def\MScauthorS#1{\gdef\@MScauthorS{#1}}
\def\@MScauthor{??\@warning{***No author name.***}}

\def\MSccmembers#1{\def\and{, }\gdef\@MSccmembers{#1}}
\def\MSccommittee#1#2#3{\xdef\@MSccommittee{\@MSccommittee \par #1 \par #2, #3 \par ~ } \xdef\@MSccommitteelong{\@MSccommitteelong \par \noindent\hrulefill ~ \hfill \par #1 \par #2, #3 \par ~\par ~\par ~\par}}
\def\MSccommitteeS#1#2#3{\xdef\@MSccommittee{\@MSccommittee \par #1, Supervisor \par #2, #3 \par ~ } \xdef\@MSccommitteelong{\@MSccommitteelong \par \noindent\hrulefill ~ \hfill \par #1, Supervisor \par #2, #3 \par ~ \par ~ \par ~ \par}\def\and{, }\gdef\@MScadvisor{#1 \par #2}}
\def\MSccommitteeC#1#2#3{\xdef\@MSccommittee{\@MSccommittee \par #1, Co-Supervisor \par #2, #3 \par ~ } \xdef\@MSccommitteelong{\@MSccommitteelong \par \noindent\hrulefill ~ \hfill \par #1, Co-Supervisor \par #2, #3 \par ~ \par ~ \par ~ \par}}

\def\@MSccommittee{}
\def\@MSccommitteelong{}

\gdef\@MScnbpage{\@ifundefined{r@MSclastpageofreport}{??} {\edef\@tempa{\@nameuse{r@MSclastpageofreport}}\expandafter
\@cdr\@tempa\@nil\null}}

\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn \else
\newpage \fi \thispagestyle{empty}}

\def\endtitlepage{\if@twoside \ifnum\c@page>0\else\newpage
\thispagestyle{empty}
\c@page\z@\null\fi\fi%
\if@restonecol\twocolumn \else \newpage\fi}

%\def\symbdegre{\char'006{}}

\setlength{\TPHorizModule}{10mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{0mm}{0mm} % start everything near the top-left corner

% ---------------------------------------------------------------------------------------------
% This extensively long command makes the front materials
\def\makeMScFront{

%% ----- EXTRA FRONT PAGE, PAPER ONLY ----------------------------------------------------------

{\@ifundefined{MScPAPER}{}{
\thispagestyle{empty}

\textblockorigin{0cm}{0cm}

\begin{textblock*}{13cm}[0,0](4.5cm,17.5cm)%
\noindent%
\begin{minipage}{11.9cm}%
\begin{spacing}{1.8}
\begin{center} {\LARGE \bf \textsf{\textcolor{rugray}{\MakeUppercase{\@MSctitleP}}}}%
\end{center}
\end{spacing}
\end{minipage}%
\end{textblock*}

\begin{textblock*}{13cm}[0,0](4.5cm,20.8cm)%
\noindent%
\begin{minipage}{11.9cm}%
\begin{spacing}{1.0}
\begin{center}
\textcolor{rugray}{\large
\textsf{\@MScwhen}\\ {\bf \textsf{\@MScauthor}} \\
\textsf{Master of Science in \@MScProgram}\\
}%
\end{center}
\end{spacing}
\end{minipage}%
\end{textblock*}

~
\newpage
\thispagestyle{empty}

~

\addtocounter{page}{-2}
}}

%% ----- THE TITLE PAGE ------------------------------------------------------------------------
\begin{titlepage}
\def\@makefnmark{\rlap{\@textsuperscript{\@thefnmark}}}
\textblockorigin{0cm}{0cm}

\begin{textblock*}{21cm}(3cm,3.7cm)%
\noindent%
\begin{minipage}[t]{15cm}%
\centering{~ \includegraphics[scale=0.60]{RU-logo} ~}%
\end{minipage}%
\end{textblock*}

\@ifundefined{MScDRAFT}{}{
\begin{textblock*}{21cm}[0,0.5](1cm,17cm)%
\noindent%
\begin{minipage}{19cm}%
\centering{{\Huge \bf * DRAFT \\~\\ PLEASE DO NOT DISTRIBUTE}}%
\end{minipage}%
\end{textblock
}
}

\@ifundefined{MScPROOF}{}{
\begin{textblock*}{21cm}[0,0.5](1cm,17cm)%
\noindent%
\begin{minipage}{19cm}%
\centering{{\Huge \bf * PROOF READING VERSION \\~\\ PLEASE DO NOT DISTRIBUTE}}%
\end{minipage}%
\end{textblock
}
}

\begin{textblock*}{21cm}[0,0](3cm,12cm)%
\noindent%
\begin{minipage}{15cm}%
\begin{spacing}{1.8}
\begin{flushleft} {\LARGE \bf \textsf{\textcolor{rugray}{\MakeUppercase{\@MSctitleF}}}}%
\end{flushleft}
\end{spacing}
\end{minipage}%
\end{textblock*}

\begin{textblock*}{21cm}[0,0](3cm,21.5cm)%
\noindent%
\begin{minipage}{15cm}%
\begin{spacing}{1.5}
\textcolor{rugray}{\large {\bf \textsf{\@MScauthor}} \\
\textsf{Master of Science}\\
\textsf{\@MScProgram}\\
\textsf{\@MScwhen}\\
\textsf{\@MScschool}\\
\textsf{Reykjav\'{\i}k University}\\
}%
\end{spacing}
\end{minipage}%
\end{textblock*}

\begin{textblock*}{21cm}[0,0](3cm,26.5cm)%
\noindent%
\begin{minipage}{15cm}% {\textcolor{rured}{\LARGE \bf \textsf{M.Sc. \@ifundefined{MScTHESIS}{PROJECT REPORT}{RESEARCH THESIS}}}}
\end{minipage}%
\end{textblock*}

\begin{textblock*}{21cm}[0,0](3cm,27.9cm)%
\noindent%
\begin{minipage}{15cm}%
\begin{spacing}{1.5} {\scriptsize \textcolor{rugray}{\textsf{ISSN 1670-8539}}}
\end{spacing}
\end{minipage}%
\end{textblock*}

\c@page\z@
\end{titlepage}

%% ----- NEXT AN EMPTY PAGE -------------------------------------------------------------------

\thispagestyle{empty}
~ \newpage
\addtocounter{page}{-1}

%% ----- INTERNAL TITLE PAGE WITH COMMITTEE ---------------------------------------------------

\thispagestyle{empty}
\textblockorigin{0cm}{0cm}

\begin{textblock*}{21cm}(3cm,3cm)%
\noindent%
\begin{minipage}[t]{15cm}%
\centering{~ \includegraphics[scale=0.4]{RU-logo} ~}%
\end{minipage}%
\end{textblock*}

\begin{textblock*}{21cm}[0,0](3cm,8cm)%
\noindent%
\begin{minipage}{15cm}%
\centering{% {\Large {\bf \@MSctitleI\\~}}%
\\% {\twvtr by\\~}%
\\% {\twvtr \large \@MScauthor}%
}%
\end{minipage}%
\end{textblock*}

\begin{textblock*}{21cm}[0,0](2cm,13cm)%
\noindent%
\begin{minipage}{17cm}%
\centering{ {\twvtr \@ifundefined{MScTHESIS}{Project report}{Research thesis} submitted to the \@MScschool\ \\%
at Reykjav\'{\i}k University in partial fulfillment of\\%
the requirements for the degree of \\%
\textbf{Master of Science} in \textbf{\@MScProgram} \par ~ \par \@MScwhen}%
}%
\end{minipage}%
\end{textblock*}

\begin{textblock*}{21cm}[0,0](3.7cm,17.4cm)%
\noindent%
\begin{minipage}{17cm}%
\twvtr
\hspace{1.5cm}
\@ifundefined{MScTHESIS}{Project Report}{Research Thesis} Committee:\par ~ \par
\hspace{2.5cm}{
\parbox{13cm}{
\@MSccommittee
}}
\end{minipage}%
\end{textblock*}

%% ----- COPYRIGHT PAGE -----------------------------------------------------------------------

~ \newpage ~

\thispagestyle{empty}
\textblockorigin{0cm}{0cm}

\begin{textblock*}{21cm}(2cm,10cm)%
\noindent%
\begin{minipage}[t]{17cm}%
\centering{\twvtr Copyright\\\@MScauthor\\\@MScwhen\\~}%
\end{minipage}%
\end{textblock*}

%% ----- FIRST SIGNATURE PAGE, PAPER ONLY -----------------------------------------------------

{\@ifundefined{MScPAPER}{}{
~\newpage

\thispagestyle{empty}

\textblockorigin{0cm}{0cm}

{\twvtr \noindent The undersigned hereby certify that they recommend to the \@MScschool{} at Reykjav\'{\i}k University for acceptance this \@ifundefined{MScTHESIS}{project report}{research thesis} entitled \textbf{\@MSctitle{}} submitted by \textbf{\@MScauthorS{}} in partial fulfillment of the requirements for the degree of \textbf{Master of Science} in \textbf{\@MScProgram}.}

\begin{textblock*}{21cm}(5cm,8.5cm)%
\noindent%
\begin{minipage}[t]{6cm}% {\twvtr \hrule ~\par\noindent Date}
\end{minipage}

\end{textblock*}

\begin{textblock*}{21cm}(5cm,11.5cm)%
\noindent%
\begin{minipage}[t]{11cm}% {\twvtr \@MSccommitteelong}
\end{minipage}

\end{textblock*}

%% ----- SECOND SIGNATURE PAGE, PAPER ONLY ----------------------------------------------------

\newpage
\thispagestyle{empty}

{\twvtr \noindent The undersigned hereby grants permission to the Reykjav\'{\i}k University Library to reproduce single copies of this \@ifundefined{MScTHESIS}{project report}{research thesis} entitled \textbf{\@MSctitle{}} and to lend or sell such copies for private, scholarly or scientific research purposes only. \par ~ }

{\twvtr \noindent The author reserves all other publication and other rights in association with the copyright in the \@ifundefined{MScTHESIS}{project report}{research thesis}, and except as herein before provided, neither the \@ifundefined{MScTHESIS}{project report}{research thesis} nor any substantial portion thereof may be printed or otherwise reproduced in any material form whatsoever without the author's prior written permission.}

\begin{textblock*}{21cm}(5cm,12.5cm)%
\noindent%
\begin{minipage}[t]{6cm}% {\twvtr \hrule ~\par\noindent Date}
\end{minipage}

\end{textblock*}

\begin{textblock*}{21cm}(5cm,15.5cm)%
\noindent%
\begin{minipage}[t]{11cm}% {\twvtr \hrule ~\par\noindent\@MScauthor \\ Master of Science}
\end{minipage}%
\end{textblock*}

\addtocounter{page}{-2}
}}

%% ----- TITLE AND ABSTRACT -- ENGLISH --------------------------------------------

\newpage ~

\thispagestyle{empty}
\textblockorigin{0cm}{0cm}

\begin{textblock*}{21cm}[0,0](2cm,4cm)%
\noindent%
\begin{minipage}{17cm}%
\centering{% {\Large {\bf \@MSctitleI\\~}}%
\\% {\twvtr \large \@MScauthor\\~}%
\\% {\twvtr \large \@MScwhen\\~}%
}%
\end{minipage}%
\end{textblock*}

\vspace{5cm} {\noindent\twvtr {\bf Abstract}\par\vspace{0.5ex}
\noindent\@MScabstract\par}%

%% ----- TITLE AND ABSTRACT -- ICELANDIC ------------------------------------------

\newpage ~

\thispagestyle{empty}
\textblockorigin{0cm}{0cm}

\begin{textblock*}{21cm}[0,0](2cm,4cm)%
\noindent%
\begin{minipage}{17cm}%
\centering{% {\Large {\bf \@MScheiti\\~}}%
\\% {\twvtr \large \@MScauthor\\~}%
\\% {\twvtr \large \@MScdags\\~}%
}%
\end{minipage}%
\end{textblock*}

\vspace{5cm} {\noindent\twvtr {\bf \'{U}tdr\'{a}ttur}\par\vspace{0.5ex}\noindent\@MScutdrattur\par}%

%% ----- END OF FRONT MATERIALS ---------------------------------------------------------------

% Clean up some formatting for the text
\renewcommand{\thepage}{\roman{page}}
\def\@fndot{\null}
\def\thefootnote{\fnsymbol{footnote}}
\def\@makefnmark{\hbox{\scriptsize\@textsuperscript{\@thefnmark}}}
\long\def\@makefntext##1{\parindent 1em\noindent
\hb@xt@1.8em{

\hss\@textsuperscript{\normalfont\@thefnmark}} Bug #1: Broken toaster}%
\let\footnoterule\relax \null

\renewcommand{\thefootnote}{\scriptsize \arabic{footnote}} %to fix large footnote text errors in some documents

%\setlength{\bibitemsep}{1ex} %Adjusting the spacing between bibentries \bibliographystyle{apacite}
%\renewcommand{\bibname}{Bibliography \addcontentsline{toc}{chapter}{Bibliography}} %Renaming the %%bibliography section (if omitted it will be named "references")

\setcounter{footnote}{1} \let\thanks\relax
\let\maketitle\relax
\onehalfspace

}

%% --------------------------------------------------------------------------------------------

\def\MScdeds#1{\newpage \thispagestyle{empty} \null\par\vskip 6cm \begin{center}{\em #1}\end{center} \newpage \thispagestyle{empty} ~}
\def\MScpubs{\chapter*{Publications}}
\def\MScacks{\chapter*{Acknowledgements}}
\def\MSctableofcontents{\tableofcontents}
\def\MSclistoffigures{\newpage \addcontentsline{toc}{chapter}{List of Figures} \listoffigures}
\def\MSclistoftables{\newpage \addcontentsline{toc}{chapter}{List of Tables} \listoftables}
\def\MSclistofabbrev{\chapter*{List of Abbreviations} \addcontentsline{toc}{chapter}{List of Abbreviations}}

\newcounter{MScpartcounter}
\setcounter{MScpartcounter}{1}
\def\MScpart#1{
\chapter*{Part \Roman{MScpartcounter}: #1}
\addcontentsline{toc}{chapter}{Part \Roman{MScpartcounter}: #1}
\addtocounter{MScpartcounter}{1}}

\def\startMSc{
\cleardoublepage
\renewcommand{\thepage}{\arabic{page}} \setcounter{page}{1}
% NOTE: THESE ARE THE HEADERS FOR THE MAIN TEXT
\fancyhf{} % clear all header and footer fields
\fancyhead[LO]{\footnotesize {\@MScauthorhead}}
\fancyhead[RO]{\footnotesize \thepage}
\fancyhead[LE]{\footnotesize \thepage}
\fancyhead[RE]{\footnotesize {\@MSctitlehead}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead[LO]{\footnotesize {\@MScauthorhead}}
\fancyhead[RO]{\footnotesize \thepage}
\fancyhead[LE]{\footnotesize \thepage}
\fancyhead[RE]{\footnotesize {\@MSctitlehead}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
}

\def\makeMSc{\makeMScFront}

\def\emptypage{\newpage ~ \thispagestyle{empty}}
\@ifundefined{reset@font}{\gdef\reset@font{\relax}}{}

% ---------------------------------------------------------------------------------------------
% This command makes the backend materials
\def\lastTRpage{%
\cleardoublepage

\emptypage
\emptypage
\thispagestyle{empty}

\textblockorigin{0cm}{0cm}
\begin{textblock*}{21cm}(3cm,22.5cm)%
\noindent
\begin{minipage}[t]{15cm}
\includegraphics[scale=0.50]{RU-logo}
\end{minipage}
\end{textblock*}

\begin{textblock*}{21cm}(9cm,22.5cm)%
\noindent%
\begin{minipage}[t]{15cm}%
\begin{spacing}{1.1}
\textsf{~\\
\textcolor{rugray}{\@MScschool\\
Reykjav\'{\i}k University\\
Menntavegur 1\\
101 Reykjav\'{\i}k, Iceland\\
Tel. +354 599 6200\\
Fax +354 599 6201\\
www.reykjavikuniversity.is\\
ISSN 1670-8539}}
\end{spacing}
\end{minipage}%
\end{textblock*}
}

\@ifundefined{enddocumentasusual}{\global\let\endTRdocument\enddocument} {\global\let\endTRdocument\enddocumentasusual}

\@ifundefined{enddocumentasusual} {\gdef\enddocument{\null\label{TRlastpageofreport}\lastTRpage\endTRdocument}} {\gdef\enddocument{\null\label{TRlastpageofreport}\lastTRpage\endTRdocument}}

\renewcommand{\thepage}{\arabic{page}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FANCY HEADERS
% More details on fancy headers and header/footers in general: http://www.ntg.nl/maps/pdf/16_29.pdf
% NOTE: THESE ARE THE HEADERS FOR THE PREAMBLE, THE HEADERS FOR THE MAIN TEXT ARE IN startMSc COMMAND
\pagestyle{fancy}
% with this we ensure that the chapter and section
% headings are in lowercase.
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\fancyhf{} % clear all header and footer fields
\fancyhead[LO]{\footnotesize \textit{\@MScauthorhead}}
\fancyhead[RO]{\footnotesize \thepage}
\fancyhead[LE]{\footnotesize \thepage}
\fancyhead[RE]{\footnotesize \textit{\@MSctitlehead}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead[LO]{\footnotesize \textit{\@MScauthorhead}}
\fancyhead[RO]{\footnotesize \thepage}
\fancyhead[LE]{\footnotesize \thepage}
\fancyhead[RE]{\footnotesize \textit{\@MSctitlehead}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
% Code for creating empty pages
% No headers on empty pages before new chapter
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\thispagestyle{plain}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother \clearpage{\pagestyle{plain}\cleardoublepage}
End Fancy headers
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\textwidth14cm
\textheight18cm
\evensidemargin0.96cm
\oddsidemargin0.96cm

\headheight1cm
\headsep1cm
%\footskip2cm

% Fraction et compteurs pour les flottants
\setcounter{topnumber}{5} \def\topfraction{1} \setcounter{bottomnumber}{4}
\def\bottomfraction{1} \setcounter{totalnumber}{10} \def\textfraction{0}
\def\floatpagefraction{.5}

\clubpenalty=10000 % ligne orpheline
\widowpenalty=10000 %
ligne veuve
\hfuzz=1pt % pour ne pas avoir trop de overfull hbox...
\vfuzz=5pt %
" " " vbox...
%\pagestyle{pi}
\pagestyle{fancy}

%% chapter pour book et report

%\ifundefined{chapter}{\relax}{\def\chapter{\clearpage \thispagestyle{fancy}
%\global\@topnum\z
\@afterindentfalse \secdef\@chapter\@schapter}}

Updated by Kristján Gerhard over 10 years ago · 1 revisions