-
Notifications
You must be signed in to change notification settings - Fork 0
/
LinksAndMetadata.tex
30 lines (24 loc) · 1.22 KB
/
LinksAndMetadata.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%%
%% This file uses the hyperref package to make your thesis have metadata embedded in the PDF,
%% and also adds links to be able to click on references and contents page entries to go to
%% the pages.
%%
\RequirePackage[hyphens]{url}
\usepackage[bookmarks,pagebackref,hidelinks]{hyperref}
%This (in combo with pagebackred in hyperref) adds 'cited: p. X' after each bibliography entry
\renewcommand*\backref[1]{\ifx#1\relax \else (cited: p. #1) \fi}
\AtBeginDocument{
\hypersetup{
anchorcolor=purple,
citecolor=green,
pdfsubject={A thesis upon the subject of Museum Lighting, Colour Constancy and Melanopsin.},
pdfkeywords={Museum Lighting, Colour Constancy, Chromatic Adaptation, Melanopsin},
pdfauthor={Daniel Garside},
pdftitle={Museum Lighting, Colour Constancy and Melanopsin},
}
}
\usepackage{hypernat} % allows hyperrefs pagebackref and natbibs sort&compress to play nice together. Without this the [n1-n4] only provides backrefs to n1 and n4, ignoring n2 and n3.
% Creates hyperlinks automatically from DOIs, and allows for use of \doi{} rather than \url{} which means it can handle non-allowed characters in DOIs.
\usepackage{doi}
% uses standard font for URLs
\urlstyle{same}