Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Centre align page numbers in Table of Contents

Tagged: 

Return to Member Forum

  • Author
    Posts
    • #74659
      Jahrod
      Member

      I have a ToC where I have the page number before the entries. The default is for the page numbers to be left aligned, but I would like to have them centre aligned. Is this possible?

    • #74666

      Set a Center Tab for the page numbers, and a Left Tab for the page description.

    • #74707
      Jahrod
      Member

      Thank you, Colleen. This is exactly what I am looking for but I need something that doesn’t involve having to do this manually each and everytime I update the ToC. I was wondering if I could build it into my ToC style or build it into my character/paragraph styles using GREP? Any ideas!?

      • #74711

        Should be easy to set up in a Para style for the TOC listing.

        Chris.

    • #74722
      David Blatner
      Keymaster

      Not really the same thing, but might have some insights:
      https://creativepro.com/how-can-i-align-double-digits-in-a-numbered-list.php

      Or you could convert the text into a table and center align that column.

    • #74724

      Just been trying it out using a style for the TOC contents, you can put most of what’s wanted into the style, including the centre tab that Colleen suggested in post 2, but there seems to be no way to get the style to insert the leading tab mark needed before the page number itself.

    • #74831
      Jahrod
      Member

      Thanks for all the help folks! So it seems there is just no way to make this fully automated. I really thought there might be a way to use a GREP style which adds a centre align tab at the beginning of the page number?

    • #74850

      The Paragraph Style will have that centre-aligned tab, but you need to add a tab for each entry. It’s not automated, but you can Find/Replace (in Story) so each Paragraph Return has a Tab after it.

      Find: ^p
      Replace with: ^p^t

      Then replace all double Tabs: (to clean up if you already have tabs in there.
      Find: ^t^t
      Replace with: ^t

      Not sure how much this helps your project. The table idea may work better, or using the Convert Text to Table/Table to Text option, you can add a Tab to the first column, then convert back to Text.

    • #75008
      Jahrod
      Member

      Thanks for all the input everyone! Much appreciated.

Viewing 7 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads