All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SMPdesign: Fix meaningless consecutive blank pages
@ 2020-02-08 12:03 Akira Yokosawa
  2020-02-08 13:03 ` Paul E. McKenney
  0 siblings, 1 reply; 7+ messages in thread
From: Akira Yokosawa @ 2020-02-08 12:03 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From 66df1c9aaaefb2ef5ccfd0c23837b33218a24f30 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
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@kernel.org>
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-02-09  4:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-08 12:03 [PATCH] SMPdesign: Fix meaningless consecutive blank pages Akira Yokosawa
2020-02-08 13:03 ` Paul E. McKenney
2020-02-08 14:44   ` Akira Yokosawa
2020-02-08 15:18     ` Paul E. McKenney
2020-02-08 15:46       ` Akira Yokosawa
2020-02-08 17:56         ` Paul E. McKenney
2020-02-09  4:02           ` Akira Yokosawa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.