2021-09-07 11:19:44 +02:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
\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}
|
|
|
|
\DeclareOption*{\PackageWarning{mkessler-hypersetup}{Unknown '\CurrentOption'}}
|
|
|
|
\ProcessOptions\relax
|
|
|
|
|
|
|
|
%%%Hyperref and setup
|
|
|
|
\RequirePackage{hyperref} % Hyperlinks
|
|
|
|
\RequirePackage{amsmath} % Cleveref needs this
|
|
|
|
\RequirePackage{cleveref} % Better referencing
|
2021-09-08 16:17:30 +02:00
|
|
|
\hypersetup{colorlinks, citecolor=violet, urlcolor=blue!80!black, linkcolor=red!50!black, pdfauthor=\@author, pdftitle=\@title}
|
2021-09-07 11:19:44 +02:00
|
|
|
|