Creating a Table of Contents (TOC) in Writer

From The Document Foundation Wiki
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English

This page is in Work!

Foreword

The video shows how to create a ″Contents directory in Writer″ in LibreOffice and links to this page here, which provides further information and details.

This description refers to the version LibreOffice 7.1 under Windows 10.

The basis of this description is the online help of LibreOffice:

https://helponline.libreoffice.org/7.1/en-GB/text/swriter/guide/indices_toc.html

and the English Documentation

Link to the Video

Link to the Video (in German [DE]):

Ein Inhaltsverzeichnis erstellen in Writer - LO71

Creating a table of contents - General

Why do you need a table of contents?

A table of contents should present the structure and content of the document in an abbreviated form.

How should a table of contents be designed?

To get a good overview of what is written in the document, it is of course necessary to structure the document accordingly.

A structure in the document is achieved by creating headings for individual chapters and subchapters.

Headings

Headings for chapters and sub-chapters should immediately convey to the reader what to expect in the text that follows.

However, headings should not be an abbreviated text or an excerpt of it.

Headings should, if possible, be single-spaced (short and concise), for a quick grasp of the content that follows.

Headings are not provided with an end punctuation mark (dot).

Number of chapters and subchapters

The number of chapters is not limited.

However, try not to separate chapters artificially.

For the sub-chapters, you can start from a rule of thumb.

There should be no more than five sub-chapters per chapter.

This is because a person can keep track of five things reasonably continuously.

I wonder if it comes from the five fingers of one hand?

When dividing into subchapters, a list should not go beyond 1.1.1, otherwise it becomes very confusing.

The individual chapters and subchapters should be reasonably balanced in their text length.

What goes in the table of contents now?

The chapter numbering, if available and desired.

The text of the heading.

The page number corresponding to the beginning of the chapter.

How can I create a table of contents?

For word processing programmes such as Writer, the creation can be automated to a large extent.

An automatic table of contents should include all chapter and subchapter headings.

However, some preparation is necessary for this.

Create an automatic table of contents

Sidebar - Paragraph Styles - Headers

In order for LibreOffice to recognise which and whether headings are included in the table of contents, these headings must first be formatted.

Formatting headings with styles

Headings should always be formatted using styles.

The styles for headings and text are called paragraph styles.

Select all headings and double-click, for example, on the paragraph style "Heading 1".

All marked headings then take on the attributes for font, size, etc. stored in the paragraph style "Heading 1".

For "subheadings" (subchapters), "Heading 2" to "Heading x" accordingly.

The paragraph styles "Heading 1" to "Heading x" are formatted according to the standard settings.

You can adapt the paragraph styles for your purposes by right-clicking the paragraph styles (F11) in the sidebar and selecting "Change".

Insert an automatically created table of contents in the document

Once you have formatted the headings with the paragraph styles, insert the table of contents in the document.

For example, start at the top of the next page after the cover page (new page with a manual page break) by placing the cursor there.

Select Insert ▸ Table of Contents and Index ▸ Table of Contents, Index or Bibliography… from the menu.

In the "Table of Contents, Index or Bibliography" dialog, select the type "Table of Contents".

Now click OK.

The table of contents with the formatted headings now appears where you placed the cursor.

 Note: To change the appearance of the table of contents, select the paragraph style(s) displayed in the sidebar under styles and see which formatting you would like to change.

How can I update the table of contents?

Of course, some things will change in a document later on and chapters will be added.

So when you are finished with your document, you should update the table of contents before saving it.

Right-click anywhere in the table of contents and select Update index from the context menu.

 Note: The table of contents appears with a light grey background for active elements. However, when printing or exporting as PDF, the background is then white.

Further Informations

Work files

(in German [DE]):

"Musterdokument_01 - Rohfassung.odt"

"Musterdokument_02 - Rohfassung - Überschriften formatiert.odt"

"Musterdokument_03 - mit Inhaltsverzeichnis.odt"

Documentation / Manuals

Here you will find the Documentation / Manuals:

Documentation / Manuals

Ask site

For questions on the topic go to:

https://ask.libreoffice.org/c/english/5

Get Involved

Join us today and help us to make it even better!

Get Involved

LibreOffice is Free Software and is made available free of charge.

Your donation, which is purely optional, supports our worldwide community.

If you like the software, please consider a Donation.