Skip to main content
Inspiring
May 18, 2025
Answered

Stlyle on only one word

  • May 18, 2025
  • 1 reply
  • 392 views

What is the easiest way to get every time a specifc word appears to be capitilized (first letter only)?

Correct answer Eugene Tyson

Create a character style and call it's 'Cap first letter' or something similar

 

so then you go to the paragraph style and insert the GREP code and apply the style

 

Style is Cap

code is 

\b(w)(?=ord\b)

 

for whatever word you want - you can replace it like tbps - I think you asked in another thread

so the code would be 

\b(t)(?=bps\b)

 

or if it's concrete

\b(c)(?=oncrete\b)

 

any word you want 

 

if you change the word - say in my example to 'words' or 'wording' then the w reduces back to lowercase, as it no longer matches the string.

 

 

1 reply

Eugene TysonCommunity ExpertCorrect answer
Community Expert
May 18, 2025

Create a character style and call it's 'Cap first letter' or something similar

 

so then you go to the paragraph style and insert the GREP code and apply the style

 

Style is Cap

code is 

\b(w)(?=ord\b)

 

for whatever word you want - you can replace it like tbps - I think you asked in another thread

so the code would be 

\b(t)(?=bps\b)

 

or if it's concrete

\b(c)(?=oncrete\b)

 

any word you want 

 

if you change the word - say in my example to 'words' or 'wording' then the w reduces back to lowercase, as it no longer matches the string.

 

 

Inspiring
May 18, 2025

thanks.

but why wouldn't it be working here?

 

Community Expert
May 18, 2025

Take out the full stop in your code - not required anyway 

 

\b(t)(?=bsp\b) is sufficient