From eb8d87c312521d49d49c3cd482a633104bad8583 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 2 Oct 2018 01:07:14 +0000 Subject: ulthese (1oct18) [recommit] git-svn-id: svn://tug.org/texlive/trunk@48802 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ulthese/ulthese.cls | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex') 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} -- cgit v1.2.3