make cleveref an option
This commit is contained in:
parent
60d479601e
commit
3ee9531f76
2 changed files with 16 additions and 4 deletions
|
@ -2,9 +2,10 @@
|
||||||
\ProvidesPackage{mkessler-hypersetup}[2021-09-06 - Package for setting up hyperref, cleveref and some default hyperref colors]
|
\ProvidesPackage{mkessler-hypersetup}[2021-09-06 - Package for setting up hyperref, cleveref and some default hyperref colors]
|
||||||
%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\newif\ifenglish\englishtrue
|
|
||||||
\DeclareOption{german}{\englishfalse}
|
\newif\ifmkessler@hypersetup@cleveref\mkessler@hypersetup@clevereffalse
|
||||||
\DeclareOption{english}{\englishtrue}
|
\DeclareOption{cleveref}{\mkessler@hypersetup@clevereftrue}
|
||||||
|
|
||||||
\DeclareOption*{\PackageWarning{mkessler-hypersetup}{Unknown '\CurrentOption'}}
|
\DeclareOption*{\PackageWarning{mkessler-hypersetup}{Unknown '\CurrentOption'}}
|
||||||
\ProcessOptions\relax
|
\ProcessOptions\relax
|
||||||
|
|
||||||
|
@ -14,7 +15,9 @@
|
||||||
|
|
||||||
\def\mkessler@hypersetup@exec{
|
\def\mkessler@hypersetup@exec{
|
||||||
\RequirePackage{hyperref} % Hyperlinks
|
\RequirePackage{hyperref} % Hyperlinks
|
||||||
|
\ifmkessler@hypersetup@cleveref
|
||||||
\RequirePackage{cleveref} % Better referencing
|
\RequirePackage{cleveref} % Better referencing
|
||||||
|
\fi
|
||||||
\hypersetup{colorlinks, citecolor=violet, urlcolor=blue!80!black, linkcolor=red!50!black, pdfauthor=\@author, pdftitle=\ifdef{\@course}{\@course}{\@title}}
|
\hypersetup{colorlinks, citecolor=violet, urlcolor=blue!80!black, linkcolor=red!50!black, pdfauthor=\@author, pdftitle=\ifdef{\@course}{\@course}{\@title}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
9
todo.md
9
todo.md
|
@ -7,3 +7,12 @@
|
||||||
|
|
||||||
## castel-figures
|
## castel-figures
|
||||||
- Add option for include path of inkscape 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
|
||||||
|
|
Loading…
Reference in a new issue