Hi Thomas
You need to read the TOC-dialog very carefully.
Tab "Type"
==========
Part 'Create Index of Table of Contents' allows you to restrict the 
scope of the TOC and the depth of the TOC.
Part 'Create From' allows you to determine what is included in the TOC. 
The option "Headings" refers to those headings, whose styles are 
assigned in menu Tools > Heading numbering (former Chapter numbering). 
The option "Additional styles" allows you to include headings with 
whatever style you have used for them and to determine, on which level 
of the TOC they are shown.
So for the TOC at the beginning of your book, you could use the scope 
"Entire document" and restrict it to level 1.
For the TOC of the individual chapters, you can use the scope "Chapter".
If you do not want the chapter heading to be included in the chapter 
TOC, uncheck "Headings" and use "Additional styles" instead. You can set 
the heading inside the chapter on level 1 of the TOC then.
Tab "Styles"
============
The style of an item in the TOC is not determined by the style of the 
heading. Instead each level in the TOC has a style assigned. Default are 
the styles "Contents 1" to "Contents 10". So if you find some item on a 
TOC level to large or have unsuitable font or need a color, then you 
should alter the corresponding "Contents" style.
But you are not restricted to the "Contents"-styles. In this tab you can 
assign your own paragraph style to an item level of the TOC.
Kind regards
Regina
Thomas Blasejewicz schrieb am 04.10.2024 um 09:52:
Good afternoon
I am sorry to bother the list, but I am writing a book and
have been toiling literally for weeks now, but still cannot manage to 
make the "Table of Contents" function work.
At least not properly.
Here is what I did.
Windows 10, LO 7.6 and 24.8
I am trying to put a TOC that shows ONLY the chapter names at the 
beginning of the book, somehow managed to do that now,
and then separate TOCs showing the sections in that particular chapter.
Defined (1) chapter heading to indicate the chapter breaks
(2) different style for a subheading given the name of the chapter - so 
to prevent it appear in the main TOC twice (that always happened in the 
beginning)
(3) heading for individual sections within each chapter
(4) heading for subsections in each chapter
These styles use too big font and/or spacing, so I created separate 
styles to represent the above styles in the TOC.
Have registered the four styles under Tools -> Heading numbering.
In my attempts at setting up the TOC for individual chapters I selected 
the styles that should appear in the TOC both under
"Type" and "Styles"
For 1-2 chapters I think I succeeded, but in other chapters I get:
chapter title followed by the TOC, but at the top of the TOC there is 
again the chapter name = redundant.
As I said, for 1-2 chapter TOCs I managed to get something WITHOUT the 
chapter name (in a funny style),
but trying to apply the exact same setting for other chapters gives me 
the choice
1) TOC with redundant chapter name or
2) TOC showing ONLY the redundant chapter name.
I tried just about every conceivable setting / combination of these 
styles, but just cannot get rid of those redundant chapter names.
Printed the documentation, underlining things probably important, but 
probably I am just too stupid.
If anybody could point me to this ONE trick, I would be eternally grateful.
Thank you
Thomas
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.