4

I want to change the default square brackets in the entries of the thebibliography environment to parentheses.

Sample:

% sample.tex

\documentclass{article}

\begin{document}
\pagestyle{empty}
\begin{thebibliography}{99}
\bibitem[Sample]{Sample} Sample.
\end{thebibliography}

\end{document}

The output is:

enter image description here

but I want:

(Sample) Sample

Is it possible to change it in "thebibliography" environment?

4
  • 1
    Without an MWE that's difficult to answer. You could use for example the natbib package, see reference sheet (options section) here merkel.zoneo.net/Latex/natbib.php
    – Ronny
    Commented Dec 18, 2012 at 10:11
  • But I think natbib doesn't work without BibTeX.
    – ABu
    Commented Dec 18, 2012 at 10:12
  • 3
    Well, there is the point with the MWE, i couldn't check that against your idea and didn't know, your approach should work without BibTeX. Could you please add a complete MWE? edit: I think it actually might, see en.wikibooks.org/wiki/LaTeX/Bibliography_Management
    – Ronny
    Commented Dec 18, 2012 at 10:17
  • I use BibTeX and Natbib...
    – Vivi
    Commented Dec 18, 2012 at 10:26

1 Answer 1

8

For the standard classes you have to change the internal command \@biblabel as follows:

\documentclass{article}

\makeatletter
\def\@biblabel#1{(#1)}
\makeatother

\begin{document}
\pagestyle{empty}
\begin{thebibliography}{99}
\bibitem[Sample]{Sample} Sample.
\end{thebibliography}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .