Alphabetic TOC OR Auto Index

What I want to do is create an alphabetic list of Heading 1 entries. As far as I can tell, the TOC sorts by page number, and the only way to have an alphabetic list is to manually add index entries, which I would rather not have to do.

Is there a way that I can either have the TOC sorted alphabetically, or have the Heading 1 style include an index entry, or something like that??

BTW - you guys have been awesome at answering a newbie’s questions.

1 Like

There doesn’t seem to be a direct way to mark headings as index items, and there may be a good reason for that. You would need to have a huge number of chapters to make an index of chapter titles useful, unless your TOC spans several pages.

But there is a workaround that may not take too much time:

  • First in Tools - Chapter Numbering, remove the auto numbering of headings for Heading 1.
  • In the Edit TOC dialog, restrict the levels to be included to Heading 1, then update the TOC.
  • Copy the TOC and paste (as unformatted text) where you want your index. Use Tools - Sort to sort the headings.
  • Set back the Tools - Chapter Numbering options and TOC settings.
1 Like

You can have both.

Create your headings as usual, styling them with Heading n paragraph style. This will be used to create the TOC in page order.

Select the heading contents and Insert>TOC & Index>Index Entry. The Entry field is ore-filled with heading contents. Just press Insert. Generate the alphabetical index and your headings will be listed in alphabetical order.

The only thing you can’t do is to segregate your alphabetically-ordered headings from the standard alphabetical index because there is only one alphabetical index in Writer. There are various ugly workarounds to split the index into several parts but they are really dirty.

1 Like

that’s exactly what I need. thanks.