>From f4a50f79fdd13552b482b5e0f8ef0ff9b199e24b Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Sun, 8 Mar 2020 00:59:39 +0900 Subject: [PATCH 1/3] howto: Update Answer to QQZ 1.3 to mention inline QQA is not easy The macro \QuickQuizAnswer{} defined in qqz.sty currently discards its argument. If you modify it to enable inline QQA, pdflatex will end up in error due to verbatim contents and other fragile elements within macro arguments. Appendix E's code (qqz.tex) works because the macros \QuickQ{} and \QuickA{} have no argument. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- howto/howto.tex | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/howto/howto.tex b/howto/howto.tex index b0b0e487..18757934 100644 --- a/howto/howto.tex +++ b/howto/howto.tex @@ -207,10 +207,14 @@ Here are a few possible strategies: to ignore, you can always clone the \LaTeX{} source for this book from the git archive. You can then modify \path{Makefile} and \path{qqz.sty} to eliminate - the Quick Quizzes from the PDF output. - Alternatively, you could modify these two files so as - to pull the answers inline, immediately following - the questions. + the Quick Quizzes from the PDF output.\footnote{ + On the other hand, modifying these two files does not + suffice at the moment if what you'd like to do is to pull + the answers inline, immediately following the questions. + This is due to the fragility of verbatim environments + within arguments of \LaTeX\ macros. + It should still be possible, for example, by editing every + \path{.tex} source by a script, though.} \item Look at the answer immediately rather than investing a large amount of time in coming up with your own answer. -- 2.17.1