Ask Your Question
0

How do I get my table of contents to look like this?

asked 2017-02-04 15:24:57 +0200

Elzoog gravatar image

I am editing a book of short stories written by my students. I want my table of contents to look like this:

https://postimg.org/image/3wk9t51uh/

The actual table of contents, looks like this:

https://postimg.org/image/fksoy89rb/

An example of an actual story entry (later in the book) is here:

https://postimg.org/image/5gcwyk91r/

How do I have Libreoffice generate a table of contents to look like how I want?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-02-04 20:51:10 +0200

floris v gravatar image

updated 2017-02-05 19:28:49 +0200

The TOC builder in OpenOffice and LibreOffice is one of its worst assets. Worst about it is how the tab settings in the dialog box (second tab) override the settings in the paragraph style. If you want right aligned page numbers, you can't insert more tabs, if you do, the page number will move to its own line.

So here is a workaround, you will have to figure out a way to mimic right aligned page numbering: on the Entries tab, insert a second tab just before the one inserted by default. With that tab selected, edit its properties, set Tab stop position to whatever you like, but don't tick Align right. Next click the second tab button, remove the tick mark in Align right and set a value for Tab stop position just lower that the text width. In the Type tab, remove the tick mark in Protected against manual changes. You have to enter the tabs manually every time you rebuild the TOC.

C:\fakepath\TOC_with_a_twist.odt

edit flag offensive delete link more

Comments

Do you mind creating a document where the TOC looks like how I want, with fake stories?

Elzoog gravatar imageElzoog ( 2017-02-05 14:03:25 +0200 )edit

Added one.

floris v gravatar imagefloris v ( 2017-02-05 19:29:01 +0200 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2017-02-04 15:24:57 +0200

Seen: 104 times

Last updated: Feb 05 '17