From: "Paul E. McKenney" <paulmck@linux.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
perfbook@vger.kernel.org
Subject: Re: [PATCH] Enable hyperlink to line label in code snippet
Date: Sun, 16 Sep 2018 17:11:43 -0700 [thread overview]
Message-ID: <20180917001143.GG652@linux.ibm.com> (raw)
In-Reply-To: <3283f8e0-da34-6bac-0467-aa1e40955ee2@gmail.com>
On Mon, Sep 17, 2018 at 08:01:13AM +0900, Akira Yokosawa wrote:
> >From d189669d1f093262b522ab012e04a55da871421a Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Mon, 17 Sep 2018 07:57:40 +0900
> Subject: [PATCH] Enable hyperlink to line label in code snippet
>
> Now you can jump to the exact line by cliking a line number in
> the PDF generated by \lnref{} and \ref{} with full label name.
>
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Queued and pushed, thank you very much!
Thanx, Paul
> ---
> perfbook.tex | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/perfbook.tex b/perfbook.tex
> index fb35c5a..1dc72c2 100644
> --- a/perfbook.tex
> +++ b/perfbook.tex
> @@ -241,9 +241,9 @@
> \setcounter{secnumdepth}{3}
> %\fvset{fontsize=\scriptsize,numbers=left,numbersep=5pt,xleftmargin=9pt,obeytabs=true,tabsize=2}
> \newcommand{\lnlblbase}{}
> -\newcommand{\lnlbl}[1]{\label{\lnlblbase:#1}}
> +\newcommand{\lnlbl}[1]{\phantomsection\label{\lnlblbase:#1}}
> \newcommand{\lnrefbase}{}
> -\newcommand{\lnref}[1]{\ref*{\lnrefbase:#1}}
> +\newcommand{\lnref}[1]{\ref{\lnrefbase:#1}}
>
> \newenvironment{linelabel}[1][]{\renewcommand{\lnlblbase}{#1}%
> \ignorespaces}{\ignorespacesafterend}
> --
> 2.7.4
>
>
next prev parent reply other threads:[~2018-09-17 0:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-15 2:08 [PATCH 1/2] count: Use new scheme for updated 2 snippets Akira Yokosawa
2018-09-15 2:14 ` [PATCH 2/2] count: Reword Quick Quiz 5.6 to adjust context Akira Yokosawa
2018-09-16 22:02 ` Paul E. McKenney
2018-09-16 22:52 ` Akira Yokosawa
2018-09-16 23:01 ` [PATCH] Enable hyperlink to line label in code snippet Akira Yokosawa
2018-09-17 0:11 ` Paul E. McKenney [this message]
2018-09-16 22:01 ` [PATCH 1/2] count: Use new scheme for updated 2 snippets 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=20180917001143.GG652@linux.ibm.com \
--to=paulmck@linux.ibm.com \
--cc=akiyks@gmail.com \
--cc=paulmck@linux.vnet.ibm.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.