0

The issue is that when I load the hyperref package in my LaTeX document, not the entire citation call-out is colored; specifically, only the publication year is colored, while the authors' names and any surrounding parentheses are not colored -- and not included in the hypertarget. Is there any way to change this so that the entire citation call-out is colored and becomes a hypertarget? Then in my document I could use \citet{} and \citeauthor{} to create citation call-outs that function as hypertargets the corresponding entries in the bibliography.

MWE:

Document class .cls lines 519-532:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Masters/Doctoral Thesis 
% Class File
% Version 1.6 (27/8/17)
%
% This class was downloaded from:
% http://www.LaTeXTemplates.com
%
% Authors:
% Vel (vel@latextemplates.com)
% Johannes Böttcher
%
% Notes:
% 1) This class file defines the structure and layout of the template file (main.tex).
% 2) It has been written in such a way that under most circumstances you should not need
% to edit it; updating it to a newer version will be harder. If you do make changes, please change the name of
% the file and add comments to make your changes more visible.
%
% Class license:
% LPPL v1.3c (http://www.latex-project.org/lppl)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%--------------------------------------------------------------------------------
%   CLASS DEFINITION AND PARAMETERS
%--------------------------------------------------------------------------------

\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\newcommand{\classname}{MastersDoctoralThesis}
\ProvidesClass{\classname}[2016/11/22 v1.5 LaTeXTemplates.com]
\providecommand{\baseclass}{book}
\RequirePackage{etoolbox}
\RequirePackage{xparse}
\newbool{nolistspace}
\newbool{chapteroneline}
\newbool{listtoc}
\newbool{toctoc}
\newbool{parskip}
\newbool{hyperrefsupport}
\booltrue{hyperrefsupport}
\newbool{headsepline}
\newbool{consistentlayout}

\DeclareOption{nohyperref}{\boolfalse{hyperrefsupport}}
\DeclareOption{nolistspacing}{\booltrue{nolistspace}}
\DeclareOption{liststotoc}{\booltrue{listtoc}}
\DeclareOption{chapterinoneline}{\booltrue{chapteroneline}}
\DeclareOption{toctotoc}{\booltrue{toctoc}}
\DeclareOption{parskip}{\booltrue{parskip}}
\DeclareOption{headsepline}{\booltrue{headsepline}}
\DeclareOption{consistentlayout}{\booltrue{consistentlayout}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}

\ProcessOptions\relax

\LoadClass{\baseclass}

%  Simple interface for the user  to customize the chapter titles 
\ProvideDocumentCommand{\abovechapterskip}{}{\vspace*{20pt}}
\ProvideDocumentCommand{\chapterbelowskip}{}{\vspace*{40pt}}
\ProvideDocumentCommand{\chapterinbetweenskip}{}{\vspace*{20pt}}
\ProvideDocumentCommand{\autodot}{}{}
\ProvideDocumentCommand{\mdtChapapp}{}{}
\ProvideDocumentCommand{\chapteralign}{}{\raggedright}
\ProvideDocumentCommand{\chapterfont}{}{\Huge\bfseries}
\ProvideDocumentCommand{\chapterprefixfont}{}{\LARGE\bfseries}
\DeclareDocumentCommand{\@makechapterhead}{ m }{%
    \abovechapterskip
    {\parindent \z@ \chapteralign \normalfont
        \ifnum \c@secnumdepth >\m@ne
        \if@mainmatter
        \ifbool{chapteroneline}{%
            \chapterfont \mdtChapapp\thechapter\autodot\enspace
        }{%
            \chapterprefixfont \@chapapp\space \thechapter
            \par\nobreak
            \chapterinbetweenskip
        }%
        \fi
        \fi
        \interlinepenalty\@M%
        \chapterfont #1\par\nobreak
        \chapterbelowskip
    }
    \thispagestyle{\chapter@p@gestyle}
}
\def\@makeschapterhead#1{%
    \abovechapterskip
    {\parindent \z@ \chapteralign
        \normalfont
        \interlinepenalty\@M
        \chapterfont  #1\par\nobreak
        \chapterbelowskip
    }
    \thispagestyle{\chapter@p@gestyle}
}


