blob: 70eac731b8aaa27f3a58efc24408669f9969ab2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Test that lines and headings doesn't become orphan.
--- flow-heading-no-orphan ---
#set page(height: 100pt)
#lorem(12)
= Introduction
This is the start and it goes on.
--- flow-par-no-orphan-and-widow-lines ---
// LARGE
#set page("a8", height: 140pt)
#set text(weight: 700)
// Fits fully onto the first page.
#set text(blue)
#lorem(27)
// The first line would fit, but is moved to the second page.
#lorem(20)
// The second-to-last line is moved to the third page so that the last is isn't
// as lonely.
#set text(maroon)
#lorem(11)
#lorem(13)
// All three lines go to the next page.
#set text(olive)
#lorem(10)
|