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 recently encountered the following problem. Here is a sample of tex file I used

\documentclass{article}
...
\begin{document}
...
\bibliography{mybib}
\bibliographystyle{plain}
\end{document}

However, the output will be something like

References
[1] ...
(a new line)
[2] ...

The new line inserted between two bibitems looked a little bit strange and I wish there is a way to remove it. It seems that amsart class has this feature as default but sadly I still prefer article class or else I need modify my tex file quit a lot.

So is there any way to remove the annoying new line within article class? thanks!

share|improve this question
add comment

1 Answer

A quick fix would be to use natbib and the plainnat bibliography style. Then you can set the length of the \bibsep to 0.

\documentclass{article}
\usepackage[numbers]{natbib}
\setlength{\bibsep}{0pt}
\begin{document}
...
\bibliographystyle{plainnat}
\bibliography{mybib}

\end{document}
share|improve this answer
    
Thanks for your suggestion. It did the work pretty well, just I didn't quite like the style of natbib... Nonetheless, I just googled a package called compactbib.sty which does exactly what I need after a few modifications. Thank you again:) –  shallpion Oct 9 '12 at 6:46
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.