Multi-line entries in table of contents

Everything related to our flagship word processor.
Post Reply
samwa
Posts: 10
Joined: 2012-12-28 12:57:50

Multi-line entries in table of contents

Post by samwa » 2016-06-26 12:33:35

Hello. I have written several chapters of a book, and decided, belatedly, to add a table of contents. I looked through the guide, and discovered, to my delight, that I could do it quite easily simply by selecting text and using the TOC tool to include it. Unfortunately, I quickly discovered that every selection became two entries. I assume this is because each selection consisted of multiple lines, like this:

Chapter 1

I Am Born


In my document the text is centered. These are just text, not headings.

I selected all three of these lines, and told the tool to include them in the TOC. However when I create the TOC I get something like this:

Chapter 1 2
I Am Born 2

What would really like is what you usually see in a TOC, something like:

Chapter 1 I Am Born 2


There should be significant whitespace between the three parts of that(Chapter/Title/Page), but I don't know how to do that in BBCode.

I have tried configuring the style to tell it to replace line breaks with spaces, but this does not seem to have any effect.

User avatar
phspaelti
Posts: 889
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Multi-line entries in table of contents

Post by phspaelti » 2016-06-26 19:08:39

You need to use "soft-returns" in your chapter headings to get them to appear as single entries in your TOC.
As for the "significant amount of whitespace" between the two parts , I'm not sure if there is a good solution, especially since you are working with centered titles. Space in the heading does go through, but you will need to add the same amount of space on the other side to balance the heading. Here is a sample:
Nisus_Two_Line_TOC_Entries.tiff
Nisus_Two_Line_TOC_Entries.tiff (53.35 KiB) Viewed 1051 times
philip

samwa
Posts: 10
Joined: 2012-12-28 12:57:50

Re: Multi-line entries in table of contents

Post by samwa » 2016-06-27 17:21:49

Thank you ! That is very helpful.

Post Reply