Skip to main content
Participant
January 13, 2021
Question

InDesign - GREP Style Numbering multiple colors

  • January 13, 2021
  • 2 replies
  • 1137 views

Hey, 

I have been struggeling for a very long time but how can I add a secondary color in the numbering of Bullets & Numbering without converting the numbering to text.

I want to give the dot on the numbering another color. I don't want to do it manually anymore cause it's too much of work. 

This topic has been closed for replies.

2 replies

FRIdNGE
January 13, 2021

Simplify your auto-num to:  ^#

Include a Grep style: "Orange" + ^\.(?=\t)

 

… and run a simple regex as:  Find: ^. + para style  Replace by: .\t$0

 

For the end of the para, add a 2nd Grep style: "Orange" + [.…]$

 

(^/)  The Jedi

Participating Frequently
November 28, 2021

Hi Jedi!

Do grep styles also work on the numbers of a numbered list?

I have a set of headings numbered like this: "2.1.3  Introduction", and in the paragraph style the character color is set to red.

In this example I would want the "2.1." in black, and the "3 Introduction" in red.

How can I make that happen?

FRIdNGE
November 28, 2021

By Script!

 

(^/)  The Jedi

Participating Frequently
January 13, 2021

Hello @Humeyra5C94 

 

This isn't possible with just Bullets or number. Bullets and number is a all or nothing format. I know you didn't want to do a manual process, but if you look at paragraphy styles and Nested styles you would automatically format bullets yourself, using a character style to handle the dots.

 

You might need to play with this a little to get it working, but from a quick test it worked fine for me.

 

Regards