% Addchap provides unnumbered chapters with an entry in the table of contents as well as an updated header
\ProvideDocumentCommand{\addchap}{ s o m }{%
    \chapter*{#3}%
    \markboth{}{}%
    \IfBooleanTF{#1}{%
    }{%
        \IfNoValueTF{#2}{%
            \addchaptertocentry{#3}%
            \markboth{\MakeMarkcase{#3}}{\MakeMarkcase{#3}}%
        }{%
            \addchaptertocentry{#2}%
            \markboth{\MakeMarkcase{#2}}{\MakeMarkcase{#2}}%
        }%
    }%
}%

\ProvideDocumentCommand{\addsec}{ s o m }{%
    \section*{#3}%
    \markright{}%
    \IfBooleanTF{#1}{%
    }{%
        \IfNoValueTF{#2}{%
            \addcontentsline{toc}{section}{#3}%
            \markright{\MakeMarkcase{#3}}%%
        }{%
            \addcontentsline{toc}{section}{#2}%
            \markright{\MakeMarkcase{#2}}%
        }%
    }%
}%

%--------------------------------------------------------------------------------
%   CLASS OPTIONS
%--------------------------------------------------------------------------------

\ifbool{parskip}{\RequirePackage{parskip}} % If the parskip option is passed to the class, require the parskip package 


\ifbool{listtoc}{% If the liststotoc option has been passed to the class, add the lists to the table of contents
    \patchcmd{\listoftables}{\@starttoc{lot}}{%
        \addchaptertocentry{\listtablename}\@starttoc{lot}%
    }{}{}%
    \patchcmd{\listoffigures}{\@starttoc{lof}}{%
        \addchaptertocentry{\listfigurename}\@starttoc{lof}%
    }{}{}%
}

\ifbool{toctoc}{% If the toctotoc options has been passed to the class, add the table of contents to the table of contents
    \patchcmd{\tableofcontents}{\@starttoc{toc}%
}{%
    \addchaptertocentry{\contentsname}\@starttoc{toc}}{}{}%
}

\patchcmd{\tableofcontents}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\tableofcontents}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoffigures}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoffigures}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoftables}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoftables}{\MakeUppercase}{\MakeMarkcase}{}{}

% If the option `nolistspacing' is given, the spacing in the different lists is reduced to single spacing. This option is only useful, if the spacing of the document has been changed to onehalfspacing or doublespacing.
\ifbool{nolistspace}{
    \patchcmd{\listoffigures}{%
        \@starttoc{lof}
    }{%
        \begingroup%
        \singlespace\@starttoc{lof}\endgroup%
    }{}{}%
    \patchcmd{\listoftables}{%
        \@starttoc{lot}
    }{%
        \begingroup%
        \singlespace\@starttoc{lot}\endgroup%
    }{}{}%
    \patchcmd{\tableofcontents}{%
        \@starttoc{toc}
    }{%
        \begingroup%
        \singlespace\@starttoc{toc}\endgroup%
    }{}{}%
}{}


%--------------------------------------------------------------------------------
%   REQUIRED PACKAGES
%--------------------------------------------------------------------------------

\RequirePackage{babel} % Required for automatically changing names of document elements to languages besides english

\RequirePackage{scrbase} % Required for handling language-dependent names of sections/document elements

\RequirePackage{scrhack} % Loads fixes for various packages

\RequirePackage{setspace} % Required for changing line spacing

\RequirePackage{longtable} % Required for tables that span multiple pages (used in the symbols, abbreviations and physical constants pages)

\RequirePackage{siunitx} % Required for \SI commands

\RequirePackage{graphicx} % Required to include images
\graphicspath{{Figures/}{./}} % Specifies where to look for included images

\RequirePackage{booktabs} % Required for better table rules

\RequirePackage{caption} % Required for customising the captions
\captionsetup{justification=centerlast,font=small,labelfont=sc,margin=50pt}

%--------------------------------------------------------------------------------
%   DEFINE CUSTOM THESIS INFORMATION COMMANDS
%--------------------------------------------------------------------------------

\NewDocumentCommand{\thesistitle} { o m }{%
 \IfValueTF{#1}{\def\shorttitle{#1}}{\def\shorttitle{#2}}%
 \def\@title{#2}%
 \def\ttitle{#2}%
}
\DeclareDocumentCommand{\author}{m}{\newcommand{\authorname}{#1}\renewcommand{\@author}{#1}}
\NewDocumentCommand{\supervisor}{m}{\newcommand{\supname}{#1}}
\NewDocumentCommand{\examiner}{m}{\newcommand{\examname}{#1}}
\NewDocumentCommand{\degree}{m}{\newcommand{\degreename}{#1}}
\NewDocumentCommand{\addresses}{m}{\newcommand{\addressname}{#1}}
\NewDocumentCommand{\university}{m}{\newcommand{\univname}{#1}}
\NewDocumentCommand{\department}{m}{\newcommand{\deptname}{#1}}
\NewDocumentCommand{\group}{m}{\newcommand{\groupname}{#1}}
\NewDocumentCommand{\faculty}{m}{\newcommand{\facname}{#1}}
\NewDocumentCommand{\subject}{m}{\newcommand{\subjectname}{#1}}
\NewDocumentCommand{\keywords}{m}{\newcommand{\keywordnames}{#1}}

\newcommand{\checktoopen}{% New command to move content to the next page which prints to the next odd page if twosided mode is active  
    \if@openright\cleardoublepage\else\clearpage\fi
    \ifdef{\phantomsection}{\phantomsection}{}% The \phantomsection command is necessary for hyperref to jump to the correct page
}

\NewDocumentCommand{\bhrule}{}{\typeout{--------------------}}
\NewDocumentCommand{\tttypeout}{m}{\bhrule\typeout{\space #1}\bhrule}

\newcommand{\HRule}{\rule{.9\linewidth}{.6pt}} % New command to make the lines in the title page
\newcommand{\decoRule}{\rule{.8\textwidth}{.4pt}} % New command for a rule to be used under figures

\setcounter{tocdepth}{3} % The depth to which the document sections are printed to the table of contents
\ProvideDocumentCommand{\addchaptertocentry}{ m }{%
    \addcontentsline{toc}{chapter}{#1}%
}

%--------------------------------------------------------------------------------
%   COLOURS
%--------------------------------------------------------------------------------

\usepackage{xcolor} % Required for specifying custom colours

\colorlet{mdtRed}{red!50!black}

%--------------------------------------------------------------------------------
%   MARGINS
%--------------------------------------------------------------------------------

\RequirePackage{geometry}
\geometry{
    headheight=4ex,
    includehead,
    includefoot
}

\raggedbottom

%--------------------------------------------------------------------------------
%   PENALTIES
%--------------------------------------------------------------------------------

\doublehyphendemerits=10000 % No consecutive line hyphens
\brokenpenalty=10000 % No broken words across columns/pages
\widowpenalty=9999 % Almost no widows at bottom of page
\clubpenalty=9999 % Almost no orphans at top of page
\interfootnotelinepenalty=9999 % Almost never break footnotes

%--------------------------------------------------------------------------------
%   HEADERS AND FOOTERS
%--------------------------------------------------------------------------------

\RequirePackage[markcase=used]{scrlayer-scrpage}
\providepairofpagestyles{thesisSimple}{%
    \clearpairofpagestyles%
    \automark[chapter]{chapter}
    \ihead{\headmark}% Inner header
    \ohead[\pagemark]{\pagemark}% Outer header
}
\ifoot{}% Inner footer
\ofoot{}% Outer footer
\pagestyle{thesisSimple}
\providepairofpagestyles[thesisSimple]{thesis}{%
    \automark*[section]{}%
}
\providepairofpagestyles[thesisSimple]{review}{%
    \ofoot[\shorttitle/\authorname]{\shorttitle/\authorname}
    \ifoot[\today]{\today}
}
\pagestyle{thesis}
\ifbool{headsepline}{\KOMAoption{headsepline}{true}}{}
\PreventPackageFromLoading[\ClassError{\classname}{Package `fancyhdr' is
incompatible\MessageBreak with this class}{The pagesyles are defined 
    using package `scrlayer-scrpage', please consult the\MessageBreak 
KOMA-script documentation for details.}]{fancyhdr}


\newcommand{\blank@p@gestyle}{empty}
\newcommand{\chapter@p@gestyle}{plain}
\NewDocumentCommand{\blankpagestyle}{ m }{%
    \ClassWarning{\classname}{\string\blankpagestyle\space is
    obsolete,\MessageBreak use \string\setblankpagestyle \space  instead}\renewcommand{\blank@p@gestyle}{}{#1}
}
\NewDocumentCommand{\setblankpagestyle}{ m }{\renewcommand{\blank@p@gestyle}{#1}}
\NewDocumentCommand{\setchapterpagestyle}{ m }{\renewcommand{\chapter@p@gestyle}{#1}}

\DeclareDocumentCommand\cleardoublepage{}{\clearpage\if@twoside \ifodd\c@page\else
    \hbox{}
    \thispagestyle{\blank@p@gestyle}
    \newpage
    \if@twocolumn\hbox{}\newpage\fi\fi\fi%
}

%--------------------------------------------------------------------------------
%   ABBREVIATIONS PAGE DESIGN
%--------------------------------------------------------------------------------

\newcommand{\abbrevname}{List of Abbreviations}
\providecaptionname{english,british,american}{\abbrevname}{List of Abbreviations}
\providecaptionname{ngerman,german,austrian,naustrian}{\abbrevname}{Abk\"urzungsverzeichnis}
\NewDocumentEnvironment{abbreviations}{ m }{%
    \ifbool{nolistspace}{\begingroup\singlespacing}{}
    \ifbool{listtoc}{\addchap{\abbrevname}}{\addchap*{\abbrevname}}
    \begin{longtable}{#1}
    }{%
    \end{longtable}
    \addtocounter{table}{-1}% Don't count this table as one of the document tables
    \ifbool{nolistspace}{\endgroup}{}
}

%--------------------------------------------------------------------------------
%   ABSTRACT PAGE DESIGN
%--------------------------------------------------------------------------------

\DeclareDocumentCommand{\abstractauthorfont}{}{}
\DeclareDocumentCommand{\abstracttitlefont}{}{}
\newcommand{\byname}{by}
\newcommand{\abstractname}{Abstract}
\providecaptionname{german,ngerman,austrian,naustrian}{\byname}{von}
\providecaptionname{american,australian,british,canadian,english,newzealand,UKenglish,USenglish}{\byname}{by}
\ifbool{consistentlayout}{
    \DeclareDocumentEnvironment{abstract}{ O{} }{%
        \addchap*{\abstractname}%
        {\chapteralign\normalsize\abstractauthorfont \authorname \par}% Author name
        \vspace{\baselineskip}
        {\chapteralign\parbox{.7\linewidth}{\chapteralign\normalsize\itshape\abstracttitlefont\@title}\par}% Thesis title
        \bigskip\noindent\ignorespaces
    }%
    {}%end alt-abstract
}{%
    \DeclareDocumentEnvironment{abstract}{ O{\null\vfill} }{
        \checktoopen
        \tttypeout{\abstractname}
        #1%added to be able to have abstract more than one page long
        \thispagestyle{plain}
        \begin{center}
            {\normalsize \MakeUppercase{\univname} \par}% University name in capitals
            \bigskip
            {\huge\textit{\abstractname} \par}
            \bigskip
            {\normalsize \facname \par}% Faculty name
            {\normalsize \deptname \par}% Department name
            \bigskip
            {\normalsize \degreename\par}% Degree name
            \bigskip
            {\normalsize\bfseries \@title \par}% Thesis title
            \medskip
            {\normalsize \byname{} \authorname \par}% Author name
            \bigskip
        \end{center}
    }
    {
        \vfill\null
    }
}

\DeclareDocumentEnvironment{extraAbstract}{ O{\null\vfill} }{
    \checktoopen
    \tttypeout{\abstractname}
    #1%added to be able to have abstract more than one page long
    \thispagestyle{empty}
    \begin{center}
        {\normalsize \MakeUppercase{\univname} \par}% University name in capitals
        \bigskip
        {\huge\textit{\abstractname} \par}
        \bigskip
        {\normalsize \facname \par}% Faculty name
        {\normalsize \deptname \par}% Department name
        \bigskip
        {\normalsize \degreename\par}% Degree name
        \bigskip
        {\normalsize\bfseries \@title \par}% Thesis title
        \medskip
        {\normalsize \byname{} \authorname \par}% Author name
        \bigskip
    \end{center}
}
{
    \vfill\null
}

%--------------------------------------------------------------------------------
%   ACKNOWLEDGEMENTS PAGE DESIGN
%--------------------------------------------------------------------------------

\usepackage{xcolor}
\colorlet{mdtRed}{red!50!black}
\newcommand{\acknowledgementname}{Acknowledgements}
\providecaptionname{american,australian,british,canadian,english,newzealand,UKenglish,USenglish} {\acknowledgementname}{Acknowledgements} % Acknowledgement text for English countries
\providecaptionname{german,ngerman,austrian,naustrian}{\acknowledgementname}{Danksagung} % Acknowledgement text for Germanic countries

\ifbool{consistentlayout}{
    \DeclareDocumentEnvironment{acknowledgements}{}{%
        \tttypeout{\acknowledgementname}
        \addchap*{\acknowledgementname}
    }
}
{
    \DeclareDocumentEnvironment{acknowledgements}{}{%
        \checktoopen
        \tttypeout{\acknowledgementname}
        \thispagestyle{plain}
        \begin{center}{\huge\textit{\acknowledgementname}\par}\end{center}
    }
    {
        \vfil\vfil\null
    }
}

%--------------------------------------------------------------------------------
%   DECLARATION PAGE DESIGN
%--------------------------------------------------------------------------------

\newcommand{\authorshipname}{Declaration of Authorship}
\providecaptionname{american,australian,british,canadian,english,newzealand,UKenglish,USenglish}{\authorshipname}{Declaration of Authorship} % Declaration of Authorship text for English countries
\providecaptionname{german,ngerman,austrian,naustrian}{\authorshipname}{Eidesstattliche Erkl\"arung} % Declaration of Authorship text for Germanic countries

\ifbool{consistentlayout}{
    \DeclareDocumentEnvironment{declaration}{}{
        \addchap*{\authorshipname}
        }{}%
}{
    \DeclareDocumentEnvironment{declaration}{}{
        \checktoopen
        \tttypeout{\authorshipname}
        \thispagestyle{plain}
        \null\vfil
        {\noindent\huge\bfseries\authorshipname\par\vspace{10pt}}
    }{}
}

%--------------------------------------------------------------------------------
%   DEDICATION PAGE DESIGN
%--------------------------------------------------------------------------------

\ifbool{consistentlayout}{
    \DeclareDocumentCommand{\dedicatory}{
        m O{\vspace*{.7\textheight} }  }{
            \checktoopen\tttypeout{Dedicatory}
            \markboth{}{}
            #2
            {\hfill\parbox{.4\textwidth}{\flushright#1\par}}
        }
}{
    \newcommand\dedicatory[1]{
        \checktoopen
        \tttypeout{Dedicatory}
        \null\vfil
        \thispagestyle{plain}
        \begin{center}{\Large\slshape #1}\end{center}
        \vfil\null
    }
}


%--------------------------------------------------------------------------------
%   PHYSICAL CONSTANTS PAGE DESIGN
%--------------------------------------------------------------------------------

\newcommand{\constantsname}{Physical Constants}
\providecaptionname{english,british,american}{\constantsname}{Physical Constants}
\providecaptionname{ngerman,german,austrian,naustrian}{\constantsname}{Physikalische Konstanten}

\NewDocumentEnvironment{constants}{ m }{%
    \ifbool{nolistspace}{\begingroup\singlespacing}{}
    \ifbool{listtoc}{\addchap{\constantsname}}{\addchap*{\constantsname}}
    \begin{longtable}{#1}
    }{%
    \end{longtable}
    \addtocounter{table}{-1}% Don't count this table as one of the document tables
    \ifbool{nolistspace}{\endgroup}{}
}

%--------------------------------------------------------------------------------
%   SYMBOLS PAGE DESIGN
%--------------------------------------------------------------------------------

\newcommand{\symbolsname}{List of Symbols}
\providecaptionname{english,british,american}{\symbolsname}{List of Symbols}
\providecaptionname{ngerman,german,austrian,naustrian}{\symbolsname}{Symbolverzeichnis}

\NewDocumentEnvironment{symbols}{ m }{%
    \ifbool{nolistspace}{\begingroup\singlespacing}{}
    \ifbool{listtoc}{\addchap{\symbolsname}}{\addchap*{\symbolsname}}
    \begin{longtable}{#1}
    }{%
    \end{longtable}
    \addtocounter{table}{-1}% Don't count this table as one of the document tables
    \ifbool{nolistspace}{\endgroup}{}
}

%--------------------------------------------------------------------------------

\ifbool{hyperrefsupport}{% If the nohyperref class option has not been specified
\AtEndPreamble{\RequirePackage{hyperref}
\hypersetup{pdfpagemode={UseOutlines},
bookmarksopen=false,
bookmarksopenlevel=0,
hypertexnames=false,
colorlinks=true,% Set to false to disable coloring links
citecolor=Violet,% The color of citations
linkcolor=red,% The color of references to document elements (sections, figures, etc)
urlcolor=mdtRed,% The color of hyperlinks (URLs)
pdfstartview={FitV},
unicode,
breaklinks=true,
}

\pdfstringdefDisableCommands{% If there is an explicit linebreak in a section heading (or anything printed to the pdf-bookmarks), it is replaced by a space
    \let\\\space%
}
    }
}{%nothing
}

%--------------------------------------------------------------------------------

\endinput
% lazyLizardTracer

main document pages 79 and at the end:

\PassOptionsToPackage{dvipsnames}{xcolor}
\documentclass[
12pt, % The default document font size, options: 10pt, 11pt, 12pt
%oneside, % Two side (alternating margins) for binding by default, uncomment to switch to one side
english, % ngerman for German
singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing
%draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated)
%nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single
%liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents
%toctotoc, % Uncomment to add the main table of contents to the table of contents
parskip, % Uncomment to add space between paragraphs
%nohyperref, % Uncomment to not load the hyperref package
headsepline, % Uncomment to get a line under the header
%chapterinoneline, % Uncomment to place the chapter title next to the number on one line
consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
openany,
]{MastersDoctoralThesis} % The class file specifying the document structure

\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc}    % Output font encoding for international characters

\usepackage[export]{adjustbox}

\usepackage{
    amsmath,                % Math equations
    amssymb,                % Extended symbols
    mathtools,              % amsmath Extension
    amsfonts,               % Additional fonts
    bm,                     % Make math symbols bold
    mathpazo}           % Adds Pazo fonts (see doc.)

\usepackage{lscape}     % Package for setting a page landscape
\usepackage{wrapfig}
\usepackage{graphicx}

\usepackage{tikz}
    \usetikzlibrary{
        shapes, 
        arrows,
        matrix,
        positioning,
        cd,
        fit,
        calc,
        arrows.meta,
        intersections,
        through, 
        backgrounds, 
        patterns,
        decorations.pathreplacing}

\usepackage[makeroom]{cancel}
\usepackage{lipsum,subcaption}
\usepackage{float}
\usepackage[colorlinks=true, citecolor=Violet]{hyperref}


\usepackage{fourier}
\usepackage{nicefrac}

\usepackage{listings}
    \lstloadlanguages{[LaTeX]TeX, [primitive]TeX,fortran}
    \lstset{language={[LaTeX]TeX},
        escapeinside={{(*@}{@*)}}, 
        gobble=0,
        stepnumber=1,numbersep=5pt, 
        numberstyle={\footnotesize\color{gray}},%firstnumber=last,
        breaklines=true,
        framesep=5pt,
        basicstyle=\small\ttfamily,
        showstringspaces=false,
        keywordstyle=\ttfamily\textcolor{blue},
        stringstyle=\color{orange},
        commentstyle=\color{black},
        rulecolor=\color{gray!10},
        breakatwhitespace=true,
        showspaces=false,  % shows spacing symbol
        backgroundcolor=\color{gray!15}}

\usepackage[singlelinecheck=false]{caption} % Use to align tables
    \setlength{\parindent}{0pt}
    \setlength{\parskip}{1em}
    \renewcommand\thesection{\arabic{section}}

% Package to use bibliography
\usepackage[backref=true,backend=bibtex,style=authoryear,natbib=true,hyperref=true]{biblatex}
\addbibresource{Bibliography/Biblio.bib}
%\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)

% \addbibresource{Biblio.bib} % The filename of the bibliography

\usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography


% Packages to deal with tables
\usepackage{array}
    \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage{diagbox}
\usepackage{multirow}
\usepackage{bigstrut}

% Package to deal with theorems, definitions, etc.
% Help in: https://www.sharelatex.com/learn/Theorems_and_proofs
\usepackage{amsthm}
    \theoremstyle{plain}
    \newtheorem{theorem}{Theorem}[section]
    \newtheorem{corollary}{Corollary}[theorem]
    \newtheorem{lemma}[theorem]{Lemma}
    \newtheorem{proposition}[theorem]{Proposition}
    \theoremstyle{remark}
    \newtheorem*{remark}{Remark}
    \newtheorem*{homework}{Homework}
    \theoremstyle{definition}
    \newtheorem{definition}{Definition}[section]
    \renewcommand\qedsymbol{$\blacksquare$}


%--------------------------------------------------------------------------------
%   MARGIN SETTINGS
%--------------------------------------------------------------------------------

\geometry{
    paper=a4paper, % Change to letterpaper for US letter
    inner=2.5cm, % Inner margin
    outer=3.8cm, % Outer margin
    bindingoffset=.5cm, % Binding offset
    top=1.5cm, % Top margin
    bottom=1.5cm, % Bottom margin
    %showframe, % Uncomment to show how the type block is set on the page
}

%--------------------------------------------------------------------------------
%   THESIS INFORMATION
%--------------------------------------------------------------------------------

\thesistitle{Collective Bargaining in Spain} % Your thesis title, this is used in the title and abstract, print it elsewhere with \ttitle
\supervisor{Dr. Joan Llull} % Your supervisor's name, this is used in the title page, print it elsewhere with \supname
%\examiner{Dr. Jaume \textsc{Garc\'{i}a Villar}} % Your examiner's name, this is not currently used anywhere in the template, print it elsewhere with \examname
\degree{IDEA} % Your degree name, this is used in the title page and abstract, print it elsewhere with \degreename
\author{Rub\'{e}n \textsc{ P\'{e}rez Sanz}} % Your name, this is used in the title page and abstract, print it elsewhere with \authorname
\addresses{} % Your address, this is not currently used anywhere in the template, print it elsewhere with \addressname

\subject{Oligopoly Unions} % Your subject area, this is not currently used anywhere in the template, print it elsewhere with \subjectname
\keywords{Collective barganing, agreemetns and contracts} % Keywords for your thesis, this is not currently used anywhere in the template, print it elsewhere with \keywordnames
\university{\href{http://www.uab.cat/}{Universitat Aut\`{o}noma de Barcelona}} % Your university's name and URL, this is used in the title page and abstract, print it elsewhere with \univname
\department{\href{http://pareto.uab.es/}{Unitat de Fonaments de l'Anàlisi Econòmica}} % Your department's name and URL, this is used in the title page and abstract, print it elsewhere with \deptname
\group{\href{http://idea.uab.es/}{IDEA Programme}} % Your research group's name and URL, this is used in the title page, print it elsewhere with \groupname
\faculty{\href{http://faculty.university.com}{La Facultat d'Economia i Empresa}} % Your faculty's name and URL, this is used in the title page and abstract, print it elsewhere with \facname

\AtBeginDocument{
\hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title
\hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
\hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords
}

\begin{document}

in cases as extreme as France union preferences include more people than only affiliation. In a recent paper, \citet{Krussel2016} try to fill this gap assuming the union bargains on behalf of the whole active workforce, employed or unemplo

\end{document} 
Mico
  • 506,678
  • The template you employ loads the biblatex package with the options natbib=true and hyperref=true; that's what's giving you the hyperlinking setting -- year but not author name(s) in citation callouts -- you appear to dislike. You may want to ask yourself if your document requires all (or even any) of the many capabilities of the biblatex package. If it does not, a simple solution would be to cease loading the biblatex package and, in its place, to load the natbib package and, of course, select a suitable bibliography style that lets you generate authoryear-type citation call-outs. – Mico Feb 25 '20 at 12:23
  • 1
    Related: https://tex.stackexchange.com/questions/437717/how-to-change-the-color-of-first-half-of-parenthesis-in-citation and https://tex.stackexchange.com/questions/528574/missing-endcsname-inserted-in-thesis-template and https://tex.stackexchange.com/questions/366996/how-to-change-a-color-of-a-specific-citation and https://tex.stackexchange.com/questions/253927/color-citation-using-biblatex-in-text-references-issue-with-postnote-bibl – Cicada Feb 25 '20 at 13:24
  • See https://tex.stackexchange.com/q/15951/35864. – moewe Feb 25 '20 at 16:59
  • Any news here? Did https://tex.stackexchange.com/q/15951/35864 help? – moewe Mar 14 '20 at 16:54
  • Hi there thanks for your comments, I finally change to natbib and worked, Thanks!!! – Rubén Pérez Sanz Mar 16 '20 at 16:21

0 Answers0