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

Automatically apply style depending on what section of document a heading is in

New Here ,
Mar 03, 2023 Mar 03, 2023

Copy link to clipboard

Copied

Hi

I use the Table of contents function a lot but have a new challenge I can't figure out.

I want to have a table of contents on a Master, so that it appears as a Sidebar on every page of the document (brand guidelines doc). Then I want each heading in the sidebar contents to look 'active' or not depending on which section the user is in.  Here's a quick mockup to explain what I'm after.

Screenshot 2023-03-03 at 11.43.31.pngexpand image

Is there a way I can set the style to automatically change depending on which section of the document it's in? e.g. using GREP maybe? or combined with section markers?

Any help is appreciated.

Thanks!

TOPICS
How to , Scripting

Views

422

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

correct answers 1 Correct answer

Community Expert , Mar 03, 2023 Mar 03, 2023

Hi @katheaton1:

 

You could set this up using multiple parent pages with the correct highlights, and assign the parent pages to the appropriate body pages, but no, you can't do what your title requests.

 

If automating this is critical, scripting can extend InDesign's feature set, so I'll add the scripting tag to your post.

 

~Barb

Votes

Translate

Translate
Community Expert ,
Mar 03, 2023 Mar 03, 2023

Copy link to clipboard

Copied

Hi @katheaton1:

 

You could set this up using multiple parent pages with the correct highlights, and assign the parent pages to the appropriate body pages, but no, you can't do what your title requests.

 

If automating this is critical, scripting can extend InDesign's feature set, so I'll add the scripting tag to your post.

 

~Barb

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 ,
Mar 03, 2023 Mar 03, 2023

Copy link to clipboard

Copied

Just for comments! [paid Script]

https://youtu.be/1qFxiRQ4kdM

 

(^/)  The Jedi

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
New Here ,
Mar 03, 2023 Mar 03, 2023

Copy link to clipboard

Copied

LATEST

Thank you, good idea! I'll look into the script option also.

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