Re: How to get starred titles in the TOC

2005-08-15 Thread Rich Shepard

On Mon, 15 Aug 2005, Rich Shepard wrote:


 Try the ERT
\addcontentsline{toc}(part)(part_title)


  I forgot to add the placement location: immediately after the Part command,
on a separate line in standard environment. When used with a chapter (in my
case, the un-numbered Preface), the ERT is at the begging of the text line
immediately following the chapter heading.

Rich

--
Dr. Richard B. Shepard, President |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Re: How to get starred titles in the TOC

2005-08-15 Thread Rich Shepard

On Mon, 15 Aug 2005 [EMAIL PROTECTED] wrote:


However, I would like to have a table of contents. I have tried to redefine
the "part*" command so that it includes an entry in the TOC. I've put the
following in the preamble:


Sonja,

  Try the ERT
\addcontentsline{toc}(part)(part_title)

  I know this works for chapters, but I don't know that it works for parts.

Rich

--
Dr. Richard B. Shepard, President |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


How to get starred titles in the TOC

2005-08-15 Thread sugen
Hello,

I'm using the apa layout. It has no "part" environment, but only the
starred versions "part*", which means the parts are not numbered in
the text (same for sections/subsections). That's ok, it's a
requirement of the APA article style.

However, I would like to have a table of contents. I have tried to
redefine the "part*" command so that it includes an entry in the TOC.
I've put the following in the preamble:


\let\oldpart\part*

\renewcommand{\part*}[1]{
 \oldpart{#1}
 \addcontentsline{toc}{part}{#1}
}


This gives me errors, the first of which being:


You can't use `macro parameter character #' in horizontal mode.
 \contentsline {part}{1}{1}


I have the impression this trick works fine if I try to redefine a
non-starred command, like  "part" or "section", but it fails for the
starred versions "part*" and "section*".

What am I doing wrong ? Is there a better way of doing this?

Thanks,
Sonja