summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-compactbib.html
blob: 83cdbab4994d7cf370254d884fc998f7d0a03a7f (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
44
45
46
47
48
<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/>The <i>compactbib</i> package has a similar effect.  Its primary
purpose is to produce two bibliographies, and it seems to preclude use
of BibTeX (though the package documentation, in the package file
itself, isn&rsquo;t particularly clear).
<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>compactbib.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archivemacros/latex/contrib/compactbib/compactbib.sty">macros/latex/contrib/compactbib/compactbib.sty</a>
<dt><tt><i>mdwlist.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/mdwtools/">browse the directory</a>)
<dt><tt><i>natbib.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/natbib.zip">macros/latex/contrib/natbib</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/natbib/">browse the directory</a>)
<dt><tt><i>savetrees.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/savetrees.zip">macros/latex/contrib/savetrees</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/savetrees/">browse the directory</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>