Skip to main content
Participating Frequently
May 12, 2018
Answered

Make all text in sentence bold after number

  • May 12, 2018
  • 2 replies
  • 1539 views

I need to change headings in T&C's to be bold.

For example:

3.8 What is your smoking policy?

For the comfort and enjoyment of our guests, our ships are designated as non-smoking; however, we recognise that some of our guests do smoke. Therefore, to provide an onboard environment that also satisfies smokers, we have designated certain areas of the ship as smoking areas. Cigarette, cigar, e-cigarette and pi

I used to have GREP or Nested Style that changed the copy to bold after every occurrence of a number at the beginning of a sentence but cannot find the InDesign file that it was set up on.

Can someone please help me out.

Thanks in advance.

This topic has been closed for replies.
Correct answer FRIdNGE

(?s)\d+\.\d+\h.+

Best,

Michel, from FRIdNGE

2 replies

jane-e
Community Expert
Community Expert
May 12, 2018

If you want the entire paragraph to be bold as in your example, you only need a paragraph style.

If you want the number to be different, you can do it with nested styles as you suggest, or with bullets and numbering.

Create a character style for the number. Choose Bullets and Numbering from the Paragraph (or Control) panel menu, choose Numbering, and apply the character style to the number.

jane-e
Community Expert
Community Expert
May 12, 2018

Bob said it faster and post first!

BobLevine
Community Expert
Community Expert
May 12, 2018

Why no use paragraph numbering with a character style for the number?

Mark SK-MAuthor
Participating Frequently
May 12, 2018

Hi Bob,

Thanks for your prompt reply.

What I'm after is to have one paragraph style called Body Copy and for a GREP Style or Nested Style to kick in when it sees a number that makes the whole paragraph bold ie

Original paragraph:

3.8 What is your smoking policy?

For the comfort and enjoyment of our guests, our ships are designated as non-smoking; however, we recognise that some of our guests do smoke. Therefore, to provide an onboard environment that also satisfies smokers, we have designated certain areas of the ship as smoking areas. Cigarette, cigar, e-cigarette and pi

Because the paragraph/sentence starts with a 3 it automatically formats as bold

Desired result:

3.8 What is your smoking policy?

For the comfort and enjoyment of our guests, our ships are designated as non-smoking; however, we recognise that some of our guests do smoke. Therefore, to provide an onboard environment that also satisfies smokers, we have designated certain areas of the ship as smoking areas. Cigarette, cigar, e-cigarette and pi

I know that I'll have to have a character style that replicates the settings of the paragraph style but with a bold font selected. I don't particularly want to have to find every heading and change the paragraph style manually.

The reason being is I have 20 languages to format with over 50 headings in each one.

So I need to know what the GREP or Nested style settings are.

Thanks in advance

Mark

FRIdNGE
FRIdNGECorrect answer
May 12, 2018

(?s)\d+\.\d+\h.+

Best,

Michel, from FRIdNGE