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

Customize style of Table of Contents

Explorer ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

Hi!

I have set up a custom TOC for my 100+ page document. I've added 2 levels. This is my current setup:

Which produces this result:

However; I would like to add some background and more styling to the entry paragraph. I would like something like this:

Here I've added a colored square behind the page number and made the entry text aligned.

I haven't figured out how to do this "the correct way" without having to do so manually. Is there any possibility to add something like a object style to the page number; or is there a other way? Any help would be greatly appreciated.

Views

376

Translate

Translate

Report

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 ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

Simple answer is "do it by hand". Several reasons:

  • Drop Caps is a paragraph style feature, but the numbers/bullets in a list are not part of the paragraph, so before anything else you'd have to flatten the numbering, which breaks the TOC.
  • Paragraph shading is not available via a character style, and you can only apply character styles to drop caps. You can fake shading the old way using a huge underline and offset, but it won't create a nice set of justified boxes.
  • Drop caps are strictly per-character and there's no grep pattern filter, so your lists would fall apart going between item 9 and 10.

Votes

Translate

Translate

Report

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 ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

Simple answer: "Just do it"!

[Para style advanced settings]

Capture d’écran 2019-04-12 à 14.26.13.png

Best,

Michel, for FRIdNGE

Votes

Translate

Translate

Report

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
Explorer ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

Hi Michel!

Could you please elaborate?

Votes

Translate

Translate

Report

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
Explorer ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

LATEST

I have managed to fix the indenting of the breaking text.

Votes

Translate

Translate

Report

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