On Thursday 17 December 2009 12:38:14 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 don't know the root cause of your table of contents problem, but I'll answer 
your literal question, "what am I doing wrong?"

When you redefine an environment, you need to transfer both the environment's 
begin code and end code. You didn't do that here.

Here's a discussion:

http://www.troubleshooters.com/linux/lyx/lyx_latex_tex.htm

Within that document, search for this string:

POTENTIAL DEBUGGING NIGHTMARE

Like I said, it might not fix your TOC problem, but it does answer the 
question "what am I doing wrong."

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt

Reply via email to