Take the 2-minute tour ×
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.

I'm new to bibliographies in LaTeX and I want to be able to use the style as in this report. Basically Rawle et al. (2013) with and without parentheses so:

(Rawle et al. 2013)
Rawle et al.
Rawle et al. (2013)

I'm currently using revtex4 and a bibtex file but all that does is just put [1] as the citation!

Here's the master tex file:

\documentclass[twocolumn]{revtex4}
\begin{document}
   \title{S0 Galaxies} 
   \date{\today}
   \author{S. Read}
   \affiliation{Department of Physics}
   %\begin{abstract}
   %\end{abstract}
   \maketitle
   %\include{Introduction}

   \cite{dressler_rotational_1983}
   \bibliography{Zotero}
   \bibliographystyle{plainnat}
\end{document}

Here is the citation in the bib file (everything else in the bib file is just more citations):

@article{dressler_rotational_1983,
title = {Rotational velocities and central velocity dispersions for a sample of S0 galaxies},
volume = {265},
issn = {0004-{637X}},
url = {http://adsabs.harvard.edu/abs/1983ApJ...265..664D},
doi = {10.1086/160712},
abstract = {Field S0 galaxies have bulges exhibiting high rotational velocities similar to those of spiral galaxies, as well as rapidly rotating disks. The Tully-Fisher ({TF)} diagram for field S0s show significant scatter, which indicates that these galaxies are a heterogeneous group in light of disk kinematics. Their spread in the {TF} diagram is larger than that of all Hubble-type spirals, prompting as explanations for such large variation a variation in mass/light ratio, the contamination of disk light by bulge light, and the accidental inclusion of systems lacking true disks whose kinetic energy derives from velocity dispersion rather than rotation. While some S0 galaxies seem to have no disks, their light profiles mimic the extended envelope distinguishing S0s from ellipticals, and they are rotationally flattened. These transition objects may be useful in increasing the present understanding of the formation of spheroidal stellar systems.},
urldate = {2013-10-28},
journal = {The Astrophysical Journal},
author = {Dressler, A. and Sandage, A.},
month = feb,
year = {1983},
keywords = {{ANGULAR} {VELOCITY}, {DISK} {GALAXIES}, {ELLIPTICAL} {GALAXIES}, {GALACTIC} {ROTATION}, {GALACTIC} {STRUCTURE}, {HUBBLE} {DIAGRAM}, {LUMINOSITY}, {SPIRAL} {GALAXIES}, {STELLAR} {SYSTEMS}, {VELOCITY} {DISTRIBUTION}},
pages = {664--680},
file = {NASA/ADS Full Text PDF:C:\Users\User\AppData\Roaming\Zotero\Zotero\Profiles\1lsc8c6m.default\zotero\storage\UTE9FWCU\Dressler and Sandage - 1983 - Rotational velocities and central velocity dispers.pdf:application/pdf}
}

the \section{introduction} consists of: "S0"

share|improve this question
    
Welcome to TeX.SX! Maybe the natbib package is helpful. mirrors.ctan.org/macros/latex/contrib/natbib/natbib.pdf –  OSjerick Nov 24 '13 at 14:33
    
I've tried natbib (included in revtex4). But it keeps coming up with Package natbib Warning: There were undefined citations. –  Lucidnonsense Nov 24 '13 at 14:47
    
Can you provide a MWE? –  OSjerick Nov 24 '13 at 15:03
    
OK updating question... –  Lucidnonsense Nov 24 '13 at 15:28
1  
If you want an author-year citation in a revtex document you need to set the citation style for natbib, in your preamble add \setcitestyle{authoryear}. –  OSjerick Nov 24 '13 at 16:07

2 Answers 2

up vote 3 down vote accepted

The revtex class loads the natbib package with sort&compress option, that is for numerical citations. If you want an author-year citation in a revtex document, you need to set the citation style for natbib, this can be done adding \setcitestyle{authoryear}, using this command also you can set the whole style of a citation.

\documentclass[twocolumn]{revtex4}
\setcitestyle{authoryear,round}%Setting citation style. Changing braces to ()
\begin{document}
    \title{S0 Galaxies}
    \date{\today}
    \author{S. Read}
    \affiliation{Department of Physics}
    \maketitle
    \cite{dressler_rotational_1983}
    \bibliography{Zotero}
    \bibliographystyle{plainnat}
\end{document}

Also you can use the natbib basic commands \citet or \citep, or the extended citation commands to improve your citation.

share|improve this answer
    
Brilliant but why is there a massive gap between authors in multiple citations: \cite{dressler_rotational_1983,graham_concise_2005,bedregal_tullyfisher_2006}? pbrd.co/1jy8OnG –  Lucidnonsense Nov 24 '13 at 16:48
    
@Lucidnonsense Your document is a twocolumn document. ;) –  OSjerick Nov 24 '13 at 16:57
    
Ah! That makes sense. Thanks! One last question: why is it that why I use \include{Introduction} to put in my separate introduction tex file does everything spread out to 1 section per page? :) –  Lucidnonsense Nov 24 '13 at 17:02
1  
@Lucidnonsense You're welcome. Read this question: When should I use \input vs. \include?, that explains it very well. –  OSjerick Nov 24 '13 at 17:06
    
Ok now I see. Thanks for all your help! –  Lucidnonsense Nov 24 '13 at 17:08

The citation style you are looking for is called author-year. It's common in the humanities.

If you're using biblatex, you want to use the apalike style. If you're using plain old bibtex, you probably want to start with the apacite package.

share|improve this answer
    
If I try your suggestion with the OP's file, I get an error message and no authoryear-style citation. –  Mico Nov 24 '13 at 16:36

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.