Code: Select all
\documentclass{article}
\usepackage{filecontents}%
%\usepackage[style=authoryear,natbib]{biblatex}
\usepackage[style=apa,backref=true,backend=biber,natbib=true,hyperref=true] {biblatex}
\usepackage[american]{babel}
\DeclareLanguageMapping{american}{american-apa}
\begin{filecontents*}{apabibli1.bib}
@article{Sampson1989,
author = {Sampson, R J and Groves, W B},
year = {1989},
title = {Community structure and crime: testing social-disorganization theory},
volume = {94},
number = {4},
journal = {Am J Soc},
pages = {774}
}
@book{Rijsbergen1979,
author = {Rijsbergen, C V},
year = {1979},
title = {Information retrieval},
address = {London},
publisher = {Butter Worths}
}
\end{filecontents*}
\addbibresource{apabibli1.bib}
\renewcommand*{\labelnamepunct}{\addspace}
\usepackage{xpatch}
\xpatchbibmacro{author}
{%
\newunit\newblock
}
{%
\setunit{\addspace}\newblock
}{}{}
\xpatchbibmacro{name:apa:last-first}
{%
\addcomma\addlowpenspace\mkbibnamefirst{#3}\isdot
}
{%
\addlowpenspace\mkbibnamefirst{#3}\isdot
}{}{}
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addspace\thinspace}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}
\setunit{\addspace}}%
\printfield{volume}%
\printfield{number}%
\setunit{\addspace}\newblock
\usebibmacro{issuename}%
\newunit}
\AtBeginBibliography{\renewcommand*{\finalnamedelim}{%
\ifthenelse{\value{listcount}>\maxprtauth}
{}
{\ifthenelse{\value{liststop}>2}
{\addcomma\space}%
{\addcomma\space}}}}
\renewcommand\bibinitperiod{}
\renewcommand\bibinitdelim{}
\renewcommand\bibpagespunct{\addcolon\space}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat[article]{volume}{\apanum{#1}}
\DeclareFieldFormat{title}{\iffieldequalstr{titleisdescription}{true}
{\mkbibbrackets{#1}}{#1\isdot}}
\renewcommand*{\finentrypunct}{\relax}
\setlength{\bibhang}{1.2em}
\usepackage[colorlinks]{hyperref}
\usepackage{hyperref}
\hypersetup{
colorlinks = true,
citecolor = blue,
linkcolor = blue,
urlcolor=blue
}
\begin{document}
\citealt{Sampson1989, Rijsbergen1979}\\
\citet{Sampson1989, Rijsbergen1979}\\
\citep{Sampson1989, Rijsbergen1979}\\
\citeauthor{Sampson1989}
\nocite{*}
\printbibliography
\end{document}
