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 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?

share|improve this question
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 Dec 18 '12 at 10:11
    
But I think natbib doesn't work without BibTeX. –  Peregring-lk Dec 18 '12 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 Dec 18 '12 at 10:17
    
I use BibTeX and Natbib... –  Vivi Dec 18 '12 at 10:26
add comment

1 Answer

up vote 7 down vote accepted

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}
share|improve this answer
add comment

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.