Ask Your Question

How to create templates of Table of Contents

asked 2018-06-08 17:19:54 +0200

Holly112 gravatar image

Hi all

I read carefully the Writer Guide, Chapter 12, and found nothing. With the default layout there is no tab between the E# button, Chapter number element, and the E button, Chapter text element. The result is somewhat clumsy. Therefore you need to add that tab for each level and not forget to assign a tab position for each otherwise the mess is even worse. If you made changes in the structure of the document and update the Table of content it makes it return to its default layout. So you need to redo it and therefore go through the whole process which is rather cumbersome. Is there a way to create a template that you could appy to any future TOC?

TIA Regards Nick

edit retag flag offensive close merge delete


What is your exact procedure? Can't reproduce behaviour. Do you update TOC with Tools>Update All or right-click in TOC and Update index? Both update TOC without changing previous TOC formatting, even when structure is modified (i.e. Heading n paragraphs added, erased or changed).

ajlittoz gravatar imageajlittoz ( 2018-06-08 18:09:39 +0200 )edit

3 Answers

Sort by » oldest newest most voted

answered 2018-06-10 08:44:48 +0200

pierre-yves samyn gravatar image


As has already been said, a table of contents is (in the vast majority of cases) only a portion of a document.

What is quite suitable for this type of object are Autotexts.

  • Create a table of contents that matches your preferences
  • Select the TOC section including the previous paragraph
  • ToolsAutoText▸give a name, a shortcut, select a category (My AutoText if you have not created one)
  • Click AutoText button▸ New

That's all

To insert the TOC into any document, type its shortcut then the F3 key (or go through the Tools menu)

HTH - Regards

edit flag offensive delete link more


OK Pierre-Yves, I just gave it a try. It works quite well and it's very convenient. Interestingly it just pastes text, therefore it's editable. Thanks. Nick

Holly112 gravatar imageHolly112 ( 2018-06-13 15:04:22 +0200 )edit

answered 2018-06-09 14:11:30 +0200

Holly112 gravatar image

OK, this bug was fixed since I last tried it. Yet it's not the main topic which is how, or if, it's possible to create a template for TOCs that would avoid going through the cumbersome process of setting every single parameter. The missing tab after the Chapter number element is really strange.


edit flag offensive delete link more

answered 2018-06-09 15:52:21 +0200

RGB-es gravatar image

It's not possible to create "templates" just for TOCs, but of course you can create a full document template containing a customized TOC and then use that template to create new documents.

To have the ability to define several custom TOCs is an useful idea, though. Strangely enough, I cannot find an enhancement request asking for this feature: You may consider creating such request on Bugzilla.

edit flag offensive delete link more


IMHO, having no template for TOC is probably based on the idea you have only one TOC per document. As a consequence, there is no interest to define a template because you would use it only once and it is already there (the TOC in the template document, I mean).

ajlittoz gravatar imageajlittoz ( 2018-06-09 16:05:41 +0200 )edit

My idea was about templates you could use in any document. The current TOC feature is in a half completed status. The user has to finish the work. I'll file a request in Bugzilla.

Holly112 gravatar imageHolly112 ( 2018-06-09 18:28:27 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-06-08 17:19:54 +0200

Seen: 140 times

Last updated: Jun 10 '18