I am using a custom \textcite macro that I found somewhere. It works nicely except that it makes the opening paren of "Author (year)" part of the link (also colouring it blue) which is not desired.
This is likely just a minor change to the definition of the macro, but the solution eludes me (I don't get where the opening paren is added at all).
Opening paranthesis should not be part of link and should not be coloured.
(M)WE:
\documentclass{scrartcl}
\usepackage{csquotes}
\usepackage[backend=biber,
bibencoding=utf8,
hyperref=true,
natbib=true,
minnames=1, %% prevent truncation to year-only
backref=true, %% TODO REMOVE before final
bibstyle=apa,
citestyle=authoryear,
]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{bib.bib}
\DeclareCiteCommand{\textcite}
{\boolfalse{cbx:parens}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{textcite}}}
{\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}%
\multicitedelim}
{\usebibmacro{textcite:postnote}}
\usepackage[table,svgnames]{xcolor}
\definecolor{solblue}{HTML}{268BD2}
\usepackage[pdftex]{hyperref}
\hypersetup{
pdfhighlight = /P,
colorlinks=true,
urlcolor=solblue,
filecolor=solblue,
linkcolor=solblue,
citecolor=solblue,
raiselinks=true,
breaklinks,
unicode
}
\begin{document}
foobar \textcite{thesis_pockrandt} foobar
\end{document}
bib.bib:
@phdthesis{thesis_pockrandt,
author = {Christopher Maximilian Pockrandt},
title = {{Approximate String Matching: Improving Data Structures and Algorithms}},
year = {2019}
}


authoryear:bibstyle=apa, citestyle=authoryear,. That setup neither conforms to APA style (because you use a different citation style) nor is it particularly customisable (biblatex-apaimplements APA style as closely as possible, so it is much more complex than the standard styles). If you need APA style, load onlystyle=apa,. If you want generic author-year citations, it is better to just loadstyle=authoryear,`. – moewe Apr 08 '20 at 15:25bibencoding=utf8,is not required with a current TeX distribution, sincebiblatextries to guess the encoding of the TeX file and uses that for the.bibfile as well. In most current settings both will default to UTF-8.hyperref=true,offers little advantage of the default settinghyperref=auto,. With both settingsbiblatexwill produce links if and only if thehyperrefpackage is loaded. The only difference is thathyperref=true,will issue a warning if you fail to load thehyperrefpackage. – moewe Apr 08 '20 at 15:28style=authoryeardoes not solve the problem. – user188968 Apr 08 '20 at 22:08bibstyle=apa, citestyle=authoryear,or if we can use eitherstyle=apa,orstyle=authoryear,(and if so, which?). – moewe Apr 09 '20 at 05:00style=authoryearwould probably work. I have no formal requirements, but when I set this up initiallyapalooked better for the actual references section but shortened citations in the text weirdly. – user188968 Apr 09 '20 at 15:17