BibTeX, biblatex and biberBibliography with Citation in Author-Year Format

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
august_month
Posts: 12
Joined: Sat May 07, 2011 3:03 pm

Bibliography with Citation in Author-Year Format

Post by august_month »

Hello everyone,

I would like authors to be cited in the following format: Smith [1997].

Any ideas? Basic internet search did not return much.

Regards,
august_month


P.S.: I guess natbib offers some interesting functionality. Could anybody give me a link with example on how to use it (including citation and bibliography). It seems like bibliography needs to be in separate file. Sounds crazy to me.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Bibliography with Citation in Author-Year Format

Post by Johannes_B »

august_month wrote: Any ideas? Basic internet search did not return much.
I really don't believe you.
Have a look at TeX{SX} for a starting point. There are also linked questions on the right hand side. Plaese have a look.

btw: just typing latex bibliography into my standard search engines directs me to WikiBook: LaTeX/Bibliography Management.

There is the same advice: Use biblatex in conjunction with biber.

If you are speaking german by any chance, please also have a look at GoLaTeX: Erstellung von Literaturverzeichnissen
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
august_month
Posts: 12
Joined: Sat May 07, 2011 3:03 pm

Re: Bibliography with Citation in Author-Year Format

Post by august_month »

Thank you for the suggestion. It will take me some time to read through. However, at first glance none of links mention citation in the form: Smith [1997].

But I will keep reading.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Bibliography with Citation in Author-Year Format

Post by Johannes_B »

\usepackage[style=authoryear]{biblatex} should do the trick for you.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
august_month
Posts: 12
Joined: Sat May 07, 2011 3:03 pm

Bibliography with Citation in Author-Year Format

Post by august_month »

Thank you, again! I guess I need to read some basic stuff about biblatex. It seems to require to have bibliography in a separate file, while I used to have all my bibliography in the same file with main document.

Code: Select all

\documentclass[12pt,oneside,reqno,fleqn]{article}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage[style=authoryear]{biblatex}
\setlength{\mathindent}{\parindent}
\begin{document}
\begin{align}
y_1=ax_1+b\\
y_2=ax_2+b
\end{align}

\blindtext
blah, blah \cite{BL}

\begin{thebibliography}{BH}

\bibitem{BL} Black F. and Litterman R.:\textit{ Global Portfolio Optimization}, Financial Analysts Journal, September 1992, pp. 28–43

\end{thebibliography}
\end{document}
Last edited by Stefan Kottwitz on Wed Dec 11, 2013 10:51 am, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Bibliography with Citation in Author-Year Format

Post by Johannes_B »

In the following example, the external file is produced with filecontents. You can manage your references with Jabref.

Run latex (or pdflatex), biber, latex and latex again on the main file (without the ending), or just use latexmk

Code: Select all

\RequirePackage{filecontents}
\begin{filecontents}{my\jobname.bib}
 @book{ilias,
  author       = {Homer},
  title        = {Die Ilias},
  date         = 2004,
  translator   = {Schadewaldt, Wolfgang},
  introduction = {Latacz, Joachim},
  edition      = 3,
  publisher    = {Artemis \& Winkler},
  location     = {D{\"u}sseldorf and Z{\"u}rich},
  langid       = {german},
  sorttitle    = {Ilias},
  indextitle   = {Ilias, Die},
  shorttitle   = {Ilias},
  annotation   = {A German translation of the \emph{Iliad}. Note the
                  \texttt{translator} and \texttt{introduction} fields and the
                  format of the \texttt{location} field in the database
                  file. Also note the \texttt{sorttitle} and \texttt{indextitle}
                  fields},
}
\end{filecontents}
\documentclass[12pt,oneside,reqno,fleqn]{article}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage[style=authoryear]{biblatex}
\addbibresource{my\jobname.bib}

\setlength{\mathindent}{\parindent}
\begin{document}
\begin{align}
y_1=ax_1+b\\
y_2=ax_2+b
\end{align}

\blindtext
blah, blah \cite{ilias}

\printbibliography
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply