Re: [PATCH] qqz.sty: Permit column/page break in front of Quick Quiz heading

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

 



On Sun, 1 Mar 2020 09:51:32 -0800, Paul E. McKenney wrote:
> 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?

2nd hunk causes the headings of Sections E.3, E.5, E.10, E.13, E.17,
and E.20 to be at the bottom.  So please just apply the first hunk.
Also, the title and the change log need some adjustment.

        Thanks, Akira

> 
> 							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]{%
> 



[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