I'm writing my master thesis and citing in the APA style. Below is a picture how it looks right now:
While it looks fine in general, I would like to alter the year and put it in brackets. Furthermore, erase the comma that comes after the author but leave the one that comes after the year so that it the final version looks like that:
Ruoff et al. (1953), p. 16
Because I copied the code to bring it to the near-final version I don't know how to alter it further to bring it to the wanted form.
The code that I have in the preamble looks as follows:
\documentclass[12pt]{report}
\usepackage{natbib}
\makeatletter
\newcommand*{\ibid}{Ibid.}
\let\@predcite\@empty
\let\@currcite\@empty
\def\citef{\kernel@ifnextchar[\citef@{\citef@[]}}
\def\citef@[#1]{\kernel@ifnextchar[{\citef@@[{#1}]}{\citef@@[][{#1}]}}
\def\citef@@[#1][#2]#3{%
\def\@currcite{#3}%
\unskip
\ifx\@currcite\@predcite
\footnote{#1 \ifx\tempa\@empty\unskip\fi%
\ibid\ifx\tempb\@empty\else\NAT@cmt #2\fi}%
\else%
\footnote{\citealp[#1][#2]{#3}}%
\fi
\gdef\@predcite{#3}%
}
\makeatother
\bibliographystyle{apalike}
Furthermore, I cite like this in the text (this is for the example shown in the picture above):
\citef[p. 16]{ruoff53}
In advance, thank you so much for your advice. Your help is greatly appreciated!
EDIT:
After Bernard's tips I have now the following code:
Can you give me further hints? I altered the body of my text to the following, bit it seems to be a complete mess...
\documentclass[12pt]{report}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{biblio.bib}
\usepackage{rotating}
\makeatletter
\newcommand*{\ibid}{Ibid.}
\let\@predcite\@empty
\let\@currcite\@empty
\def\citef{\kernel@ifnextchar[\citef@{\citef@[]}}
\def\citef@[#1]{\kernel@ifnextchar[{\citef@@[{#1}]}{\citef@@[][{#1}]}}
\def\citef@@[#1][#2]#3{%
\def\@currcite{#3}%
\unskip
\ifx\@currcite\@predcite
\footnote{#1 \ifx\tempa\@empty\unskip\fi%
\ibid\ifx\tempb\@empty\else\NAT@cmt #2\fi}%
\else%
\footnote{\citealp[#1][#2]{#3}}%
\fi
\gdef\@predcite{#3}%
}
\makeatother
\begin{document}
\chapter{Introduction}
\input{ma_chapters/introduction}
.
.
.
.
\bibliographystyle{apalike}
\bibliography{biblio}
biblatex-apa
.\footcite
command and a compatibility module, called with thenatbib
option. See §3.7.9 of biblatex's documentation for details. One of the advantages of biblatex is that it is easier to customise than a bibtex style.biblatex-apa
package implements the citation callout and formatting requirements of the currentAPA
manual, which (in BibTeX) is implemented via theapacite
package andapacite
bibliography style. Theapalike
bibliography style, which is what the OP appears to be using, is much older than theapacite
package, and it doesn't correspond all that closely to current APA formatting guidelines.