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

Line break in numbered list (title paragraph style)

Explorer ,
Mar 11, 2019 Mar 11, 2019

Hello,

I was hoping to create a stile for my chapter titles with the number of my chapter on the first line and the title right below:

1
My wonderful title

Unfortunately numbered list will not accept soft line break after the number, and if I try to put a tab in the end of the line in order to force it to start after, it will go out of the text frame due to conflicting between rules. I can manually add the line break or the tabs to force it to go down, but I'd like to know if there could be another way around.

Regards

Lila

4.8K
Translate
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 11, 2019 Mar 11, 2019

Hi Lila,

you could automate your task inserting line breaks by using GREP Find/Change.

Apply a paragraph style to your numbered paragraphs first. E.g. named: "Numbered List"

GREP Find pattern:

^(?<!\n)(.)

Means, if no line break is at the beginning of a paragraph find the first character of a paragraph and make it a group you later can use for change.

^ beginning of a paragraph

(?<!) Negative lookbehind without specifying anything what should be looked at.

(?<!\n) Negative lookbehind with line break spe

...
Translate
Community Expert ,
Mar 11, 2019 Mar 11, 2019

Hi Lila,

you could automate your task inserting line breaks by using GREP Find/Change.

Apply a paragraph style to your numbered paragraphs first. E.g. named: "Numbered List"

GREP Find pattern:

^(?<!\n)(.)

Means, if no line break is at the beginning of a paragraph find the first character of a paragraph and make it a group you later can use for change.

^ beginning of a paragraph

(?<!) Negative lookbehind without specifying anything what should be looked at.

(?<!\n) Negative lookbehind with line break special character \n: Do not find something that comes after a line break special character \n

(.) Single character, that's a dot, as group.

Applied paragraph style: "Numbered List"

GREP Change pattern:

\n$1

Means, change to a line break and repeat the contents of the found group.

Regards,
Uwe

Translate
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
Explorer ,
Mar 13, 2019 Mar 13, 2019

Dear Uwe,

Thank you very much for your suggestions, this is almost the way I went form adding the soft breaks after each number, but this also means that I need to manually add or remove them each time (ie, if I don't want the line break on an alternative layout, I cannot use it as is).

So probably the right answer is that you cannot style a number with a newline after it.

Regards.

Translate
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
Community Expert ,
Mar 13, 2019 Mar 13, 2019
LATEST

Hi Lila,

for alternative layouts use a different paragraph style name.

Or if it's the same name it should not be stored in the same paragraph style group.

Then you will be able to successfully address the right text, and only that, by GREP Find/Replace.

Regards,
Uwe

Translate
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