Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | Tips and Tricks for LaTeX, mostly concerned with squeezing space!
Space squeezing%% keep figures from going onto a page by themselves \renewcommand{\topfraction}{0.85} \renewcommand{\textfraction}{0.1} \renewcommand{\floatpagefraction}{0.75} %% make lists small \newcommand{\denselist}{\itemsep 0pt\topsep-6pt\partopsep-6pt} %% make section headings take up less space ("medium" can be replaced by "tiny", "small" or "big"--tiny is the normal font) \usepackage[medium,compact]{titlesec} %% a trick that makes the title take up less space for many style files (but not article) \addtolength{\titlebox}{-1.8cm} %% for article, and maybe other styles, to make the title take up less space you can add negative %% vspace directly to the title, author and date commands. Here's one configuration that worked for me: \title{\vspace{-2.5em} title...} \author{\vspace{-.5em} author...} \date{\vspace{-1.25em}} %% print a diagram showing the names of all constants related to margins etc. \usepackage{layout} \layout %% make a paragraph one line shorter without deleting any words! Put the following at the beginning, the wrap the paragraph in {} \looseness=-1 %% make the whole document shorter--this one is very powerful. Experiment with the number; 0.97 will do a lot and looks OK \renewcommand{\baselinestretch}{0.97} %% densify spacing in bibliographies \newcommand{\bibfix}{% PUT \bibfix in file.bbl after first line \setlength{\parsep}{\parskip}% \setlength{\itemsep}{0cm}% \setlength{\topsep}{\parskip}% \setlength{\parskip}{0cm}% \setlength{\partopsep}{0cm}% \setlength{\listparindent}{\parindent}% \setlength{\labelwidth}{10pt}% \setlength{\labelsep}{0pt}% \setlength{\leftskip}{0pt}% \setlength{\leftmargin}{0pt}% } %% change margins \setlength{\textwidth}{7in} \setlength{\textheight}{8.75in} \setlength{\oddsidemargin}{-0.25in} \setlength{\evensidemargin}{-0.25in} \setlength{\headsep}{10pt} %% get an actual tilde (~) in latex without resorting to $\sim$: \textasciitilde %% make vertical rubber space \vfill % this makes a pre-defined amount of rubber space. It's equivalent to \vspace\fill \vskip 10pt % this makes a fixed amount. It's a TeX command, so no curly braces. % compact font that is good for tables; can also use {9pt}{8pt} depending on style file \fontfamily{cmss}\fontseries{uc} \fontsize{10pt}{9pt} \selectfont % Sometimes the footnotes don't appear at the bottom of the page. Than you have to use \usepackage[bottom]{footmisc} Spacing displays
Useful links | |||||||
> > | The page that used to live here has moved to https://bugs.cs.ubc.ca/cgi-bin/twiki/view/BETA/LaTeX![]() | |||||||
-- Main.kevinlb - 13 Apr 2005 |