Generalhow to modify the entries of the bibliography

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
iperten
Posts: 40
Joined: Thu Jul 12, 2007 1:53 pm

how to modify the entries of the bibliography

Post by iperten »

Dear all,

I created my own bibliography style with "latex makebst", but I still want to "compress" it, to save some space.

Basically, I don't want the blank row between one entry and the following: do you have any idea how to do so?

Thank you.
Cheers, Mattia.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

how to modify the entries of the bibliography

Post by Juanjo »

I don't know if the fact that having defined your own style has varied the usual space between items in the bibliography. Anyway, the bibliography is typeset thanks to the thebibliography environment, as you can see in the bbl file. This environment is essentially a list, similar to enumerate, which is opened by the internal command \thebibliography and closed by \endthebibliography. A trick could consist in changing \thebibliography to delete the extra space added between entries in a list:

Code: Select all

\makeatletter
\let\thebibliographyOLD\thebibliography
\renewcommand{\thebibliography}[1]{\thebibliographyOLD{#1}\setlength{\itemsep}{0pt}}
\makeatother
Put this code in the preamble and try it.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: how to modify the entries of the bibliography

Post by Stefan Kottwitz »

Hi Juanjo,

good trick!
I just want to note that \makeatletter and \makeatother are unnecessary in this case.

Stefan
LaTeX.org admin
iperten
Posts: 40
Joined: Thu Jul 12, 2007 1:53 pm

Re: how to modify the entries of the bibliography

Post by iperten »

It worked, thank you very much!

Cheers,
MAttia.
Post Reply