
I am writing a small paper and I have to use two types of citations throughout the text.
The first one is 1)"(AUTHOR,Year)" and the second one is 2)"Author(Year)", while at the same time I am using, in the bibliography, apa style, so that it prints "Last Name, Initials (year). Title. etc".
I managed to succesfuly use only one of the citations styles (1 or 2) AND the bibliography, but I can't manage to use all three. I saw some solutions but they only used either all capital citations and a given type of bibliography style or, the other way around, non-capital citations and a given type of bibliography style.
I am using Mendeley to write my .bib file, Windows 8.1 and TexMaker.
Thanks in advance!
MWE:
\documentclass[12pt,a4paper]{article}
\usepackage[backend=biber,natbib=true,style=apa,maxbibnames=99,maxalphanames=99]{biblatex}
\usepackage{tablefootnote}
\addbibresource{C:/Users/Andre/Documents/Bibtex/library.bib}
\begin{document}
This should be the first type of citation "(AUTHOR et al.,Year)" but what I get is:\\ \citep{Alsina2017} \\
and this should be the second type of citation "Author et al.(Year)" and I sucessfuly get this:\\
\citet{Alsina2017} .
\newpage
\printbibliography
\end{document}
답변1
With a reasonably recent biblatex
the following works
\makeatletter
\renewcommand*{\mkbibnamefamily}[1]{%
\ifdefstring{\blx@delimcontext}{parencite}
{\textsc{#1}}
{#1}}
\makeatother
This checks if we are in a \parencite
and if so, prints the name in small caps. All other names are left as is.