Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Unable to get the TOC text aligned

Engaged ,
Oct 27, 2017 Oct 27, 2017

Hello I have a TOC heading style that I am unable to align as I desire.

I would like to have the text aligned agst the yellow line. ... where the 'Frequently Asked Questions' ends.

Capture.PNG

The foll is my toc style settings:

Capture2.PNG

I have tried diff. permutation and combinations, but im unable to wrap my head around as to how I shld get this working.

Any guidance would be greatly appreciated.

Regards

521
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Oct 27, 2017 Oct 27, 2017

Run on your generated TOC simple GREP: find ^. change to /t$0

Set proper tab stops in TOC text style options, and you should be done.

Yes, after updating TOC that query should be run again. Additional operation is no good, luckily, grep query can be saved for future references.

Translate
Mentor ,
Oct 27, 2017 Oct 27, 2017

Run on your generated TOC simple GREP: find ^. change to /t$0

Set proper tab stops in TOC text style options, and you should be done.

Yes, after updating TOC that query should be run again. Additional operation is no good, luckily, grep query can be saved for future references.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 30, 2017 Oct 30, 2017
LATEST

I am sorry for not being able to acknowledge your help before now.

Thank you for weighing in. I have been able to get it to work per your instructions:

Capture.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 27, 2017 Oct 27, 2017

As an alternative to winterm excellent answer (as always), here's a trick that would prevent you to run again a GREP query after updating TOC:

Set your TOC paragraph style aligned to right. Add positive right indent and negative last line indent (i.e. 10mm and -10mm)

In the TOC options, instead of adding a tab between entry and numbering, add a hard return ^n

Then add a character style to numbers. Add a positive vertical shift to it to get the number aligned to entry (12 pt in my example, but you'll have to adjust that)

See example:

anchors.gif

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Oct 27, 2017 Oct 27, 2017

Hi, vinny

My approach is extremely traditional this time - we used to work this way yet in PageMaker times (except that grep thing, obviously). You won't believe, while posting this my thought was 'If there were vinny, he definitely show us some trick without adding to text any junk'. And you're here, magic.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 27, 2017 Oct 27, 2017

Vinny,

A 0pt-leading associated to a simple grep style could be … more interesting to manage inter-paras space! 

Capture d’écran 2017-10-27 à 16.56.29.png

(^/)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines