summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/ulthese/ulthese.cls17
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/ulthese/ulthese.cls b/Master/texmf-dist/tex/latex/ulthese/ulthese.cls
index 5ada1363624..233b6acdace 100644
--- a/Master/texmf-dist/tex/latex/ulthese/ulthese.cls
+++ b/Master/texmf-dist/tex/latex/ulthese/ulthese.cls
@@ -30,10 +30,11 @@
%%
\NeedsTeXFormat{LaTeX2e}[2009/09/24]
\ProvidesClass{ulthese}%
- [2018/08/11 v5.0 Universite Laval thesis and memoir class]
+ [2018/09/30 v5.1 Universite Laval thesis and memoir class]
\RequirePackage{ifxetex}
\newif\ifUL@babel \UL@babeltrue % charger babel?
\newif\ifUL@natbib \UL@natbibtrue % charger natbib?
+\newif\ifUL@hyperref \UL@hyperreftrue % charger hyperref?
\newif\ifUL@chapterbib \UL@chapterbibfalse % charger chapterbib?
\newif\ifUL@sectionbib \UL@sectionbibfalse % option sectionbib de chapterbib?
\newif\ifUL@isthesis % programme est une thèse?
@@ -46,6 +47,7 @@
\DeclareOption{bibchapitre}{\UL@chapterbibtrue}
\DeclareOption{bibsection}{\UL@chapterbibtrue\UL@sectionbibtrue}
\DeclareOption{nobabel}{\UL@babelfalse}
+\DeclareOption{nohyperref}{\UL@hyperreffalse}
\newcommand*{\UL@ptsize}{}
\DeclareOption{10pt}{%
\PassOptionsToClass{10pt}{memoir}
@@ -229,8 +231,17 @@
\RequirePackage{babel}
\RequirePackage[autolanguage]{numprint}
\fi
-\RequirePackage{etoolbox}
-\AtEndPreamble{\RequirePackage[colorlinks,allcolors=ULlinkcolor]{hyperref}}
+\ifUL@hyperref
+ \RequirePackage{etoolbox}
+ \AtEndPreamble{\RequirePackage{hyperref}}
+\else
+ \AtBeginDocument{%
+ \@ifpackageloaded{hyperref}{\relax}{%
+ \ClassError{ulthese}{%
+ Package hyperref is required}
+ {Delete option nohyperref or load the package in the preamble.}}}
+\fi
+\PassOptionsToPackage{colorlinks,allcolors=ULlinkcolor}{hyperref}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage{textcomp}