Skip to main content
carome123
Participant
August 7, 2023
Answered

table of contents with numbering and dotted lines to the page number

  • August 7, 2023
  • 2 replies
  • 12759 views

Hello dear community, I would like to create a table of contents in InDesign, which on the one hand has a numbering and at the same time should be dotted lines between the text lines from the word to the page number. Can someone tell me how I can realize this? Thank you, Carolin

This topic has been closed for replies.
Correct answer Robert at ID-Tasker

?? Grep will slow down InDesign. 

 

There is much better way - setting "." as a Leader for a right-aligned TAB.

 

2 replies

carome123
carome123Author
Participant
August 7, 2023

Thank you for your assistance. That basically worked. The GREP didn't work, so I used "." as the fill character inserted at the tabs, that brought the desired result.

Community Expert
August 7, 2023

Hi @carome123 ,

the GREP pattern for the GREP Style that targets the right aligned tabulator is:

~y

 However, to set the right aligned tabulator in the TOC style use:

^y

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Willi Adelberger
Community Expert
Community Expert
August 7, 2023
  1. Create a stroke style in the stroke panel with dots.
  2. Create a character style with this stroke underline.
  3. In the toc paragraph style use shift-tabulator to get numbers right aligned number (in code ^y)
  4. Define GREP style for right aligned taulator this character style
Robert at ID-Tasker
Robert at ID-TaskerCorrect answer
Legend
August 7, 2023

?? Grep will slow down InDesign. 

 

There is much better way - setting "." as a Leader for a right-aligned TAB.

 

Bevi Chagnon - PubCom.com
Legend
August 7, 2023

+1 for @Robert at ID-Tasker., which is my preferred method. You can control everything you want by setting paragraph styles for your TOC entries, no need for Grep Styles nor custom lines.

 

See Adobe's help on TOCs, especially the sections:

  • Create TOC entries with tab leaders
  • Create a paragraph style with a tab leader

https://helpx.adobe.com/indesign/using/creating-table-contents.html

 

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents ||    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |