diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2020-03-09 09:25:25 +0900 |
---|---|---|
committer | Akira Yokosawa <akiyks@gmail.com> | 2020-03-15 08:51:18 +0900 |
commit | 4c7151455e14142f2b7c704468cbe560877c9ff6 (patch) | |
tree | 1f059e903d49e9b44f9864865e77a8d226d8b624 /utilities | |
parent | c811727b76356d53dff7614d3361353527953dd1 (diff) | |
download | perfbook-4c7151455e14142f2b7c704468cbe560877c9ff6.tar.gz |
treewide: Renew format of Quick Quiz macro
The format of \QuickQuiz{} macro before this change was not suitable
to be omitted entirely as suggested in the Answer to Quick Quiz 1.3.
For the question part to be ignored, it must be given as the argument
of the macro.
Update extractqqz.sh and qqz.sty accordingly.
Note that in debugging/debugging.tex, a verbatim snippet of VerbatimU
environment can not be held in \QuickQuiz's argument.
Instead, use fancyvrb's commands to save a verbatim content outside
the argument and to use the saved content inside the argument.
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Diffstat (limited to 'utilities')
-rw-r--r-- | utilities/extractqqz.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utilities/extractqqz.sh b/utilities/extractqqz.sh index a6bf22b5..f4559918 100644 --- a/utilities/extractqqz.sh +++ b/utilities/extractqqz.sh @@ -24,9 +24,9 @@ echo "% mainfile: perfbook.tex" sed -n -e '/^\\QuickQuizChapter{/p' \ - -e '/^\\QuickQuiz{/,/^} \\QuickQuizEnd/p' | + -e '/^\\QuickQuiz{/,/^}\\QuickQuizEnd/p' | sed -e 's/^\\QuickQuizChapter{/\\QuickQAC{/' \ - -e 's/^\\QuickQuiz{/\\QuickQ{/' \ - -e 's/^\\QuickQuizAnswer{/\\QuickA{}/' \ + -e 's/^\\QuickQuiz{/\\QuickQ{}/' \ + -e 's/^}\\QuickQuizAnswer{/\\QuickA{}/' \ -e 's/^\\QContributedBy{/\\ContributedBy{/' \ - -e 's/^} \\QuickQuizEnd/\\QuickE{}/' + -e 's/^}\\QuickQuizEnd/\\QuickE{}/' |