moved hyperref setup into hook begindocument/before
This commit is contained in:
3
main.tex
3
main.tex
@@ -37,9 +37,6 @@
|
|||||||
%% LaTeX will search from left to right in the list, so you can put "cropped" versions
|
%% LaTeX will search from left to right in the list, so you can put "cropped" versions
|
||||||
%% in the graphics-cropped folder to speed up processing.
|
%% in the graphics-cropped folder to speed up processing.
|
||||||
|
|
||||||
\PassOptionsToPackage{hidelinks}{hyperref}%disable boxes around links
|
|
||||||
\usepackage{hyperref}%This must be the last package loaded
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%Information for the Title page %%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%Information for the Title page %%%%%%%%%%%%%%%%%
|
||||||
\logo{graphics/ru-logo}%Get RU logo from help.ru.is at
|
\logo{graphics/ru-logo}%Get RU logo from help.ru.is at
|
||||||
% https://uthelp.refined.site/space/UKB/312279050/Final+Project+%2F+Thesis+%2F+Dissertation+Template
|
% https://uthelp.refined.site/space/UKB/312279050/Final+Project+%2F+Thesis+%2F+Dissertation+Template
|
||||||
|
|||||||
@@ -338,8 +338,10 @@ in this publication does not imply, even in the absence of a specific statement
|
|||||||
%\makeevenhead{oldstyle}{\footnotesize{\thepage}}{}{\footnotesize{\thetitle}}
|
%\makeevenhead{oldstyle}{\footnotesize{\thepage}}{}{\footnotesize{\thetitle}}
|
||||||
|
|
||||||
%%%%%%%%%% Metadata for pdf file %%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%% Metadata for pdf file %%%%%%%%%%%%%%%%%%%%%%
|
||||||
\RequirePackage{hyperref}
|
\AddToHook{beforedocument/before}{%
|
||||||
\AtBeginDocument{
|
%% package hyperref needs to be last, so we use a hook
|
||||||
|
\PassOptionsToPackage{hidelinks}{hyperref}%disable boxes around links
|
||||||
|
\RequirePackage{hyperref}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
pdfauthor = {\theauthor{}},
|
pdfauthor = {\theauthor{}},
|
||||||
pdftitle = {\thetitle},
|
pdftitle = {\thetitle},
|
||||||
|
|||||||
Reference in New Issue
Block a user