[PATCH] SMPdesign: Fix meaningless consecutive blank pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 66df1c9aaaefb2ef5ccfd0c23837b33218a24f30 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Sat, 8 Feb 2020 08:29:08 +0900
Subject: [PATCH] SMPdesign: Fix meaningless consecutive blank pages

In the introduction of Dining Philosophers, there is two-page
"think about it" gap before presenting an answer.

Let's see what we need for print editions.

When the question is on an odd page, the answer can be on the next page
(the other side of the question's page).
When the question is on an even page, the answer should be on the
next even page to prevent it from being spotted too early.

For electronic editions, there needs to be a gap of at least one
page regardless of the question's position.

As \cleardoublepage changes its behavior depending on whether it is
on an odd page (one blank page) or on an even page (nothing), it
can not cover the requirement for electronic editions.

For our purpose, the sequence of \clearpage, "((Intentional blank page)",
and another \clearpage should suffice.

Reported-by: Paul E. McKenney <paulmck@xxxxxxxxxx>
Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 SMPdesign/partexercises.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SMPdesign/partexercises.tex b/SMPdesign/partexercises.tex
index 5d1f1fb0..4ceaefeb 100644
--- a/SMPdesign/partexercises.tex
+++ b/SMPdesign/partexercises.tex
@@ -107,9 +107,9 @@ philosophers to eat concurrently.
 Please think about ways of partitioning the Dining Philosophers Problem
 before reading further.
 
-\pagebreak
+\clearpage
 (Intentional blank page)
-\cleardoublepage
+\clearpage
 
 \begin{figure}[tb]
 \centering
-- 
2.17.1




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux