OpenCores
URL https://opencores.org/ocsvn/mod_sim_exp/mod_sim_exp/trunk

Subversion Repositories mod_sim_exp

[/] [mod_sim_exp/] [trunk/] [doc/] [src/] [mod_sim_exp_style.sty] - Rev 47

Compare with Previous | Blame | View Log

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%               This syntax file is intended for students of the                                %
%               KaHo St. Lieven writing their master thesis.                                    %
%               We hope they can use it as a helping hand in writing                    %
%               their thesis.                                                                                                   %
%                                                                                                                                               %
%               This package will take care of the formatting of the                    %
%               document. When all student used this syntax (or                                 %
%               another), we can come to an universal thesis format                             %
%               which adds to the professionalism of our university                             %
%               documents                                                                                                               %
%                                                                                                                                               %
%               Syntax originally written by Filip Van Rysselberghe                     %
%               Adapted for KaHo St. Lieven by Bart Blanckaert                  %
%               minor correction: "Katholieke Hogeschool Sint-Lieven"                   %
%               instead of "KaHo Sint-Lieven Hogeschool" necessary              %
%               for official publication, by Karel Van den Steen                %
%                                                                                                                                               %
%               Modified by Koen Vangheluwe based on PhD stylefile of RUG               % 
%               minor corrections by Jannes Verstichel and Tom Hamelinckx               %
%               Last modified: 17/05/2011 v0.92                                                                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter

% fancyheadings
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
%\fancyhead[RE,LO]{\scriptsize\bfseries\sffamily\rightmark}
\fancyhead[LO,RE]{\scriptsize\bfseries\sffamily\leftmark} % hoofdstuk titel
\fancyhead[RO,LE]{\scriptsize\bfseries\sffamily\thetitle\space-- \version} % document naam
\fancyfoot[RO,LE]{\scriptsize\bfseries\sffamily\thepage} % pagina nummer
\fancyfoot[LO,RE]{\scriptsize\bfseries\sffamily\dramco} % dramco, kaho, kul
%\fancyfoot[C]{\scriptsize\bfseries\sffamily\thetitle -- \version}
\renewcommand{\headrulewidth}{.8pt}
\renewcommand{\footrulewidth}{.8pt}
\fancypagestyle{plain}{
        \fancyhf{}
        \fancyfoot[RO,LE]{\scriptsize\bfseries\sffamily\thepage}
        \fancyfoot[LO,RE]{\scriptsize\bfseries\sffamily\dramco}
        \renewcommand{\headrulewidth}{0pt}
        \renewcommand{\footrulewidth}{.8pt}
}

% Koen Vangheluwe 29/05/2009: toegevoegd om "\headheight is too small" warning te voorkomen
\setlength{\headheight}{14pt}

% Koen Vangheluwe 16/03/2010: toegevoegd wegens voor witte pagina's met empty style bij het gebruik van twoside en report
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  \hbox{}
  \thispagestyle{empty}
  \newpage
  \if@twocolumn\hbox{}\newpage\fi\fi\fi}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% We'll head off with the definitions of the new commands %
%       as promotor, copromotor, etc                      %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\promotorA[#1]#2{\gdef\@promotorAtype{#1}\gdef\@promotorAname{#2}}
\def\authorEmail#1{\gdef\@authorEmail{#1}}
\def\hwDesigner#1{\gdef\@hwDesigner{#1}}
\def\hwCoDesigner#1{\gdef\@hwCoDesigner{#1}}
\def\company#1{\gdef\@company{#1}}

\newcommand{\footstar}[1]{$^*$ \footnotetext{$^*$#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%       Secondly we declare and fill in the newly created variables %
% Sometimes we use standard definitions as is the case for          %
%       the titles.                                                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@title{}
\def\@author{}
\def\@authorEmail{}

\def\@hwDesigner{}
\def\@hwCoDesigner{}
\def\@company{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%       This function formats the titlepage using the   %
%       variables set before.                           %
% Variables used:                                       %
%                                       - dept          %
%                                       - title         %
%                                       - author        %
%                                       - degree        %
%                                                       %
% When one of those wasn't specified in the tex-file    %
% you will end up with an incomplete and non uniform    %
% titlepage                                             %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\titlep{%
        \thispagestyle{empty}
        \includegraphics[width=8cm]{pictures/opencores.jpg}
        \hfill
        \vspace{7cm}
        \begin{center}
                \bf{\Huge\textsf{\@title}}
        \end{center}
        \vfill
        \vspace{7cm}
        \includegraphics[width=\textwidth]{pictures/logos.jpg}
        \cleardoublepage
}

% Indentation
\setlength{\parindent}{0pt}
%\setlength{\parskip}{1ex plus 0.5ex minus 0.25ex}
\setlength{\abovedisplayskip}{12pt plus 3pt}
\setlength{\belowdisplayskip}{12pt plus 3pt}
\setlength{\abovedisplayshortskip}{12pt plus 3pt}
\setlength{\belowdisplayshortskip}{12pt plus 3pt}

%\parskip 1mm

%%%%%%%%%%%%%%%%%%%%%%%%&&&&&&&&&&&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BeforePreface adds the titlepage and when you                  %
% turned on the acknowledgements page, it will be generated too  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\preface{

        
        \pagenumbering{roman}
        \titlep
        
        \input{acknowl}
        \tableofcontents
       
        \cleardoublepage
        \pagenumbering{arabic}
}

% Start with pagestyle{headings} in case front matter isn't processed
\pagenumbering{arabic}
\makeatother

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.