From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH 1/2] qqz: avoid duplicate references
Date: Thu, 17 Sep 2015 11:34:09 -0700 [thread overview]
Message-ID: <20150917183409.GG4029@linux.vnet.ibm.com> (raw)
In-Reply-To: <1442482376-16981-2-git-send-email-pbonzini@redhat.com>
On Thu, Sep 17, 2015 at 11:32:55AM +0200, Paolo Bonzini wrote:
> \refstepcounter makes LaTeX create a label "quickquizctr.NN". However
> such labels repeat in every chapter, which causes a complaint that
> "destination with the same identifier has been already used" in the
> log. Avoid clutter by using \stepcounter instead.
Nice! Queued and pushed.
Thanx, Paul
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> qqz.sty | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/qqz.sty b/qqz.sty
> index 6a9da91..ca70c56 100644
> --- a/qqz.sty
> +++ b/qqz.sty
> @@ -23,7 +23,7 @@
> \label{#1}
> \setcounter{quickquizctr}{0}}
> \newcommand{\QuickQuiz}[1]{
> - \refstepcounter{quickquizctr}
> + \stepcounter{quickquizctr}
> \textbf{Quick Quiz \thechapter.\thequickquizctr:}}
> \newcommand{\QuickQuizAnswer}[1]{\rule{7pt}{7pt}}
> \newcommand{\QuickQuizEnd}{}
> @@ -48,7 +48,7 @@
> \section{#2}}
>
> \newcommand{\QuickQ}[1]{
> - \refstepcounter{quickquizctr} ~ \\ ~ \\
> + \stepcounter{quickquizctr} ~ \\ ~ \\
> \textbf{Quick Quiz \QuickQuizAnswerChapter.\thequickquizctr:} #1 ~ \\ }
>
> \newcommand{\QuickA}[1]{\rule{7pt}{7pt} \\ ~ \\ \textbf{Answer:} \\ }
> --
> 2.5.0
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe perfbook" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2015-09-17 18:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 9:32 [PATCH 0/2] Small improvements to qqz.sty Paolo Bonzini
2015-09-17 9:32 ` [PATCH 1/2] qqz: avoid duplicate references Paolo Bonzini
2015-09-17 18:34 ` Paul E. McKenney [this message]
2015-09-17 9:32 ` [PATCH 2/2] qqz: cross-link questions and answers Paolo Bonzini
2015-09-17 18:34 ` 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=20150917183409.GG4029@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--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.