Fix hyperref options clash (#3847)
Avoids an options clash when loading a package (e.g. `tufte-latex`) that uses `hyperref` settings different from those in the template (introduced in <feffd7c64a
>).
This commit is contained in:
parent
64ff86514b
commit
ceda566a5e
1 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
||||||
|
\PassOptionsToPackage{hyphens}{url}
|
||||||
|
$if(colorlinks)$
|
||||||
|
\PassOptionsToPackage{usenames,dvipsnames}{color}
|
||||||
|
$endif$
|
||||||
|
%
|
||||||
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
||||||
$if(beamerarticle)$
|
$if(beamerarticle)$
|
||||||
\usepackage{beamerarticle} % needs to be loaded first
|
\usepackage{beamerarticle} % needs to be loaded first
|
||||||
|
@ -78,14 +84,10 @@ $else$
|
||||||
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
||||||
}
|
}
|
||||||
$endif$
|
$endif$
|
||||||
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
|
|
||||||
$if(verbatim-in-note)$
|
$if(verbatim-in-note)$
|
||||||
\usepackage{fancyvrb}
|
\usepackage{fancyvrb}
|
||||||
$endif$
|
$endif$
|
||||||
\usepackage[unicode=true]{hyperref}
|
\usepackage{hyperref}
|
||||||
$if(colorlinks)$
|
|
||||||
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
|
|
||||||
$endif$
|
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
$if(title-meta)$
|
$if(title-meta)$
|
||||||
pdftitle={$title-meta$},
|
pdftitle={$title-meta$},
|
||||||
|
|
Loading…
Reference in a new issue