Discussion:
table of contents and no sections listed and no section numbering
Jeremy C. Reed
2005-07-06 20:43:36 UTC
Permalink
I have two different questions:

I want one document to have section numbers within the different chapters,
etc. But I do not want the sections listed in the table of contents -- I
only want the chapter names listed in the table of contents. Any
suggestions on how I can use numbered sections in my book but not listed
in the table of contents?

In another document, I want the table of contents to list all the sections
(but not Subsubsections) and I don't want these sections numbered. What
can I do so the table fo contents list the chapters and sections, but the
sections are not numbered?

I tried searching for these but didn't find anything.

Jeremy C. Reed

BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/
Rich Shepard
2005-07-06 20:47:48 UTC
Permalink
Post by Jeremy C. Reed
I want one document to have section numbers within the different chapters,
etc. But I do not want the sections listed in the table of contents -- I
only want the chapter names listed in the table of contents. Any
suggestions on how I can use numbered sections in my book but not listed in
the table of contents?
Set your ToC depth to '1'.
Post by Jeremy C. Reed
In another document, I want the table of contents to list all the sections
(but not Subsubsections) and I don't want these sections numbered. What can
I do so the table fo contents list the chapters and sections, but the
sections are not numbered?
Set your ToC depth to '2.'

Both are found under Layout -> Document -> Numbering.

Rich
--
Dr. Richard B. Shepard, President | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Jeremy C. Reed
2005-07-06 21:08:48 UTC
Permalink
Post by Rich Shepard
Post by Jeremy C. Reed
I want one document to have section numbers within the different chapters,
etc. But I do not want the sections listed in the table of contents -- I
only want the chapter names listed in the table of contents. Any
suggestions on how I can use numbered sections in my book but not listed in
the table of contents?
Set your ToC depth to '1'.
Thanks for the quick answer.

I have LyX 1.3.5 and I set Layout -> Document ... -> Numbering -> Table
of contents depth to "0" and it worked like I wanted.
Post by Rich Shepard
Post by Jeremy C. Reed
In another document, I want the table of contents to list all the sections
(but not Subsubsections) and I don't want these sections numbered. What can
I do so the table fo contents list the chapters and sections, but the
sections are not numbered?
Set your ToC depth to '2.'
This showed my sections, but they contained numbers like:

2.1 Overview ....
2.2 Objectives ....

I am wondering how I can do that without the section numbering in the
table of contenst -- while still having the section numbering within the
content itself. Not real important though.

I tried setting the Section Numbering depth to -2 (and also to 0) and my
table of contents was correct, but then the numbering was gone within the
chapters too.
Post by Rich Shepard
Both are found under Layout -> Document -> Numbering.
Jeremy C. Reed

BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/
Rich Shepard
2005-07-06 21:14:59 UTC
Permalink
I am wondering how I can do that without the section numbering in the table
of contenst -- while still having the section numbering within the content
itself. Not real important though.
You'd need to redefine the commands.
I tried setting the Section Numbering depth to -2 (and also to 0) and my
table of contents was correct, but then the numbering was gone within the
chapters too.
This is the way that most documents are done: all or nothing. Any custom
fitting must be done by hand. Look through the mail list archives and the
Tips & Tricks pages for more insight.

Rich
--
Dr. Richard B. Shepard, President | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Geoffrey Lloyd
2005-07-06 21:51:16 UTC
Permalink
----- Original Message -----
From: "Jeremy C. Reed" <reed-+***@public.gmane.org>
To: "Rich Shepard" <rshepard-***@public.gmane.org>
Cc: <lyx-users-UqbJ+GOpo4+***@public.gmane.org>
Sent: Wednesday, July 06, 2005 10:08 PM
Subject: Re: table of contents and no sections listed and no section
numbering
Post by Jeremy C. Reed
Post by Jeremy C. Reed
In another document, I want the table of contents to list all the sections
(but not Subsubsections) and I don't want these sections numbered. What can
I do so the table fo contents list the chapters and sections, but the
sections are not numbered?
I am wondering how I can do that without the section numbering in the
table of contenst -- while still having the section numbering within the
content itself. Not real important though.
Ok before your ToC insert the following in ERT

\setcounter{secnumdepth}{0}

Then after your ToC have another ERT with

\setcounter{secnumdepth}{1}

This should only number the chapters in the TOC but still list the sections
(if your TOC depth is set correctly as discussed in the earlier email), but
both the chapters and the sections in your document. You may need to play
with the numbers but this is the right idea.

Geoff

Continue reading on narkive:
Loading...