# Random "Keep with next paragraph" not working

**URL:** <https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654>\
**Category:** Scrivener for macOS\
**Tags:** support\
**Created:** [September 14, 2026, 3:41pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654 "2026-09-14T15:41:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Softy](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@Softy](https://forum.literatureandlatte.com/u/Softy)\
**Post date:** [September 14, 2026, 3:41pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/1 "2026-09-14T15:41:07Z")

</div>

Hi,

I created an element under Script Settings for SLUG LINES that has the option box “keep with next paragraph” checked and it usually works fine when I compile to PDF.

However, in one particular instance, it is leaving the slug line alone at the bottom of the page (even though there is plenty of room for another line or two). Any suggestions on what it could be?

---

<div class="post-metadata">

**Author:** ![Vincent\_Vincent](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/vincent_vincent/32/19680_2.png) [@Vincent\_Vincent](https://forum.literatureandlatte.com/u/Vincent_Vincent)\
**Post date:** [September 14, 2026, 3:49pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/2 "2026-09-14T15:49:16Z")

</div>

In “keep with next”, next litterally means “with the next one”. Not “next to”.  
It is a paragraph to paragraph setting.

In this case, if your line is at the bottom of a page, that’s an orphan.  
And you need to use “Prevent widows and orphans” for this. (Whatever the name is. I run the Windows version, we don’t have that function.)

If your line is actually a paragraph of its own, with `Keep with next` properly set, this could be the result of an abuse of the setting.  
If a big chunk of paragraphs are told to keep with next, that chunk still needs to be split somehow, should it be bigger than what a page can hold.

---

<div class="post-metadata">

**Author:** ![Softy](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@Softy](https://forum.literatureandlatte.com/u/Softy)\
**Post date:** [September 14, 2026, 3:55pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/3 "2026-09-14T15:55:22Z")

</div>

It is a paragraph of its own. Example:

_LIVING ROOM_

_Joe enters and sits on the couch._

In this case, the slug line is “LIVING ROOM” and should not be orphaned. I thought the keep with next setting handled this.

What do you mean by abusing the setting?

---

<div class="post-metadata">

**Author:** ![Vincent\_Vincent](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/vincent_vincent/32/19680_2.png) [@Vincent\_Vincent](https://forum.literatureandlatte.com/u/Vincent_Vincent)\
**Post date:** [September 14, 2026, 3:56pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/4 "2026-09-14T15:56:45Z")

</div>

> [@Softy](#):
>
> What do you mean by abusing the setting?

Too much of it for no reason. Untargeted use.

. . . . . . . . .

Is “LIVING ROOM” written in your editor, or is it the result of a compiler’s insertion ?

---

<div class="post-metadata">

**Author:** ![Softy](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@Softy](https://forum.literatureandlatte.com/u/Softy)\
**Post date:** [September 14, 2026, 4:00pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/5 "2026-09-14T16:00:32Z")

</div>

It’s all written in the editor. The paragraph that follows is actually four lines. It certainly looks like there is room for four lines after LIVING ROOM before the margin on the page in question.

---

<div class="post-metadata">

**Author:** ![Vincent\_Vincent](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/vincent_vincent/32/19680_2.png) [@Vincent\_Vincent](https://forum.literatureandlatte.com/u/Vincent_Vincent)\
**Post date:** [September 14, 2026, 4:01pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/6 "2026-09-14T16:01:35Z")

</div>

Did you space it out by using a double return rather than space after ?  
(That would be bad practice.)

---

<div class="post-metadata">

**Author:** ![rms](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@rms](https://forum.literatureandlatte.com/u/rms)\
**Post date:** [September 14, 2026, 4:02pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/7 "2026-09-14T16:02:46Z")

</div>

Screen shot with “invisibles” showing would be useful. I am curious about the comment

> [@Softy](#):
>
> … certainly looks like there is room for four lines after LIVING ROOM …

---

<div class="post-metadata">

**Author:** ![Softy](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@Softy](https://forum.literatureandlatte.com/u/Softy)\
**Post date:** [September 14, 2026, 4:20pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/8 "2026-09-14T16:20:45Z")

</div>

Solved. See next reply.

---

<div class="post-metadata">

**Author:** ![Softy](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@Softy](https://forum.literatureandlatte.com/u/Softy)\
**Post date:** [September 14, 2026, 4:23pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/9 "2026-09-14T16:23:47Z")

</div>

Well, I’m not sure what I did, but after retyping the whole section, it works now, so problem solved. Thank you!

---

<div class="post-metadata">

**Author:** ![Vincent\_Vincent](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/vincent_vincent/32/19680_2.png) [@Vincent\_Vincent](https://forum.literatureandlatte.com/u/Vincent_Vincent)\
**Post date:** [September 14, 2026, 4:26pm UTC](https://forum.literatureandlatte.com/t/random-keep-with-next-paragraph-not-working/154654/10 "2026-09-14T16:26:56Z")

</div>

Good good. It happens, with computers, sometimes.  
(They fix themselves, go figure.)
