本文共 5588 字,大约阅读时间需要 18 分钟。
Here are some tips on how to squeeze a little more onto LaTeX pages. Note that these methods may adversely affect the appearance of the document, so use them with caution. Rephrasing and editing your text often leads to better results.The 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 package. If you use the layout package then \layout will produce a test page showing the values of the variables that control page layout.
\newcommand{ \CLASSINPUTtoptextmargin}{ 2cm}
\newcommand{\CLASSINPUTbottomtextmargin}{2cm}
Example: \addtolength{\parindent}{-5mm}
Some useful variables are
The mdwlist package has a itemize* environment.
The 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 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 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.
A dirty trick
\hspace*{-4cm} before anything. But it seems not work well with two-column format.
转载地址:http://kxiqb.baihongyu.com/