[Tex/LaTex] Harvard Bibliography

bibliographiesharvard-style

I'm currently using the harvard package for the bibliography but I need to add the cite in the bibliography.

Code

\usepackage{harvard}
\harvardparenthesis{square}

Output

Output

Want

How can I obtain the [Mon05] part like this:

Want

Best Answer

It seems like you actually don't want a "Harvard bibliography" but an alphabetic style. You also talk about a "long cite". Here is how I would do alphabetic citations (with Biblatex), and I include a \textcite in the example, which maybe is what you were lacking.

\begin{filecontents}{\jobname.bib}
@Book{book1,
  author =       {U. K. Nown},
  year =         2012,
  title =   {Book1}}

@Book{book2,
  author =       {A. U. Thor},
  year =         2013,
  title =   {Book2}}

@Book{book3,
  author =       {A. U. Thor},
  year =         2014,
  title =   {Book3}}
\end{filecontents}
\documentclass{article}
\usepackage[style=alphabetic]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}
Bla bla \cite{book1}.
Bla bla \cite{book2}.
Bla bla \cite{book3}.

But \textcite{book2} shows that \( 2+2=4 \).

\printbibliography

\end{document}