A year ago on this blog, I looked at a method for forcing line breaks in your table of contents.

An alternative method for this is to make your Table of Contents editable. The steps are outlined below, however I caution you with this method – if you Update your Table of Contents, then you will lose your edits (see last screenshot below).

After you have added a table of contents in your document, you may find that you have long headings that require line breaks in better places than those imposed by OOo Writer.

Edit the Index

Right-mouse-click (or Ctrl-click) and select Edit Index/Table.

You will see the window below.

Right mouse click on the table of contents and select 'Edit Index/Table'

On the Index/Table tab, you will see the tick box labelled ‘Protected against manual changes’.

Untick this.

Edit the Index/Table Text

Now you can edit the text in the table

Add breaks (Shift+Enter) or change text as desired.

IMPORTANT NOTE

It is important to note that if you update the Index/Table, the changes you have just performed will disappear.

If you Update Index/Table, the changes will be removed.

The table of contents will revert to the original.

The Table of Contents will restore any changes if you update the TOC

I recently saw a question regarding line breaks in the table of contents – OpenOffice does not allow you to edit a table of contents except through styles. Sometimes the way that long headings are formatted might not be what you desire.

One thing to note about the TOC is that the line breaks that you insert in the heading itself will be reflected in the TOC.

Example:
Putting in a manual line break (Shift + Enter) in this heading:

manual_line_break

will result in a line break appearing in the Table of Contents:

manual_line_break_toc

There is a good tutorial for Adding and Updating a Table of Contents in OpenOffice’s Writer over at OpenOfficeX.

table_of_Contents

Just a note before you jump to the link – it says that you can BUY OpenOffice – but they offer unlimited support for users. Note that OpenOffice is a free software – if you buy this version, you are buying the support, which is not normally available with free versions of OpenOffice (other than through a very active community).

I like this post because it has the method for using styles to set up a table of contents.

It”s similar to the way you do it in MS Office.

There is no point re-inventing the wheel, so I will link to it here:

Quick Guide to Creating Automatic Tables of Contents

If you wish to download an OpenOffice Writer file and fiddle with a Table of Contents that has already been created, please download the OpenOffice Writer Table of Contents Sample document that I have put together.

TOC Sample