On 12/17/2009 12:38 PM, Anders Host-Madsen wrote:
This is really a latex question, but I hope someone can answer anyway.

I redefine sections with the latex preamble
\newcommand{\tmpsection}[1]{}
\let\tmpsection=\section
\renewcommand{\section}[1]{\vspace{-0.15in}\tmpsection{#1}\vspace{-0.1in}}

It works as it's supposed to, but it makes latex unable to make a table
of contents, and the 'references' heading comes out strangely (7 * in large
and then references in small on the next line).

What do I do wrong?

I'm not sure, but you should probably use the titlesec or sectsty package instead to do this kind of thing. Apparently, it's kind of delicate.

Actually, come to think of it, part of the problem is likely that \section* isn't really a separate command. It's the \section command followed by a *, which gets detected in the code.

rh

Reply via email to