[PATCH 1/6] qqz.sty: Improve page/column breaks in Appendix E

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

 



>From 3f5304088091cdbc434d7dacf5835e65c79da5ca Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Thu, 5 Mar 2020 23:40:39 +0900
Subject: [PATCH 1/6] qqz.sty: Improve page/column breaks in Appendix E

For "Quick Quiz" headings to be more likely at the top of pages/
columns in Appendix E, put \goodbreak hint after the white box mark
at the end of QQA.

Also tweak glue parameters to suppress the increase in the total
number of pages.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 qqz.sty | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qqz.sty b/qqz.sty
index e2dbade6..9b2aed8e 100644
--- a/qqz.sty
+++ b/qqz.sty
@@ -66,7 +66,7 @@
 	\Epigraph{The Answer to the Ultimate Question of Life, The Universe,
 		  and Everything.}
 		 {\emph{``The Hitchhikers Guide to the Galaxy'', Douglas~Adams}}
-	\setlength{\parskip}{0.0pt plus 2ex}
+	\setlength{\parskip}{0.0pt plus 1ex}
 	\input{qqz}
 	\setlength{\parskip}{0.0pt plus 1.0pt}% return to default
 }
@@ -85,11 +85,11 @@
 
 \newcommand{\QuickA}[1]{%
 	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\rule{7pt}{7pt}}
-	\par\vspace{0.5\baselineskip plus .5ex minus .3ex}
+	\par\vspace{0.2\baselineskip plus .2ex minus .1ex}
 	\noindent\textbf{Answer:} \\ }
 
 \newcommand{\QuickE}{%
 	\hyperref[QQE.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
-	\vspace{1.0\baselineskip plus 2ex minus .5ex}
+	\goodbreak\vspace{0.7\baselineskip plus .5ex minus .2ex}
 }
 
-- 
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