summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ulthese
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-07 19:54:40 +0000
committerKarl Berry <karl@freefriends.org>2019-05-07 19:54:40 +0000
commit21b648ddfb450fcb1e247f40a87105ba33002091 (patch)
tree730fb5b1cffce835130b1dceafa62b70a0ce872b /Master/texmf-dist/tex/latex/ulthese
parent55f179ed21bc5f0b33d07082310b5c6711891fcb (diff)
ulthese (7may19)
git-svn-id: svn://tug.org/texlive/trunk@51038 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ulthese')
-rw-r--r--Master/texmf-dist/tex/latex/ulthese/ulthese.cls24
1 files changed, 17 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/ulthese/ulthese.cls b/Master/texmf-dist/tex/latex/ulthese/ulthese.cls
index 233b6acdace..646babe406a 100644
--- a/Master/texmf-dist/tex/latex/ulthese/ulthese.cls
+++ b/Master/texmf-dist/tex/latex/ulthese/ulthese.cls
@@ -30,7 +30,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2009/09/24]
\ProvidesClass{ulthese}%
- [2018/09/30 v5.1 Universite Laval thesis and memoir class]
+ [2019/05/06 v5.2 Universite Laval thesis and memoir class]
\RequirePackage{ifxetex}
\newif\ifUL@babel \UL@babeltrue % charger babel?
\newif\ifUL@natbib \UL@natbibtrue % charger natbib?
@@ -41,6 +41,7 @@
\newif\ifUL@iscotutelle \UL@iscotutellefalse % thèse en cotutelle?
\newif\ifUL@isexam \UL@isexamfalse % examen de doctorat?
\newif\ifUL@isessay \UL@isessayfalse % essai de maîtrise?
+\newif\ifUL@isproject \UL@isprojectfalse % projet de recherche?
\newif\ifUL@hassubtitle \UL@hassubtitlefalse % document a un sous-titre?
\newif\ifUL@hastitlepage \UL@hastitlepagefalse % page titre utilisée?
\DeclareOption{nonatbib}{\UL@natbibfalse}
@@ -198,13 +199,19 @@
\else
\UL@isessaytrue
\fi}
+\DeclareOption{projet}{%
+ \UL@isprojecttrue
+ \renewcommand*{\UL@typenum}{0}
+ \def\UL@degree{\mbox{}}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
\ExecuteOptions{11pt,letterpaper}
\ProcessOptions\relax
\ifx\UL@typenum\empty
- \ClassError{ulthese}{%
- No thesis type specified}
- {Declare the thesis type as a class option.}
+ \ifUL@isproject\else
+ \ClassError{ulthese}{%
+ No thesis type specified}
+ {Declare the thesis type as a class option.}
+ \fi
\fi
\LoadClass[oneside]{memoir}
\ifxetex
@@ -345,6 +352,9 @@
\ifUL@isessay
\renewcommand*{\UL@typeofdoc}{Essai}
\fi
+\ifUL@isproject
+ \renewcommand*{\UL@typeofdoc}{Projet de recherche}
+\fi
\newcommand{\UL@docid}{%
{\UL@fontprogram\UL@typeofdoc\par
\ifnum\UL@typenum=2 \UL@program\par \fi}}
@@ -352,7 +362,7 @@
\ifcase\UL@typenum\relax% 0 standard
\vspace{96pt}
{\UL@fontprogram\UL@program}\par
- \UL@degree\par
+ \ifUL@isproject\vspace{\baselineskip}\else\UL@degree\fi\par
\vspace{112pt}
Qu\'ebec, Canada\par
\or% 1 multifacultaire
@@ -417,7 +427,7 @@
\addtolength{\UL@authorspacing}{-\baselineskip}
\fi}
\newcommand{\frontispice}{{%
- \ifUL@isexam\else\ifUL@isessay\else
+ \ifUL@isexam\else
\clearpage
\pagestyle{empty}
\SingleSpacing\setlength{\parskip}{0pt}
@@ -443,7 +453,7 @@
\vspace{\baselineskip}
\UL@director\par
\UL@codirector
- \fi\fi
+ \fi
\clearpage}}
\newcommand{\pagetitre}{{%
\UL@hastitlepagetrue