From: Akira Yokosawa <akiyks@gmail.com>
To: paulmck@linux.vnet.ibm.com
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: Re: [PATCH v3 1/3] qqz: Improve accuracy of cross-links
Date: Sun, 24 Apr 2016 23:23:35 +0900 [thread overview]
Message-ID: <571CD6E7.4060301@gmail.com> (raw)
In-Reply-To: <571C6CBB.4080101@gmail.com>
On 2016/04/24 15:50, Akira Yokosawa wrote:
> On 2016/04/24 12:50, Akira Yokosawa wrote:
>> On 2016/04/24 10:08, Akira Yokosawa wrote:
>>> >From 6ecb00b37832372d18cdc7ff5eaea9a53eab3cb9 Mon Sep 17 00:00:00 2001
>>> From: Akira Yokosawa <akiysw@gmail.com>
>>> Date: Sun, 24 Apr 2016 08:19:20 +0900
>>> Subject: [PATCH v3 1/3] qqz: Improve accuracy of cross-links
>>>
>>> In commit 33b93f8258f5 ("qqz: Cross-link questions and answers"),
>>> cross-links of quick quizzes and their answers were implemented.
>>> However it uses the \stepcounter{} command, and direct references
>>> of 'quickquizctr' counter is not output to the .aux file.
>>> The symptom is when you click on a hyperlink in the resulting PDF,
>>> you jump to a random nearby label such as that of Figure, Table,
>>> or Section, etc. which happens just before the \label{} using
>>> 'quickquizctr'.
>>>
>>> By using \refstepcounter{} instead and using 2 counters
>>> 'quickquizctr' and 'quickquizctrC' ('C' stands for 'Chapter'),
>>> each of which is automatically reset at a new chapter and
>>> a new section respectively, and defining \theHNum at the head
>>> of qqz.sty, then redefining it within the \QuickQuizAnsers
>>> command, matching QQ.n.m's and QQA.n.m's are output to the .aux
>>> file correctly.
>>>
>>> By applying this change, resulting hyperlinks become to jump to
>>> places almost exactly where you'd expect.
>>>
>>> This change may have the effect of increasing the required number
>>> of 'pdflatex' iterations to get a final result. The following
>>> commit will take care of it.
>>>
>>> This commit also updates the copyright notices in the header,
>>> including the name of Paolo Bonzini who authored the commit
>>> mentioned above.
>>>
>>> Signed-off-by: Akira Yokosawa <akiysw@gmail.com>
>>
>> Hi, Paul.
>>
>> I noticed there really is a change in the behavior of hyperref's of
>> Chapters. They used to jump to the top of the pages, but after
>> this patch is applied, they jump to the bottom of the Chapter titles.
>> So you need to scroll a little to see the title of the Chapters.
>>
>> I think this is a regression caused by this patch.
>>
>> If you do think so, please keep from pushing this series out.
>>
>> Or the benefit of the patch is big enough compared to the change
>> of the behavior?
>>
>> Regards, Akira
>>
>
> Hi,
>
> Seems like it is not easy (at least for me) to find out what
> is wrong in this patch.
>
> So there are a few options I can think of you might want to do
> (assuming you'd like to push the refactoring of runlatex.sh):
>
> 1) Apply the series as a whole, then revert [1/3], and push out.
>
> 2) Me resubmit another patch series which just contains the refactoring.
>
> 3) Apply the series as a whole, and push it as is in the hope
> of someone familiar with LaTeX and hyperref might appear.
>
> Thoughts?
>
> Regards, Akira
>
Hi, Paul.
So, you've pushed the whole series.
And I have to apologize to you for the noise.
I've just realized that I compared apples and oranges.
In perfbook.pdf, hyperref of a Chapter jumps to the bottom of its
title, while in perfbook-1c.pdf, it jumps to the head of the page.
There was no change in the behavior.
I'm very glad I can contribute the perfbook project in this manner.
So far, patches I submitted were mostly cosmetic changes.
I'm planning to submit something that touches the actual contents, too.
But don't expect too much.
Thanks so much, Akira
next prev parent reply other threads:[~2016-04-24 14:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-24 0:50 [PATCH v3 0/3] qqz and runlatex improvements Akira Yokosawa
2016-04-24 1:08 ` [PATCH v3 1/3] qqz: Improve accuracy of cross-links Akira Yokosawa
2016-04-24 3:50 ` Akira Yokosawa
2016-04-24 6:50 ` Akira Yokosawa
2016-04-24 14:23 ` Akira Yokosawa [this message]
2016-04-24 17:57 ` Paul E. McKenney
2016-04-24 22:19 ` Akira Yokosawa
2016-04-24 22:48 ` Paul E. McKenney
2016-04-25 12:34 ` Akira Yokosawa
2016-04-24 17:53 ` Paul E. McKenney
2016-05-09 12:07 ` Paolo Bonzini
2016-05-11 8:56 ` Paul E. McKenney
2016-04-24 1:10 ` [PATCH v3 2/3] Improve behavior of build scripts Akira Yokosawa
2016-04-24 1:12 ` [PATCH v3 3/3] Remove *.bbl from repository Akira Yokosawa
2016-04-24 5:05 ` [PATCH v3 0/3] qqz and runlatex improvements 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=571CD6E7.4060301@gmail.com \
--to=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.