diff --git a/mkessler-hypersetup.sty b/mkessler-hypersetup.sty index cf581a9..e6dd56d 100644 --- a/mkessler-hypersetup.sty +++ b/mkessler-hypersetup.sty @@ -2,9 +2,10 @@ \ProvidesPackage{mkessler-hypersetup}[2021-09-06 - Package for setting up hyperref, cleveref and some default hyperref colors] %%%%%%%%%%%%%%%%%% -\newif\ifenglish\englishtrue -\DeclareOption{german}{\englishfalse} -\DeclareOption{english}{\englishtrue} + +\newif\ifmkessler@hypersetup@cleveref\mkessler@hypersetup@clevereffalse +\DeclareOption{cleveref}{\mkessler@hypersetup@clevereftrue} + \DeclareOption*{\PackageWarning{mkessler-hypersetup}{Unknown '\CurrentOption'}} \ProcessOptions\relax @@ -14,7 +15,9 @@ \def\mkessler@hypersetup@exec{ \RequirePackage{hyperref} % Hyperlinks - \RequirePackage{cleveref} % Better referencing + \ifmkessler@hypersetup@cleveref + \RequirePackage{cleveref} % Better referencing + \fi \hypersetup{colorlinks, citecolor=violet, urlcolor=blue!80!black, linkcolor=red!50!black, pdfauthor=\@author, pdftitle=\ifdef{\@course}{\@course}{\@title}} } diff --git a/todo.md b/todo.md index dd58b51..aa97858 100644 --- a/todo.md +++ b/todo.md @@ -7,3 +7,12 @@ ## castel-figures - Add option for include path of inkscape figures + + + +### Option clashes +There is an option clash (since TexLive 2018) between thmtools, IEEEtrantools and cleveref. + To (temporarily) fix this, the hypersetup package provides cleveref only as an option 'cleveref'. Only load this if you are not using both of the abve + +See also +https://tex.stackexchange.com/questions/515560/incompatibility-of-thmtools-ieeetrantools-and-cleveref-in-tex-live-2018-2019