I have been using the \bibliographystyle{elsarticle-harv}
style for a long time, since I newly swtiched to biblatex
and it is only for natbib
, so how to modify the default biblatex
style or specifically the APA
style, so that making the citation style same as elsarticle-harv
.
The elsarticle-harv
author-year citation style:
\cite{LathamVOF:2012} -----> Latham (2012)
\citep{LathamDEM:2012} -----> (Latham,2012)
\cite{LathamM:2010} -----> Latham et al.(2010) % multi-author
\cite{LathamMeer:2011} -----> Latham and Meer (2011) % 2 authors
\cite{LathamVOF:2012,LathamDEM:2012} -----> Latham (2012a, b)
The new setting of biblatex
is given:
\usepackage{csquotes}
\usepackage[
style=apa,
backend=biber,
refsection=chapter,
natbib=true ] {biblatex}
\DeclareLanguageMapping{british}{british-apa}
However, the APA
sytle was like:
\cite{LathamVOF:2012} -----> Latham, 2012
\citep{LathamDEM:2012} -----> (Latham,2012) % <--- same
\cite{LathamM:2010} -----> Latham, A & B, 2010 % <--- too many cited authors!
\cite{LathamMeer:2011} -----> Latham & Meer, 2011 % & instead of and!
\cite{LathamVOF:2012,LathamDEM:2012} -----> Latham, 2012a,2012b
So how to make the year in ()
when using \cite{}
and lessen the authors (if>3) as FirstAuthor et al.
Edit1:
using \LetLtxMacro{\cite}{\citet}
makes year in ()
, however, the setting maxcitenames=2
seems not working. Besides, how to change the &
to and
?
MWE codes:
\documentclass[12pt, a4paper]{book}
\usepackage{hyperref}
\usepackage{color}
\usepackage[ ]{libertine}
\usepackage[ T1 ]{fontenc}
\definecolor{DarkBlue}{RGB}{0,51,153}
\hypersetup{
colorlinks,%
linktocpage =true,
citecolor=DarkBlue,%
filecolor=red,%
linkcolor=DarkBlue,%
urlcolor=green,
} % colorlinks setting
\usepackage[UKenglish]{babel}
\usepackage{csquotes}
\usepackage[
style=apa,
backend=biber,
refsection=chapter,
maxcitenames=2,
natbib=true ] {biblatex}
\DeclareLanguageMapping{british}{british-apa}
\LetLtxMacro{\cite}{\citet} % year in ()
\addbibresource{reffile.bib}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Introduction}
\citep[e.g.][]{Tsuji:2008, TsujiDEM:2008}
\cite{TsujiDEM2D:2008, TsujiDEM:2008}
\cite{Shirgaonkar:2009}.
\citep{Sorensen:2006}
\printbibliography[heading=subbibintoc]
\end{document}
and reffile.bib
@ARTICLE{Tsuji:2008,
author = {Tsuji, T. and Yabumoto, K. and Tanaka, T. and Peter, B.},
title = {Spontaneous structures in three-dimensional bubbling gas-fluidized bed by paralled {DEM-CFD} coupling simulation},
journal = { Powder Technology },
year = { 2008 },
volume = { 184 },
pages = { 132-140 },
number = {5 }
}
@ARTICLE{TsujiDEM:2008,
author = {Tsuji, T. },
title = {Spontaneous structures in three-dimensional bubbling},
journal = { Powder Technology },
year = { 2008 },
volume = { 11 },
pages = { 11-17 },
number = {2 }
}
@ARTICLE{TsujiDEM2D:2008,
author = {Tsuji, T. },
title = {Spontaneous structures in 2-{D} bubbling },
journal = { Powder Technology },
year = { 2008 },
volume = { 10 },
pages = { 13-19 },
number = { 7}
}
@ARTICLE{Shirgaonkar:2009,
author = {Shirgaonkar, A. A. and Maclver, M. A. and Patankar, N. A.},
title = {A new mathematical formulation and fast algorithm for fully resovled simulation of self-propulsion},
journal = {Journal of Computional Physics},
year = { 2009 },
volume = { 228 },
pages = { 2366-2390 },
number = {11 }
}
@ARTICLE{Haeri:2012,
author = {Haeri, S. and Shrimpton, J. S.},
title = {On the application of immersed boundary, fictitious domain and body-conformal mesh methods to many particle multiphase flows},
journal = {International Journal of Multiphase Flow},
year = { 2012 },
volume = { 40 },
pages = { 38-55 },
number = { 18}
}
@BOOK{Sorensen:2006,
author = {Sorensen, R. M.},
title = { {Basic Coastal Engineering} },
publisher = {Springer Science, New York},
edition = {Third},
year = { 2006 },
}
Output: Displaying 3-5 authors in citation looks really odd :(
, but maxcitenames
is not available in APA
The printed references style: Journal name and volume is italic
, how to make it as normal font; or just make the volume
number non-italic, because the combination 18(5) (where 5 is the number) looks weird.
For comparison, the original natbib
output is also attached: