All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ
Date: Mon, 18 Jul 2016 15:42:41 -0700	[thread overview]
Message-ID: <20160718224241.GO7094@linux.vnet.ibm.com> (raw)
In-Reply-To: <3c27b3c8-77e2-e672-290d-a4dca787681e@gmail.com>

On Tue, Jul 19, 2016 at 06:50:07AM +0900, Akira Yokosawa wrote:
> >From e51d65d2b5e10dcf4bd4f5970010c0cded292f0e Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Mon, 18 Jul 2016 08:41:12 +0900
> Subject: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ
> 
> This commit modifies the target of back link at the end of QQA
> (white box) to the end of corresponding QQ in the main text.
> This change enables you to easily reach the text following a
> (possibly long) QQ by clicking a white box at the end of the QQA.
> 
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>

Much better!  Queued and pushed, thank you!

							Thanx, Paul

> ---
>  qqz.sty | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/qqz.sty b/qqz.sty
> index 0c97df9..4505f8c 100644
> --- a/qqz.sty
> +++ b/qqz.sty
> @@ -20,6 +20,7 @@
>  %%          Akira Yokosawa <akiyks@gmail.com>   # improvement of cross-link
> 
>  \newcounter{quickquizctr}[chapter]
> +\newcounter{quickquizctrE}[chapter]
>  \newcounter{quickquizctrC}[section]
>  \newcommand*{\theHNum}{\arabic{chapter}.\arabic{quickquizctr}}
>  \newcommand{\QuickQuizAnswerChapter}{\textbf{Unknown QuickQAC!!!}}
> @@ -33,7 +34,10 @@
>  \newcommand{\QuickQuiz}[1]{
>  	\refstepcounter{quickquizctr}
>  	\QuickQHeading{QQ}{QQA}{\thechapter.\thequickquizctr}}
> -\newcommand{\QuickQuizAnswer}[1]{\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}}
> +\newcommand{\QuickQuizAnswer}[1]{%
> +	\refstepcounter{quickquizctrE}%
> +	\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}%
> +	\label{QQE.\thechapter.\thequickquizctrE}}
>  \newcommand{\QuickQuizEnd}{}
> 
>  % To create a macro referencing the previously defined quick quiz:
> @@ -84,7 +88,7 @@
>  	\noindent\textbf{Answer:} \\ }
> 
>  \newcommand{\QuickE}{%
> -	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
> +	\hyperref[QQE.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
>  	\vspace{1.5\baselineskip}
>  }
> 
> -- 
> 1.9.1
> 
> 


  reply	other threads:[~2016-07-18 22:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-17  5:50 [PATCH] qqz: Add another hyperlink to black box in QQA Akira Yokosawa
2016-07-17 21:59 ` Paul E. McKenney
2016-07-17 22:54   ` Akira Yokosawa
2016-07-17 23:36     ` Paul E. McKenney
2016-07-17 23:58       ` Akira Yokosawa
2016-07-18  0:01         ` [PATCH] qqz: Modify back link target at end of QQA to the end of QQ Akira Yokosawa
2016-07-18 15:25           ` Paul E. McKenney
2016-07-18 21:48             ` Akira Yokosawa
2016-07-18 21:50               ` Akira Yokosawa
2016-07-18 22:42                 ` Paul E. McKenney [this message]
2016-07-18  0:04         ` [PATCH] qqz: Modify back link target at end of QQA to just after " Akira Yokosawa
2016-07-18  6:54         ` [PATCH] qqz: Add another hyperlink to black box in QQA Paul E. McKenney
2016-07-18 10:28           ` Akira Yokosawa

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=20160718224241.GO7094@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akiyks@gmail.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.