The trick to this work around is the \w switch instructs the TOC to include the tab found in the heading in the generated TOC entry. Another bonus is if a heading does not contain any prefix, the TOC still looks pretty normal, the page number only appears a bit in from the edge of the page. The second heading shows the final output where the text is hidden.Īn advantage of this method is you can choose any prefix you want and can also have separate prefixes for each entry if desired. The first heading in blue shows the tab and prefix before hiding the text. Now each page number should have it's own prefix as shown in the image below. Once this is done for all paragraphs right click on the TOC and choose Update Fields. The prefix should be hidden and the heading should now look normal again. Go to Font -> Color and change the color of the text to match the background (e.g white on a white document background). Select the text you just wrote, highlight both the space that the tab character and the prefix.For each paragraph that will appear in the TOC click the cursor the end of the line and press Tab and then type your prefix.If in doubt do it for all of the styles in the list. Apply the same changes for the other TOC levels used in the document by going through Step 6 - Step 11 again but doing it for the other styles in the list i.e TOC 2 - TOC 9.With the two tabs set press Ok to all dialogs open to return to the document.Add another tab right aligned with no leader (None) at the edge of.The first right aligned with "." leaders at just before the edge of the page (e.g 14.5cm on a portrait A4 page). In the new dialog click the Format drop down button and select Tabs.Click the Modify button down the bottom right and make sure TOC 1 is selected in the styles list.Right click on the TOC and choose Edit Field.Press ALT F9 to display field results again. Scroll up to your table of contents and press ALT F9 to show the field code.It involves adding the prefix to each heading in the document as hidden text and formatting the TOC styles in a special way. The following animation demonstrates the above steps for creating a list of tables and figures.There is perhaps one way to achieve this, but it is a work around and is a bit complex to setup (however easy to use). Do the necessary formatting using the available options in the Table of Figures dialog box,.In the Table of the Figures dialog box select the relevant Caption Label (Table, Figure,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |