Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 ?

share|improve this question
Submit your minimal working example to save time and energy. – xport Jun 23 '11 at 19:16

3 Answers

up vote 9 down vote accepted

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]{biblatex}

\addbibresource{biblio}

\begin{document}

\parencite{goossens93}
\nocite{*}
\printbibliography
\end{document}

the compilation process would be the same as before.

share|improve this answer

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.

share|improve this answer

I just saw that you have location "Germany", so you can speak German? If so see here: http://www.christian-straube.de/2011/06/12/eigene-styles-mit-biblatex-erstellen/ There you see how to use biblatex and adapt the style to your needs

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.