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 optionI think there is no official interface but you can hook into
"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? >>>
\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.
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?
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.
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.
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 490 |
Nodes: | 16 (2 / 14) |
Uptime: | 60:28:24 |
Calls: | 9,676 |
Files: | 13,719 |
Messages: | 6,171,438 |