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.

Possible Duplicate:
How to use 1. (number followed by dot) format instead of [1] format in bibliography

I would like to use round parentheses () instead of square brackets [] for citations in a document that I'm working on. I figured out how to get them in the text using the round option with natbib. I can't figure out to have the generated bibliography to show () instead of [] when it lists the references. What do I need to change to fix the way it formats the bibliography?

share|improve this question
    
Similar to tex.stackexchange.com/questions/14183/… (and probably others). –  Joseph Wright Aug 13 '12 at 7:55
add comment

marked as duplicate by lockstep, Thorsten, cgnieder, percusse, Marco Daniel Aug 15 '12 at 15:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 15 down vote accepted

Add this to the preamble:

\makeatletter
\renewcommand\@biblabel[1]{(#1)}
\makeatother

A minimal example:

\begin{filecontents*}{xxyyzz.bib}
@article{author12,
    author = "The Author",
    title = "The Title",
    journal = "The journal",
    year = "2012"
}
\end{filecontents*}

\documentclass{article}
\usepackage[round,numbers]{natbib}

\makeatletter
\renewcommand\@biblabel[1]{(#1)}
\makeatother

\begin{document}

\cite{author12}

\bibliographystyle{plainnat}
\bibliography{xxyyzz}

\end{document}

The resulting document:

enter image description here

The above method will work whether using natbib or not; as Torbjørn T mentions, with natbib you can simply say

\renewcommand\bibnumfmt[1]{(#1)}

to obtain the same result.

share|improve this answer
7  
The builtin natbib way would be \renewcommand{\bibnumfmt}[1]{(#1)}. See section 2.12 Other formatting options, page 15 in the manual. –  Torbjørn T. Aug 13 '12 at 6:42
    
@TorbjørnT. I updated my answer adding your suggestion. Thank you! –  Gonzalo Medina Aug 13 '12 at 12:56
    
Thanks, Everyone! –  Phillip Aug 22 '12 at 22:05
    
@Phillip you're welcome! Don't forget to accept the answer (click on the checkmark to the left, below the vote count). –  Gonzalo Medina Aug 22 '12 at 22:09
add comment

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