summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-10-02 01:07:14 +0000
committerKarl Berry <karl@freefriends.org>2018-10-02 01:07:14 +0000
commiteb8d87c312521d49d49c3cd482a633104bad8583 (patch)
treec933047714c33c5577ec72da161f09346c350ab8 /Master/texmf-dist/tex
parentc800d2599d3338a87e8a51d99d4806b8fab99679 (diff)
ulthese (1oct18) [recommit]
git-svn-id: svn://tug.org/texlive/trunk@48802 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-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}