Re: pgfplots: link to top of embedded page

Liste des GroupesRevenir à ct tex 
Sujet : Re: pgfplots: link to top of embedded page
De : spamless (at) *nospam* gmx.de (Holger Schieferdecker)
Groupes : comp.text.tex
Date : 30. Sep 2024, 10:32:11
Autres entêtes
Organisation : [ posted via ] IN-Ulm
Message-ID : <vddr6rU3p0jqL1@usenet.in-ulm.de>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Am 28.09.2024 um 02:35 schrieb Ulrich D i e z:
Holger Schieferdecker wrote:
 
Am 27.09.2024 um 04:51 schrieb Ulrich D i e z:
Holger Schieferdecker wrote:
>
I include single page PDF documents with \includepdf. They have the same
size and aspect ratio as the output document (A4). With the option
"addtotoc" I can add an entry to the tableofcontents and the bookmarks.
But clicking on that doesn't jump to the top of the included page.
>
It seems like the link target set by \includepdf is set with respect of
the page margins of the output document. I didn't find any hints in the
manual of pdfpages, besides that "addtotoc" is experimental. Is there a
way of positioning the link target at the top of the included pdf page?
>
I think there is no official interface but you can hook into
\includegraphics.
>
Many thanks for your help, that works. There is one difference in the
toc entries. These don't get a number. But I consider that even better.
 If you wish numbered sections in the table of contents, then remove the
line
 \addcontentsline{#1}{#2}{#3}%
 right before
 \NR@gettitle{#3}%
 and replace each call to
 \phantomsection
 by
 \refstepcounter{#2}%
\addcontentsline{#1}{#2}{\protect\numberline{\@currentlabel}#3}%
Thank you very much. Now I have to decide which version I like better :-)
By the way, how fragile (or not fragile) is your solution? I mean, is it likely to break with possible future changes of pdfpages or graphicx? Of course one never knows what could change. But as far as I understand your helper macro \HookIntoIncludegraphics I would assume it is rather unlikely to break.
And finally I wonder why I wrote 'pgfplots' in the subject... :-/
Holger

Date Sujet#  Auteur
23 Sep 24 * pgfplots: link to top of embedded page7Holger Schieferdecker
27 Sep 24 `* Re: pgfplots: link to top of embedded page6Ulrich D i e z
27 Sep 24  +* Re: pgfplots: link to top of embedded page4Holger Schieferdecker
28 Sep 24  i`* Re: pgfplots: link to top of embedded page3Ulrich D i e z
30 Sep 24  i `* Re: pgfplots: link to top of embedded page2Holger Schieferdecker
30 Sep 24  i  `- Re: pgfplots: link to top of embedded page1Ulrich D i e z
30 Oct 24  `- Re: pgfplots: link to top of embedded page1Holger Schieferdecker

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal