Keep adjacent blocks on the same page
Ordinarily, a page break occurs only when the text extends to the bottom of the page. However, it is possible to impose keep conditions relative to different blocks and place them in the same page. There placed Q3 in the end of the second page and A relative to Q3 is placed at the top of the third page. This is an ordinary placement. In contrast, on page 4 and page 5, A and relative Q is placed in the same page without fail. By using -ah-keep-together.within-page: always;, or -ah-keep-together.within-column: always;. It’s possible to impose keep conditions relative to different blocks and place them in the same page.

Blocks with background color with no settings (default value)

Q1. Question Title

Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1.

A Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1.

Q2. Question Title

Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2.

B Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2.

Q3. Question Title

Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3.

C Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3.

Blocks with background color have keep-with-next="always"

Q1. Question Title

Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1.

A Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1.

Q2. Question Title

Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2.

B Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2.

Q3. Question Title

Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3.

C Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3.
Place adjacent blocks in the same column
By specifying -ah-keep-together.within-column:always;, blocks are placed on the same column. No setting is applied to Q2. Setting is applied to Q3.

Q1. Question Title

Here is a block of the answer sentence of Q1.

A Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1. Here is a block of the answer sentence of Q1.

Q2. Question Title

Here is a block of the answer sentence of Q2.

B Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2. Here is a block of the answer sentence of Q2.

Q3. Question Title

Here is a block of the answer sentence of Q3.

C Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3. Here is a block of the answer sentence of Q3.