I've tried using the authordate2
style of bibtex which is really close of the styles I wanted for my dissertation but this package is really old. Trying with default styles the code worked well but with the authordate2
style it says that \cite{myref}
is an Undefined control sequence
.
So I discovered biblatex
and with it the citation styles already had the parentheses. I just wanted to change the "and" by "&", put the "et al" in italics and to wrap the name and the year by a hyperlink.
The bibliography style is a little more tricky but I believe someone more experienced in biblatex
macros and stuff would know.
I'd like to get citation and bibliography styles like these:
Citation
(Lastname & Lastname2, year)
(Lastname et al, year; Lastname2 et al, year; Lastname & Lastname2, year)
Bibliography
[Lastname & Lastname2, year] F.M. Lastname & F.M. Lastname2. (2003). Paper Title . Journal Name . 98(462):470–487.
[Lastname et al, year] F.M. Lastname, F.M. Lastname2 & F.M. Lastname3. (2003). Paper Title . Journal Name . 98(462):470–487.
Here's a minimal example from what I did until now.
\documentclass{article}
\usepackage{hyperref}
\usepackage[brazil]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear,backref=true,hyperref=true]{biblatex}
\begin{filecontents}{\jobname.bib}
@ARTICLE{citationA,
Author = {Fulano Tal de Rio de Janeiro and Fulano Tal de Sao Paulo },
Year = {2001},
Title = {Paper Title},
Journal = {Jornal A}
}
@ARTICLE{citationB,
Author = {Fulano Tal de Rio de Janeiro and Fulano Tal de Sao Paulo and Fulano Tal de Recife },
Year = {2002},
Title = {Paper Title},
Journal = {Jornal B}
}
@ARTICLE{citationB2,
Author = {Fulano Tal de Rio de Janeiro and Fulano Tal de Sao Paulo and Fulano Tal de Recife },
Year = {2002},
Title = {Paper Title},
Journal = {Jornal C}
}
@ARTICLE{citationC,
Author = {Fulano Tal de Recife},
Year = {2003},
Title = {Paper Title},
Journal = {Jornal D}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{citationA}
\cite{citationB}
\cite{citationB2}
\cite{citationC}
\parencite{citationA,citationC}
\parencite{citationB2}
\nocite{*}
\printbibliography
\end{document}
PARTIAL SOLUTION
\documentclass{article}
\usepackage{hyperref}
\usepackage[brazil]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear,maxnames=2,maxbibnames=3,backref=true,hyperref=true,dashed=false,firstinits=true]{biblatex}
\renewcommand*{\finalnamedelim}{\addspace\&\space}
\renewcommand*{\nameyeardelim}{\addcomma\space}
\renewbibmacro{in:}{}
\renewbibmacro*{name:andothers}{%
\ifboolexpr{
test {\ifnumequal{\value{listcount}}{\value{liststop}}}
and
test \ifmorenames
}
{\ifnumgreater{\value{liststop}}{1}
{\finalandcomma}
{}%
\andothersdelim\bibstring[\emph]{andothers}}
{}}
\renewbibmacro*{cite}{%
\printtext[bibhyperref]{%
\DeclareFieldAlias{bibhyperref}{default}%
\iffieldundef{shorthand}
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
{\usebibmacro{cite:label}%
\setunit{\addspace}}
{\printnames{labelname}%
\setunit{\nameyeardelim}}%
\usebibmacro{cite:labelyear+extrayear}}
{\usebibmacro{cite:shorthand}}}}
\DeclareCiteCommand{\textcite}%
{\boolfalse{cbx:parens}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{%
\DeclareFieldAlias{bibhyperref}{default}%
\usebibmacro{textcite}%
\iffieldundef{postnote}%
{\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}}
{}}}
{\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}%
\multicitedelim}
{\iffieldundef{postnote}
{}
{\usebibmacro{textcite:postnote}}}
\DeclareFieldFormat[article]{title}{\textbf{#1}}
\renewcommand{\baselinestretch}{1.25}
\DeclareNameAlias{sortname}{first-last}
\addbibresource{jobname.bib}
\begin{document}
\cite{citationA}
\cite{citationB}
\cite{citationB2}
\cite{citationC}
\parencite{citationA,citationC}
\parencite{citationB2}
\nocite{*}
\printbibliography
\end{document}
Updated Output.
Missing only the links in front like this figure.