# LaTeX Style for PhD Thesis

This page provides the LaTeX styles for the PhD thesis of the SPIM doctoral school.

All the following LaTeX styles are based on the set of packages tex-upmethodology. This set of packages allows to write books and reports with very useful LaTeX macros.

Caution: The provided LaTeX styles are written to be used with PdfLaTeX. No warranty is given when they are used with other LaTeX tool (latex, tex...)

The following styles are been provided without warranty. But, you are welcome to give feedbacks by posting an issue on tex-upmethodology on GitHub or on tex-templates on GitHub, or by sending an email to Stéphane GALLAND.

## Constraint

To use the PhD thesis style provided on this page, you must follows these points:

1. Install a LaTeX distribution that is providing the pdflatex tool (teTeX, TeXlive, MikTeX...).
2. Install and use the LaTeX library (tex-)upmethodology (see below for details).
3. The minimum version of tex-upmethodology is the 20130815.
Caution: Many standard LaTeX distributions, such as TeXLive, may provide a too old version of the upmethodology library. In this case, you must install the recommended version.
4. The documentation of the upmethodology library is available on the official website. You must read this documentation before reporting a bug in the style.

## Installation of tex-upmethodology

Prior to the installation of the LaTeX styles for PhD thesis, you must install the packages from tex-upmethodology. Four ways are available:

1. Using the upmethodology packages from your LaTeX distribution based on the CTAN (usually TeXLive or MikTeX).
• You should have nothing special to do for installing because the packages are already installed in your LaTeX distribution.
• But you should check if the version of tex-upmethodology in your CTAN-based LaTeX distribution is compatible with the PhD thesis style (see constraint section above).
2. Using Debian/Ubuntu Linux packages.
• The packages are available on the Debian repository provided by Arakhnê.org.
• Open your package manager (synaptic, or another), search for tex-upmethodology, and install it.
3. Manual installation of the packages into your LaTeX distribution.
• Download the tar.gz file from the Arakhnê page.
• Unpack the file upmethodology-XXXXX.tar.gz located in the upstream directory.
• Copy the lastly unpacked files into your LaTeX distribution, or inside the directory where your main LaTeX file is located. Please read the documentation of your LaTeX distribution for details on the installation process (TeXLive, MikTeX).
4. Manual installation from Github (for experts).

The packaging for the other operating systems is not supported by our research group. Please contact the SPIM staff for that.

## Installation of the PhD Thesis Style upon tex-upmethodology

Three ways are available to install one of the PhD thesis styles (given below) upon the library tex-upmethodology:

1. Using Debian/Ubuntu packages.
• The packages are available on the Debian repository provided by Arakhnê.org.
• Open your package manager (synaptic, or another)
• Search for one of tex-templates-utbm-phdthesis, tex-templates-ufc-phdthesis, or tex-templates-ub-phdthesis.
• If you want to use LyX, additionally search for one of tex-templates-utbm-phdthesis-lyx, tex-templates-ufc-phdthesis-lyx, or tex-templates-ub-phdthesis-lyx.
• Install the package(s).
2. Manual installation of the packages into your LaTeX distribution.
• Download the tar.gz file below.
• Unpack the file tex-templates-XXXX.tar.gz located in the upstream directory.
• Copy the unpacked files into your LaTeX distribution, or inside the directory where your main LaTeX file is located. Please read the documentation of your LaTeX distribution for details on the installation process (TeXLive, MikTeX).
3. Manual installation from Github (for experts).

The packaging for the other operating systems is not supported by our research group. Please contact the SPIM staff for that.

## Example of a LaTeX File

The following LaTeX code is a simple document that should permits to start to write your PhD thesis.

%% Use the standard UP-methodology class
%% with French language.
%%
%% You may specify the option 'twoside' or 'oneside' for
%% the document.
%%
%% See the documentation tex-upmethodology on
%% http://www.arakhne.org/tex-upmethodology/
%% for details about the macros that are provided by the class and
%% to obtain the list of the packages that are already included.

%%--------------------
%% Uncomment only for SPIM-UTBM, change the language
%% according to the main language of your document:
%% french or english.
\documentclass[french]{spimutbmphdthesis}

%% Uncomment only for SPIM-UFC, change the language
%% according to the main language of your document:
%% french or english.
%\documentclass[french]{spimufcphdthesis}

%% Uncomment only for SPIM-UB, change the language
%% according to the main language of your document:
%% french or english.
%\documentclass[french]{spimubphdthesis}

%%--------------------
%% The TeX code is entering with UTF8
%% character encoding (Linux and MacOS standards)
\usepackage[utf8]{inputenc}

%%-------------------
%% You want to use the NatBib extension
%\usepackage[authoryear]{natbib}

%%--------------------
%% Include the 'multibib' package to enable to
%% have different types of bibliographies in the
%% document (see at the end of this template for
%% an example with a personnal bibliography and
%% a general bibliography)
%%
%% Each bibliography defined with 'multibib'
%% adds a chapter with the corresponding
%% publications (in addition to the chapter for
%% the standard/general bibliography).
%% CAUTION:
%% There is no standard way to do include this type of
%% personnal bibliography.
%% for example.
%\usepackage{multibib}

%% Define a "type" of bibliography, here the PERSONAL one,
%% that is supported by 'multibib'.
%\newcites{PERSO}{Liste de mes publications}

%% To cite one of your PERSONAL papers with the style
%% of the PERSONAL bibliography: \citePERSO{key}
%% To force to show one of your PERSONAL papers into
%% the PERSONAL bibliography, even if not cited in the
%% text: \nocitePERSO{key}

%% REMARK: When you are using 'multibib', you
%% must compile the PERSONAL bibliography by hand.
%% For example, the sequence of commands to run
%% when you had defined the bibliography PERSO is:
%%   $pdflatex my_document.tex %%$ bibtex my_document.aux
%%   $bibtex PERSO.aux %%$ pdflatex my_document.tex
%%   $pdflatex my_document.tex %%$ pdflatex my_document.tex

%%--------------------
%% Add here any other packages that are needed for your document.
%\usepackage{eurosim}
%\usepackage{amsmath}

%%--------------------
%% Set the title, subtitle, defense date, and
%% the registration number of the PhD thesis.
%% The optional parameter is the subtitle of the PhD thesis.
%% The first mandatory parameter is the title of the PhD thesis.
%% The second mandatory parameter is the date of the PhD defense.
%% The third mandatory parameter is the reference number given by
%% the University Library after the PhD defense.
\declarethesis[Sous-titre]{Titre}{17 septembre 2012}{XXX}

%%--------------------
%% Set the author of the PhD thesis

