All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH -perfbook 0/5] Updates of qqz.sty
Date: Wed, 14 Apr 2021 19:47:51 +0900	[thread overview]
Message-ID: <b1bb1f84-9195-33ab-b6d1-ac68be1dca84@gmail.com> (raw)

Hi Paul,

A change in upstream hyperref package (v7.00j) breaks code in
qqz.sty.
Now, \refstepcounter in vertical mode can cause a page break.
Our use of \refstepcounter in framed Quick Quiz is in vertical
mode and if a page break happens at that point, destination point
set by \refstepcounter is discarded by tcolorbox, which results in
a missing destination.

This can be fixed by leaving vertical mode in front of \refstepcounter,
which is what Patch 1/5 does.

The updated code is compatible with older versions of hyperref as
long as our usage patterns are concerned.
Aa a bonus, new link-target positions look nicer (not too close to the
"Quick Quiz" labels).

Patches 2/5--4/5 are (in my opinion) improvements to the -nq build.
Seeing both Quizzes and Answers in the final section, one would
just see the answer without taking time to think about a quiz.
So these patches modify the -nq build so that chapter-wise sections
have only the quiz parts.
Answers are presented in Appendix E in the same way as the other
builds.

Patch 5/5 adds page references in the answers of non-nq builds.

        Thanks, Akira

--
Akira Yokosawa (5):
  qqz.sty: Use \refstepcounter after leaving vmode in tcolorbox
  qqz.sty: Modify -nq build to have chapterwise quiz-only section
  perfbook-lt.tex: Remove boolean qqzchpend
  howto, Makefile: Update answer to Quick Quiz 1.3 and 'make help-full'
  qqz.sty: Add page reference to QQA Appendix as the same as -nq build

 Makefile               |   5 +-
 advsync/rt.tex         |  18 -------
 howto/howto.tex        |  17 +-----
 perfbook-lt.tex        |   3 --
 qqz.sty                | 118 ++++++++++++++++++++++++-----------------
 utilities/divideqqz.pl |  25 ++++++++-
 6 files changed, 97 insertions(+), 89 deletions(-)

-- 
2.17.1


             reply	other threads:[~2021-04-14 10:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14 10:47 Akira Yokosawa [this message]
2021-04-14 10:54 ` [PATCH -perfbook 1/5] qqz.sty: Use \refstepcounter after leaving vmode in tcolorbox Akira Yokosawa
2021-04-14 11:04 ` [PATCH -perfbook 2/5] qqz.sty: Modify -nq build to have chapterwise quiz-only section Akira Yokosawa
2021-04-14 11:09 ` [PATCH -perfbook 3/5] perfbook-lt.tex: Remove boolean qqzchpend Akira Yokosawa
2021-04-14 11:11 ` [PATCH -perfbook 4/5] howto, Makefile: Update answer to Quick Quiz 1.3 and 'make help-full' Akira Yokosawa
2021-04-14 11:12 ` [PATCH -perfbook 5/5] qqz.sty: Add page reference to QQA Appendix as the same as -nq build Akira Yokosawa
2021-04-14 17:31 ` [PATCH -perfbook 0/5] Updates of qqz.sty Paul E. McKenney
2021-04-15  3:49   ` Akira Yokosawa
2021-04-15  5:11     ` Paul E. McKenney
2021-04-15  5:47       ` Akira Yokosawa
2021-04-15 15:30         ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b1bb1f84-9195-33ab-b6d1-ac68be1dca84@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@kernel.org \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.