On Mon, Mar 02, 2020 at 12:02:01AM +0900, Akira Yokosawa wrote: > >From 2c4fd06827d075a04c157d150cf036db1615f268 Mon Sep 17 00:00:00 2001 > From: Akira Yokosawa <akiyks@xxxxxxxxx> > Date: Sun, 1 Mar 2020 21:47:45 +0900 > Subject: [PATCH] qqz.sty: Permit column/page break in front of Quick Quiz heading > > It turned out that the definition of \QuickQuiz needs an explicit > hint (\goodbreak) for LaTeX to be able to break column/page in front > of it. > > Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> Nice! Does it make sense to also add \goodbreak at the end of a Quick Quiz, perhaps as follows? Doing so gets QQ2.11 all on one page in the two-column version. Does it also make sense to encourage page breaks at the beginnings of Quick Quizzes in the answer chapter? In other words, should I fold the diff below into your diff, or would doing so break something? Thanx, Paul ------------------------------------------------------------------------ diff --git a/qqz.sty b/qqz.sty index 4dd411f..8bd80d9 100644 --- a/qqz.sty +++ b/qqz.sty @@ -39,7 +39,7 @@ \refstepcounter{quickquizctrE}% \hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}% \label{QQE.\thechapter.\thequickquizctrE}} -\newcommand{\QuickQuizEnd}{} +\newcommand{\QuickQuizEnd}{\goodbreak} % To create a macro referencing the previously defined quick quiz: % \QuickQuizLabel{\QQname} @@ -80,7 +80,7 @@ \newcommand{\QuickQ}[1]{ \par \refstepcounter{quickquizctrC}% - \noindent + \goodbreak\noindent \QuickQHeading{QQA}{QQ}{\QuickQuizAnswerChapter.\thequickquizctrC} #1 ~ \\ } \newcommand{\QuickA}[1]{%