Generating an automatic table of contents is explained in Book Design Made Simple on pages 240–244, and the process is just slightly different when you’re using the Book feature. Your table of contents will be included in your front matter document, so open that document and click Layout>Table of Contents to open your Table of Contents dialog box (see our example below). Note that at the bottom left of the dialog box, the box called Include Book Documents is checked. That is the only difference when working in a Book file!

The first step is to decide if you want to include a label with the number. For example, you might want the word “Chapter” to appear before the actual chapter number. If you want to include a label, type it in the Custom Page Numbering Format text box. Next, select a numbering style from one of the list boxes, and click the Insert in Format button to insert the numbering code in the Custom Page Numbering Format text box.
Select the text frame with the Selection Tool (V, Escape) and go to Edit > Copy and Edit > Paste. Manoeuvre this second text frame onto the left-hand page in a mirrored position. InDesign will provide pop-up guidelines once the text frame lines up exactly with the frame on the right-hand page. Once your happy with the positioning, select the Type Tool (T) and adjust the orientation of the text to Align Left from the Character Formatting Controls panel, as before.
A best practice that we recommend to our clients is to create a base/folio master –with styled and positioned footers and current page number special characters– on which all other masters are based. This allows a footer that may contain date or issue information to be updated once and the changes are reflected in all of the master pages. If your masters only have current page number special characters then you can just add them to each master and the page numbers will be reflected when each master is applied to your document pages. document numbering in indesign