|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help > LaTeX |
The savetrees package executes many of these methods, packing as much text as possible onto each page.
The a4 package will give you narrower margins. To have more control use the geometry package. If you use the layout package then \layout will produce a test page showing the values of the variables that control page layout.
Prof. Koenraad De Smedt's suggested that by using \linespread{0.9} (which multiplies the normal space between lines by a factor 0.9) you can often get satisfactory results.
There are many variables in LaTeX determining lengths. Two commands to change them are \addtolength and \setlength. The dimensions understood by LaTeX include cm, mm, in and pt. Variables can be set to a negative value.
Example: \addtolength{\parindent}{-5mm}
Some useful variables are
The mdwlist package has a itemize* environment.
The paralist package offers a compactitem environment (that puts less space between items) and an inparaenum environment (that doesn't create new paragraphs for each item).
Using "\begin{figure} ... \centering ..." rather than "\begin{figure} ... \begin{center} ..." saves space. Sometimes excessive white space around a figure isn't LaTeX's fault. It may be that a postscript figure contains a big white border. ps2epsi can be used to produce a minimal bounding box, or you can use the clipping feature of the \includegraphics command of the graphicx package.
By default, LaTeX doesn't like to fill more than 0.7 of a text page with tables and graphics, nor does it like too many figures per page. This behaviour can be changed by placing lines like the following before \begin{document}
\renewcommand\floatpagefraction{.9}
\renewcommand\topfraction{.9}
\renewcommand\bottomfraction{.9}
\renewcommand\textfraction{.1}
\setcounter{totalnumber}{50}
\setcounter{topnumber}{50}
\setcounter{bottomnumber}{50}
To reduce the size of captions use the caption package.
If you have a big table you might wish to bracket it by \begin{small} ... \end{small}.
You can reduce the gap between table columns by using \setlength{\tabcolsep}{1pt}. It may also be possible to scale a whole table as you can a piece of graphics, using \resizebox{!}{5cm}{\begin{tabular} ... \end{tabular}} though you need to view the output as postscript.
Unless you want to redefine the sectioning commands yourself, it's worth looking at the titlesec package, which offers space-saving alternatives to the standard sectioning commands (especially \chapter). Even just \usepackage[small,compact]{titlesec} might save you quite a lot.
To reduce the linespacing in a bibliography (the same idea works for contents pages) use the setspace package
\begin{spacing}{0.9}
\tableofcontents
\end{spacing}
...
\begin{spacing}{0.9}
\bibliographystyle{plain}
\bibliography{refs}
\end{spacing}
If you're using the natbib package (recommended) then you can
change the value of \bibsep to control the gap between items.
Otherwise put the
following (suggested by Axel Reichert) in the preamble
\let\oldthebibliography=\thebibliography
\let\endoldthebibliography=\endthebibliography
\renewenvironment{thebibliography}[1]{%
\begin{oldthebibliography}{#1}%
\setlength{\parskip}{0ex}%
\setlength{\itemsep}{0ex}%
}%
{%
\end{oldthebibliography}%
}
You can use the same idea to modify other environments - theglossary,
etc.
| | computing help | LaTeX | |