summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-compactbib.html
blob: 8675cc55670435a8e410f81de7d82930f08d5506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<head>
<title>UK TeX FAQ -- question label compactbib</title>
</head><body>
<h3>Reducing spacing in the bibliography</h3>
<p/>Bibliographies are, in fact, implemented as lists, so all the
confusion about <a href="FAQ-complist.html">reducing list item spacing</a> also
applies to bibliographies.
<p/>If the <i>natbib</i> package &lsquo;works&rsquo; for you (it may not if you are using
some special-purpose bibliography style), the solution is relatively
simple &mdash; add
<blockquote>
<pre>
\usepackage{natbib}
\setlength{\bibsep}{0.0pt}
</pre>
</blockquote><p>
to the preamble of your document.
<p/>Otherwise, one is into unseemly hacking of something or other.  The
<i>mdwlist</i> package actually does the job, but it doesn&rsquo;t work
here, because it makes a different-named list, while the name
&ldquo;<code>thebibliography</code>&rdquo; is built into LaTeX and
BibTeX.  Therefore, we need to 
<a href="FAQ-patch.html">patch the underlying macro</a>:
<blockquote>
<pre>
\let\oldbibliography\thebibliography
\renewcommand{\thebibliography}[1]{%
  \oldbibliography{#1}%
  \setlength{\itemsep}{0pt}%
}
</pre>
</blockquote><p>
The <i>savetrees</i> package performs such a patch, among a
plethora of space-saving measures: you can, in principle, suppress all
its other actions, and have it provide you a compressed bibliography
<em>only</em>.
<dl>
<dt><tt><i>mdwlist.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools/">browse</a>)
<dt><tt><i>natbib.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/natbib.zip">macros/latex/contrib/natbib</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/natbib.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/natbib/">browse</a>)
<dt><tt><i>savetrees.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/savetrees.zip">macros/latex/contrib/savetrees</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/savetrees.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/savetrees/">browse</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=compactbib">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=compactbib</a>
</body>