EZ TuitionsAll tuitions

Google Docs Keep with Next for Schoolwork

To keep a heading on the same page as the paragraph under it, select the heading paragraph and click Keep with next in Line & paragraph spacing. Google says Keep with next keeps paragraph headings and text on the same page, and that it is not available in a document in pageless format.

Start with a practice document you own

Open your own unshared native Google Doc on a computer, in pages format. Check the account, the file title and your editing access. Use a new practice document, not real schoolwork.

Do not change a teacher's template, a shared assignment or another person's document, and agree changes with the owner first. If the practice document already holds work you need, stop and ask before going on.

This guide changes one paragraph setting. It does not teach page breaks, line spacing values, heading styles, tables of contents, sharing, handing work in, printing or exporting, or the mobile app.

Set out the lab report

The practice document is a fictional lab report called Dissolving sugar. It has a short Aim heading, a run of ordinary filler paragraphs, then a heading Materials and one short paragraph under it: Two beakers, a stopwatch and 50 mL of water.

For the filler, type one sentence such as Asha timed how long one spoon of sugar took to dissolve in cold water. as its own paragraph, and add more copies one at a time. After each, scroll and look. Stop when Materials is the last line on page 1 and its paragraph starts page 2. If both sit on one page, add or remove a single filler paragraph and look again.

Where that happens depends on your page size, font, font size, margins and line spacing. Keep the Materials paragraph to one line at your page width, and write down the settings you used, because someone else's page may split in a different place.

Expected change, by this guide's reading of Google's wording. Not run in Docs.
CheckBeforeExpected after
Last line of page 1Materials, aloneThe last filler line, with space left below it
First lines of page 2The paragraph about beakers, with no heading above itMaterials, then its paragraph
Blank paragraphs added00
Words and punctuationAs typedIdentical

Google says Keep with next keeps paragraph headings and text on the same page. The rows above apply that sentence to this fixture. The fixture is a proposal, and no one has run it in Docs for this guide.

Apply Keep with next to the heading

  1. Check that the practice document is in pages format, not pageless.
  2. Write down the page size, font, font size, margins and line spacing the document uses.
  3. Type the title, the Aim heading, then the Materials heading and its paragraph as set out above, and add filler paragraphs under Aim until the split appears.
  4. Note the last line of page 1, the first lines of page 2 and how many paragraphs the document has.
  5. Click inside the Materials heading only. Do not select the paragraph under it.
  6. Open Line & paragraph spacing.
  7. Click Keep with next once. Do not click any other option in that list.
  8. Scroll through every page and compare with the table above.

Google says the toolbar has paragraph spacing controls and that the Line & paragraph spacing list holds Keep with next. The page text this guide uses does not give the exact button or menu path to that list, so use the control labelled Line & paragraph spacing where your Docs shows it. Make the change once.

Tell the three options apart

Keep with next, Keep lines together and Prevent single lines sit in the same list. Google describes each one differently.

The three options, in Google's words
OptionWhat Google saysUsed here
Keep with nextKeeps paragraph headings and text on the same pageYes, on the Materials heading
Keep lines togetherKeeps all lines of text in the same paragraph on the same pageNo
Prevent single linesPrevents single lines at the beginning or end of paragraphsNo

By this guide's reading, the other two work inside one paragraph. The Materials heading is a single line, so they have no second line to keep with it, and neither one names the paragraph below. Google does not say what they would do to this fixture, and this guide did not test it.

Spot the common wrong result

The common wrong result is pushing the heading to the next page by hand: pressing Enter several times in front of Materials until it drops to page 2. It looks right for a moment. The text is no longer identical, because the document now has repeated blank paragraphs, and they stay in place if you later edit the text above. Keep with next is the option Google lists for keeping a heading with its text.

Check the pages and the text

Do not use the page count as the check. This guide does not say it stays the same or changes, because that depends on your setup and was not tested.

Know when to stop

The Google page this guide uses does not describe turning Keep with next off, so it gives no undo route. The safe stop is to work only in a throwaway practice document you own, so there is nothing to undo in real work.

If Materials does not stay with its paragraph, stop. Do not add blank lines, do not click other spacing options to compensate, and do not repeat the steps in a teacher's template or a shared assignment. Ask the document owner or your teacher.

Keep editing, sharing and hand-in separate

This changes how a paragraph is placed across pages while you edit. It does not share the file, change who can open it, hand it in or mark it. If a teacher asks for a PDF or printout, check that actual file separately and follow the teacher's hand-in instructions.

These are source checks, not a hands-on Docs or student-account test. No screenshots, keyboard or screen-reader use, export result, accessibility compliance or grade benefit is claimed.

Common questions

How do I keep a heading with the paragraph under it in Google Docs?

In your own practice document in pages format, select the heading paragraph, open Line & paragraph spacing and click Keep with next. Google says this keeps paragraph headings and text on the same page. This was not run in Docs.

Is Keep with next the same as Keep lines together?

No. Google says Keep lines together keeps all lines of text in the same paragraph on the same page, and Keep with next keeps paragraph headings and text on the same page. Prevent single lines is a third option. This guide uses only Keep with next.

Will Keep with next add blank lines or change my words?

Google does not say it adds or changes text. After clicking it, check that every word is identical and that no blank paragraph appeared. This guide has not run it in Docs, so check your own document.

Why can't I find Keep with next?

Google says Keep with next, Keep lines together and Prevent single lines are not available in a document in pageless format, and that the document must be in pages format. This guide does not teach switching format or diagnose other causes.

How do I undo Keep with next?

Google's page does not describe turning it off, so this guide gives no undo route. Practise only in a throwaway document you own, stop if the result is wrong, and do not add blank lines to fix it.

Sources and scope

Google's help text for the computer version was captured on and copied in by a person, because it could not be opened directly while this guide was written. Every Keep with next, Keep lines together, Prevent single lines and pages-format statement here comes from that text. The fixture and its expected result are this guide's own.