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

Keeping words (names in particular) together

New Here ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Anyone know how to keep names together when listed by separated commas? My client doesn't want names broken over lines. There are 200 pages of listings so it's really time consuming to put soft returns or no breaks in manually.

Tried using Greps but didn't seem to work - or at least I was doing it wrong...

Please help!!!

TOPICS
How to , Print

Views

725

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 , May 24, 2021 May 24, 2021

Setup a character style and call it No Break.

 

Select the No Break and ensure it's ticked in the Character Style

Untitled-1.jpg

 

Create a paragraph style for list names

The GREP  expression for any text between 2 commas

(?<=, ).+?(?=,)

 

Capture.PNG

 

 

Apply the List paragraph style to all your paragraphs of text with names.

Votes

Translate

Translate
Community Expert ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Setup a character style and call it No Break.

 

Select the No Break and ensure it's ticked in the Character Style

Untitled-1.jpg

 

Create a paragraph style for list names

The GREP  expression for any text between 2 commas

(?<=, ).+?(?=,)

 

Capture.PNG

 

 

Apply the List paragraph style to all your paragraphs of text with names.

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 ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

LATEST

Thank you so much! I already had the character style set up so was on the right track, but just didn't know what the expression was.

You've saved me!

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