Reply to topic  [ 3 posts ] 
Multi-line entries in table of contents 
Author Message

Joined: 2012-12-28 12:57:50
Posts: 10
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.

2016-06-26 12:33:35
User avatar

Joined: 2007-02-07 00:58:12
Posts: 876
Location: Japan
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 [ 53.35 KiB | Viewed 769 times ]


2016-06-26 19:08:39

Joined: 2012-12-28 12:57:50
Posts: 10
Thank you ! That is very helpful.

2016-06-27 17:21:49
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 10 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software