After using Google for 1 hour I gave up. All I wanted is: This style for my citation :
(First AUTHOR et al. , YEAR)
Why is this so complicated ?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityAfter using Google for 1 hour I gave up. All I wanted is: This style for my citation :
(First AUTHOR et al. , YEAR)
Why is this so complicated ?
You have to take into account that you need to choose both the style for the citations in the document, and the layout for the section containing the bibliographical entries.
Try this sample document (let's call it test.tex
):
\documentclass{article}
\usepackage[round]{natbib}
\begin{document}
\citep{goossens93}
\nocite{*}
\bibliographystyle{abbrvnat}
\bibliography{biblio}
\end{document}
with bibliographical database biblio.bib
(saved in the same directory containing test.tex
):
@book{goossens93,
author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
title = "The Latex Companion A",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351",
url=" www.ctan.org"
}
@book{knuth79,
author = "Donald E. Knuth",
title = "Tex and Metafont, New Directions in Typesetting",
year = "1979",
publisher = "American Mathematical Society and Digital Press",
address = "Stanford"
}
@book{lamport94,
author = "Leslie Lamport",
title = "Latex: A Document Preparation System",
year = "1994",
edition = "Second",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@misc{patashnik88,
author = "Oren Patashnik",
title = "{B}ib{T}e{X}ing. Documentation for General {B}ib{T}e{X} users",
year = "1988",
howpublished = "Electronic document accompanying BibTeX
distribution"
}
@techreport{rahtz89,
author = "Sebastian Rahtz",
title = "A Survey of {T}ex and graphics",
year = "1989",
institution = "Department of Electronics and Computer Science",
address = "University of Southampton, UK",
number = "CSTR 89-7"
}
compile in the following way:
(pdf)latex test
bibtex test
(pdf)latex test
(pdf)latex test
Refer to the documentation of the natbib package for further information.
Another option would be to use the biblatex package; in this case, the file test.tex
would have the following aspect (using bibtex
as back.end):
\documentclass{article}
\usepackage[style=authoryear,maxnames=1,backend=bibtex]{biblatex}
\addbibresource{biblio}
\begin{document}
\parencite{goossens93}
\nocite{*}
\printbibliography
\end{document}
the compilation process would be the same as before. Newer versions of biblatex
use biber
as default backend, so if backend=bibtex
is not specified, the compilation sequence becomes
(pdf)latex test
biber test
(pdf)latex test
You should try to use biblatex. It allows you to choose from many different styles. I think for you it would be authoryear with the parencite command, which put the citation between parenthesis.
Here is an example that works for me. If you want more citations just add more \bibitem
\documentclass[14pt,a4paper]{extreport}
\begin{document}
This "spaghetti code of the 21st century" \cite{MT08} is reminiscent of software development in the 1970s
\begin{thebibliography}{99}
\bibitem{MT08} “Surveying the digital future,” UCLA Internet report,http://www.digitalcenter.org/pdf/InternetReportYearThree.pdf.
\end{thebibliography}
\end{document}