Re: [PATCH 1/2] qqz: avoid duplicate references

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

 



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@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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