Table of contents formatting

General comments and questions. Technical support.
Post Reply
hwscot
Posts: 4
Joined: Fri Dec 09, 2016 10:40 am

Table of contents formatting

Post by hwscot »

It seems you only have two options for page numbers, right aligned, in which case page numbers run down the right margin, or not right aligned, in case they sit right beside the Heading. Neither of these works well visually, the gap from left to right is too wide to make it immediately obvious how the heading and page number align. Likewise the non-aligned leaves no clear column for page numbers, and its hard to run your eye down them.
I tried creating a right indent for the TOC entry paragraph style, to bring the page number closer to the TOC entry. It doesn't get applied. A left indent gets applied, and it does reduce the distance from the TOC entry to the page number, but it leaves an odd-looking page. I tried playing with a margins setting for just the TOC pages, but it doesn't seem to get applied, and even if it worked, that would be a nuisance if the TOC gets altered to produce more or fewer entries, e.g. when creating a space below each entry for ease of reading or, as a current document works, where the TOC covers two pages, almost but not quite filling the second - any new entries will result in a page break.
What it really needs is a 'page numbers' dialog, as with the present 'Entries' button. Then you can specify the spacing with tabs or an absolute distance. Workarounds don't really cut it when the TOC is liable to change as the document develops.
User avatar
admin
Site Admin
Posts: 2970
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Re: Table of contents formatting

Post by admin »

I tried creating a right indent for the TOC entry paragraph style, to bring the page number closer to the TOC entry. It doesn't get applied.
It gets applied. But the width of the tab characters between the heading titles and the page numbers is controlled not by the paragraph’s right margin but by the corresponding tab stop within the “TOC N” styles:

right_aligned_tab_stop_in_toc_1.png
right_aligned_tab_stop_in_toc_1.png (6.56 KiB) Viewed 866 times

You can change the tab stop value within the properties of the corresponding TOC style:

right_aligned_tab_stop_in_toc_2.png
right_aligned_tab_stop_in_toc_2.png (21.27 KiB) Viewed 866 times
Post Reply