Hi Anders,

You may be better off using sectsty
(http://www.ctan.org/tex-archive/help/Catalogue/entries/sectsty.html) or by
completely rewriting the section definition.  After you get comfortable with
the structure, I find that I prefer to completely redefine my section
definitions.  I've occasionally gotten weird behavior with sectsty (mostly
with the Koma-Script Classes and memoir that have specialized macros for
such customization).

For some specific examples, see:

http://www.ctan.org/tex-archive/help/Catalogue/entries/sectsty.html

Even though these examples are specific to xetex, the basic syntax is the
same for the other latex engines as well.

Cheers,

Rob Oakes

-----Original Message-----
From: news [mailto:[email protected]] On Behalf Of Anders Host-Madsen
Sent: Thursday, December 17, 2009 10:38 AM
To: [email protected]
Subject: Redefining sections

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?


Reply via email to