%%--------------------
%% Add a member of the jury
\addjury{Incroyable}{Hulk}{Rapporteur}{Professeur à l'Université de Gotham City \\ Commentaire secondaire}
\addjury{Super}{Man}{Examinateur}{Professeur à l'Université de Gotham City}
\addjury{Bat}{Man}{Directeur de thèse}{Professeur à l'Université de Gotham City}

%%--------------------
%% Change style of the table of the jury
%% \Set{jurystyle}{put macros for the style}
%\Set{jurystyle}{\small}

%%--------------------
%% Set the laboratory where the thesis was made

%%--------------------
%% Set the English abstract
\thesisabstract[english]{This is the abstract in English}

%%--------------------
%% Set the English keywords. They only appear if
%% there is an English abstract
\thesiskeywords[english]{Keyword 1, Keyword 2}

%%--------------------
%% Set the French abstract
\thesisabstract[french]{Ceci est le résumé en français}

%%--------------------
%% Set the French keywords. They only appear if
%% there is an French abstract
\thesiskeywords[french]{Mot-cl\'e 1, Mot-cl\'e 2}

%%--------------------
%% Change the layout and the style of the text of the "primary" abstract.
%% If your document is written in French, the primary abstract is in French,
%% otherwise it is in English.
%\Set{primaryabstractstyle}{\tiny}

%%--------------------
%% Change the layout and the style of the text of the "secondary" abstract.
%% If your document is written in French, the secondary abstract is in English,
%% otherwise it is in French.
%\Set{secondaryabstractstyle}{\tiny}

%%--------------------
%% Change the layout and the style of the text of the "primary" keywords.
%% If your document is written in French, the primary keywords are in French,
%% otherwise they are in English.
%\Set{primarykeywordstyle}{\tiny}

%%--------------------
%% Change the layout and the style of the text of the "secondary" keywords.
%% If your document is written in French, the secondary keywords are in English,
%% otherwise they are in French.
%\Set{secondarykeywordstyle}{\tiny}

%%--------------------
%% Change the speciality of the PhD thesis
%\Set{speciality}{Informatique}

%%--------------------
%% Change the institution
%\Set{universityname}{Universit\'e de Technologie de Belfort-Montb\'eliard}

%%--------------------
%% Add the logos of the partners or the sponsors on the front page

%%--------------------
%% Change the header and the foot of the pages
%% You must include the package "fancyhdr" to
%% Left footer
%\lfoot{}
%% Center footer
%\cfoot{}
%% Right footer
%\rfoot{}

\begin{document}

%%--------------------
%% The following line permits to add a chapter for "acknowledgements"
%% at the beginning of the document. This chapter has not a chapter
%% number (using the "star-ed" version of \chapter) to prevent it to
\chapter*{Remerciements}

%%--------------------
\tableofcontents

%%--------------------
%% The content of the PhD thesis
\mainmatter

\chapter{Introduction}

\section{Section 1}

blablabla

%% Citation from the general bibliography
%\cite{key}

%% Citation from the PERSO bibliography
%\citePERSO{key}

\chapter{Conclusion}

blablabla

%%--------------------
%% Start the end of the thesis
\backmatter

%%--------------------
%% Bibliography

%% PERSONAL BIBLIOGRAPHY (use 'multibib')

%% Change the style of the PERSONAL bibliography
%\bibliographystylePERSO{plain}

%% Add the chapter with the PERSONAL bibliogaphy.
%% The name of the BibTeX file may be the same as
%% the one for the general bibliography.
%\bibliographyPERSO{biblio.bib}

%% Below, include a chapter for the GENERAL bibliography.
%% It is assumed that the standard BibTeX tool/approach
%% is used.

%% GENERAL BIBLIOGRAPHY

%% To cite one of your PERSONAL papers with the style
%% of the PERSONAL bibliography: \cite{key}

%% To force to show one of your PERSONAL papers into
%% the PERSONAL bibliography, even if not cited in the
%% text: \nocite{key}

%% Uncomment the following line to change the style of
%% the GENERAL bibliogaphy.
%\bibliographystyle{plain}

%% Link the GENERAL bibliogaphy to a BibTeX file.
\bibliography{biblio.bib}

%%--------------------
%% List of figures and tables

%% Include a chapter with a list of all the figures.
%% In French typograhic standard, this list must be at
%% the end of the document.
\listoffigures

%% Include a chapter with a list of all the tables.
%% In French typograhic standard, this list must be at
%% the end of the document.
\listoftables

%%--------------------
%% Appendixes
\appendix

\chapter{Premier chapitre de mes annexes}

\end{document}

## LyX Editor and Layout

LyX is a document processor that encourages an approach to a writing based on the structure of your documents (WYSIWYM) and not simply their appearance (WYSIWYG). LyX combines the power and flexibility of TeX/LaTeX with the ease of use of a graphical interface.

This section provides the guidelines to use the PhD thesis style from the SPIM doctoral school in the LyX editor.

### Installation of the LyX Layout

First, you must install the LaTeX style as it is explained in the previous sections.

Second, if you are not using the Debian/Ubuntu packages, you must copy one of the the following files into the LyX layout directory (usually /usr/share/lyx/layouts on Unix). These files are located in the archive file that you can dowload above.

• spimphdthesis.inc for all the styles; and
• spimutbmphdthesis.layout for the UTBM style; or
• spimufcphdthesis.layout for the UFC style; or
• spimubphdthesis.layout for the UB style.

### Creation of the LyX Document

1. Create a new document
2. Select the PhD thesis style. Open the menu Document > Parameters. In the dialog box, select the section Document Class. In the combo-box, select one of the classes: ED-SPIM PhD Thesis - UTBM, ED-SPIM PhD Thesis - UFC, or ED-SPIM PhD Thesis - UB (according to the layout installed on your computer).

Now you are able to write your PhD thesis. Several styles were added in LyX to enter the different fields required by the PhD thesis style:

• Title/Titre: Enter the title of your PhD thesis
• SubTitle/SousTitre: Enter the subtitle of your PhD thesis.
• Author/Auteur: Enter your first name and your common name, in this order.
• Date: Enter the date of the defense of your PhD thesis.
• FrenchAbstract: Enter the abstract in French.
• FrenchKeywords: Enter the key-words in French.
• EnglishKeywords: Enter the key-words in English.
• PhDReviewer: Enter the full name and the institution of a reviewer of your PhD thesis (separated by a coma).
• PhDJuryPresident: Enter the full name and the institution of the president of the jury of your PhD thesis (separated by a coma).
• PhDJuryMember: Enter the full name and the institution of a member of the jury of your PhD thesis (separated by a coma).
• PhDDirector: Enter the full name and the institution of your PhD thesis director (separated by a coma).
• PhDCoDirector: Enter the full name and the institution of your PhD thesis co-director (separated by a coma).
• LibraryNumber: Enter the number of your PhD thesis given by the University Library.
• Speciality: Enter the speciality of your PhD thesis.

Example of a zipped LyX document, which is based on the SPIM PhD thesis style: Example.lyx.gz‎.