Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now