Tags:
create new tag
view all tags
-- HosnaJabbari - 10 May 2007

%% 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 "small" or "big")

\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.

Spacing displays

  • Spacing in displays. Usually it's best to leave the spacing up to
TeX?. However, if explicit horizontal spacing is needed (for example, to set an expression like (n \to \infty) apart from the rest of the display, or to separate two equations on the same line), \quad in most cases generates the right amount of space. Don't try to create spacing with a bunch of explicit spaces ("\ "); the spacing generated in this way is usually not optimal, and the explicit spaces will likely have to be removed (and possibly replaced by \quad) when the paper is typeset at the publisher's end.

  • Avoid blank lines before or after a display, unless you really want to
start a new paragraph: It is tempting to surround displayed math material by blank lines in the source file, to make them stand out and easier to locate. However, this is usually wrong, since blank lines are interpreted as paragraph breaks, may generate some additional vertical spacing and cause the next line of text to be indented - something you usually don't want. If you want to set off displays in your source file, do so by inserting a line with comment symbols, such as %%%%% equation 3.1 %%%%%%%%%%%%%% before and/or after the display.

  • Correcting underful vboxes and bad page breaks. By default, TeX? does
not break pages inside display environments such as align. If a paper has many multiline formulas, this may cause "underful vboxes", which can look very poor if the badness (reported by tex in the log file) is a few thousand. One way to remedy this is to put the command \allowdisplaybreaks in the preamble. However, this may cause some poor pagebreaks which may have to be fixed. A compromise solution is to use \allowdisplaybreaks locally, on the individual displays that cause problems: {\allowdisplaybreaks \begin{align} ... \end{align} }. The best solution is to prevent this problem by avoiding excessively long displays (say, with five or more lines). It is often not hard to break up a very long display into two, for example by inserting a phrase like "By the Cauchy-Schwarz inequality, the last expression is at most" in the middle of the overlong display, followed by the remaining lines of the display.

  • Multiline subscripts on sums or integrals. Use the \substack{...}
command, which works much like the \sb ... \endsb pair in amstex. It is much easier to use, and produces better looking output than an array environment or a construct using \atop (derived from plain tex).

Useful links

Topic revision: r1 - 2007-05-10 - HosnaJabbari
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback