[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: add next-anchor option (fe60583)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun Aug 15 17:07:32 CEST 2021


Repository : https://github.com/latex3/hyperref
On branch  : cleanup-patches
Link       : https://github.com/latex3/hyperref/commit/fe6058398b91a13973c345a57ca678c46b34b408

>---------------------------------------------------------------

commit fe6058398b91a13973c345a57ca678c46b34b408
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Aug 15 17:07:32 2021 +0200

    add next-anchor option


>---------------------------------------------------------------

fe6058398b91a13973c345a57ca678c46b34b408
 doc/hyperref-doc.tex                               |  18 ++
 hyperref.dtx                                       |  40 ++--
 ...hyperget-test.etex.tlg => next-anchor.etex.tlg} | 194 ++++++++++++------
 ...rget-test.luatex.tlg => next-anchor.luatex.tlg} | 227 ++++++++++++++-------
 testfiles/next-anchor.lvt                          |  30 +++
 testfiles/{hyperget-test.tlg => next-anchor.tlg}   | 178 ++++++++++------
 6 files changed, 480 insertions(+), 207 deletions(-)

diff --git a/doc/hyperref-doc.tex b/doc/hyperref-doc.tex
index d61f1a9..43fd53e 100644
--- a/doc/hyperref-doc.tex
+++ b/doc/hyperref-doc.tex
@@ -1056,6 +1056,7 @@ menucolor          & \textit{red}           & color for menu links \\
 nativepdf          & \textit{false}         & an alias for \textsf{dvips} \\
 naturalnames       & \textit{false}         & use \LaTeX-computed names for links \\
 nesting            & \textit{false}         & allow nesting of links \\
+next-anchor        &                        & allow to set the name of the next anchor\\ 
 pageanchor         & \textit{true}          & put an anchor on every page \\
 pagebackref        & \textit{false}         & backreference by page number \\
 pdfauthor          & \textit{empty}         & text for PDF Author field \\
@@ -1263,6 +1264,13 @@ It takes \verb|\HyperDestNameFilter| into account. It can e.g. be used with the
 As \emph{pageanchor} retrieves the page number from the label it can't be use together with
 the option \texttt{plainpages}.
 
+\begin{cmdsyntax}
+\ci{hyperget}\verb|{|\emph{currentanchor}\verb|}{}|
+\end{cmdsyntax}
+
+This retrieves the last anchor that has been set. It too takes \verb|\HyperDestNameFilter| into account.
+
+
 
 \begin{cmdsyntax}
 \ci{autoref}\verb|{|\emph{label}\verb|}|
@@ -1608,6 +1616,16 @@ sequence error would arise.
  Currently the field option `calculatesortkey' is only supported by
   the driver for pdfTeX.
 
+\subsection{Option `next-anchor'}
+This option allows to overwrite the anchor name of the next anchor.
+This makes it possible to give for example the heading of the table of contents
+an anchor name which can be referenced with a bookmark command.
+
+\begin{verbatim}
+\hypersetup{next-anchor=toc}
+\tableofcontents
+\bookmark[dest=\HyperDestNameFilter{toc},level=section]{\contentsname}
+\end{verbatim}
 
 \subsection{Option `localanchorname'}
 
diff --git a/hyperref.dtx b/hyperref.dtx
index 878b83b..87e6c08 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7767,6 +7767,10 @@
         }
      }
   }
+\cs_new:Npn \__hyp_get_currentanchor:n  #1
+  {
+    \HyperDestNameFilter { \@currentHref }
+  }
 \ExplSyntaxOff
 %    \end{macrocode}
 % \end{macro}
@@ -10605,9 +10609,29 @@
 }
 %    \end{macrocode}
 %    \end{macro}
+%    \begin{macro}{\hyper at hook@dest at make}
+%   We define a hook to allow to overwrite the next destination name.  
+%    \begin{macrocode}
+\@ifl at t@r\fmtversion{2020-10-01}
+ {%
+   \NewHook{__hyp/dest/make }
+   \def\hyper at hook@dest at make
+    {\UseHook{__hyp/dest/make}}
+   \define at key{Hyp}{next-anchor}{%
+    \AddToHookNext{__hyp/dest/make}%
+       {\Hy at MakeCurrentHref{#1}}%
+   }
+ }
+ {
+   \def\hyper at hook@dest at make{}
+ }
+%    \end{macrocode}
+% \end{macro}
 %    \begin{macro}{\hyper at makecurrent}
 % Because of Babel mucking around, nullify |\textlatin| when making names.
 % And |\@number| because of babel's lrbabel.def.
+% change 2021-08-15: For new formats we add a hook which allows
+% to overwrite the name of the next destination.
 %    \begin{macrocode}
 \def\hyper at makecurrent#1{%
   \begingroup
@@ -10654,6 +10678,7 @@
   \else
     \global\let\@currentHref\HyperGlobalCurrentHref
   \fi
+  \hyper at hook@dest at make
 }
 %    \end{macrocode}
 %    \end{macro}
@@ -10674,22 +10699,13 @@
 %    \end{macro}
 %    \begin{macro}{\Hy at MakeCurrentHrefAuto}
 % This command is e.g. used to create destinations for unnumbered sections and
-% chapters. For new formats we add a (currently private) hook which allows
-% to change the name of the next destination.
+% chapters. For new formats we add a hook which allows
+% to overwrite the name of the next destination.
 %    \begin{macrocode}
-\@ifl at t@r\fmtversion{2020-10-01}
- {
-   \NewHook{__hyp/dest/makeauto}
    \def\Hy at MakeCurrentHrefAuto#1{%
    \Hy at GlobalStepCount\Hy at linkcounter
    \Hy at MakeCurrentHref{#1.\the\Hy at linkcounter}%
-   \UseHook{__hyp/dest/makeauto}}
- }
- {
-   \def\Hy at MakeCurrentHrefAuto#1{%
-   \Hy at GlobalStepCount\Hy at linkcounter
-   \Hy at MakeCurrentHref{#1.\the\Hy at linkcounter}}
- }
+   \hyper at hook@dest at make}
 %    \end{macrocode}
 %    \end{macro}
 %
diff --git a/testfiles/hyperget-test.etex.tlg b/testfiles/next-anchor.etex.tlg
similarity index 53%
copy from testfiles/hyperget-test.etex.tlg
copy to testfiles/next-anchor.etex.tlg
index d5416c0..4039a76 100644
--- a/testfiles/hyperget-test.etex.tlg
+++ b/testfiles/next-anchor.etex.tlg
@@ -1,11 +1,9 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-Completed box being shipped out [1]
+(next-anchor.toc)
+\tf at toc=\write...
+Completed box being shipped out [2]
 \vbox(633.0+0.0)x407.0
-.\hbox(0.0+0.0)x0.0
-..\special{! systemdict /pdfmark known{userdict /?pdfmark systemdict /exec get p\ETC.}
-..\special{ps:SDict begin [/Producer (dvips + Distiller)/Title ()/Subject ()/Cre\ETC.}
-..\special{! /DvipsToPDF{72.27 mul Resolution div} def/PDFToDvips{72.27 div Reso\ETC.}
 .\special{ps:SDict begin /product where{pop product(Distiller)search{pop pop po\ETC.}
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil
 ..\kern 0.0
@@ -17,7 +15,7 @@ Completed box being shipped out [1]
 ...\kern -1.00374
 ...\special{ps:SDict begin H.S end}
 ...\special{ps:SDict begin H.R end}
-...\special{ps:SDict begin [/View [/XYZ H.V]/Dest (xxx-page.1) cvn /DEST pdfmark \ETC.}
+...\special{ps:SDict begin [/View [/XYZ H.V]/Dest (abc-page.2) cvn /DEST pdfmark \ETC.}
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
@@ -31,26 +29,67 @@ Completed box being shipped out [1]
 .....\hbox(0.0+0.0)x345.0
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 539.94232fil
-....\write-{}
-....\special{ps:SDict begin [/PageMode /UseOutlines/Page 1/View [/Fit] /DOCVIEW pd\ETC.}
-....\special{ps:SDict begin [ {Catalog}<<>> /PUT pdfmark end}
-....\special{ps:SDict begin H.S end}
-....\special{ps:SDict begin 12 H.A end}
-....\special{ps:SDict begin [/View [/XYZ H.V]/Dest (xxx-Doc-Start) cvn /DEST pdfma\ETC.}
-....\glue(\topskip) 3.05556
-....\hbox(6.94444+0.0)x345.0, glue set 308.05553fil
-.....\hbox(0.0+0.0)x15.0
-.....\OT1/cmr/m/n/10 a
-.....\OT1/cmr/m/n/10 b
-.....\kern0.27779
-.....\OT1/cmr/m/n/10 c
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\kern 0.0
+...\vbox(550.0+0.0)x345.0, glue set 517.94466fil
+....\glue(\topskip) 0.12001
+....\hbox(9.87999+0.0)x345.0, glue set 281.71843fil
+.....\hbox(0.0+0.0)x0.0
+......\glue 0.0
+.....\hbox(0.0+0.0)x0.0
+......\kern 0.0
+......\special{ps:SDict begin H.S end}
+......\penalty 10000
+......\glue 0.0
+......\special{ps:SDict begin 18 H.A end}
+......\special{ps:SDict begin [/View [/XYZ H.V]/Dest (abc-toc) cvn /DEST pdfmark end}
+......\penalty 10000
+......\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmr/bx/n/14.4 C
+.....\OT1/cmr/bx/n/14.4 o
+.....\OT1/cmr/bx/n/14.4 n
+.....\kern-0.45001
+.....\OT1/cmr/bx/n/14.4 t
+.....\OT1/cmr/bx/n/14.4 e
+.....\OT1/cmr/bx/n/14.4 n
+.....\kern-0.45001
+.....\OT1/cmr/bx/n/14.4 t
+.....\OT1/cmr/bx/n/14.4 s
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
+....\penalty 10000
+....\glue 9.90276 plus 0.86108
+....\glue -9.90276 plus -0.86108
+....\glue 10.00002 plus 1.0
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.55556
+....\hbox(6.44444+0.0)x345.0, glue set 293.96681fil
+.....\glue(\leftskip) 15.00002
+.....\glue -15.00002
+.....\hbox(6.44444+0.0)x33.20825
+......\special{ps:SDict begin H.S end}
+......\penalty 10000
+......\glue 0.0
+......\hbox(6.44444+0.0)x15.00002, glue set 9.25005fil
+.......\OT1/cmr/bx/n/10 1
+.......\glue 0.0 plus 1.0fil
+......\OT1/cmr/bx/n/10 x
+......\OT1/cmr/bx/n/10 x
+......\OT1/cmr/bx/n/10 x
+......\special{ps:SDict begin 12 H.L end}
+......\special{ps:SDict begin [/Subtype /Link/Dest (abc-xxx) cvn/H /I/Border [0 0 1]\ETC.}
+.....\penalty 10000
+.....\glue 0.0 plus 1.0fil
+.....\penalty 10000
+.....\hbox(6.44444+0.0)x17.82494, glue set 12.07497fil
+......\glue 0.0 plus 1.0fil minus 1.0fil
+......\OT1/cmr/bx/n/10 4
+......\kern -1.0
+......\kern 1.0
+.....\kern 0.0
+.....\penalty 10000
+.....\glue(\parfillskip) -15.50005
+.....\glue(\rightskip) 15.50005
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
@@ -58,10 +97,9 @@ Completed box being shipped out [1]
 ...\hbox(6.44444+0.0)x345.0
 ....\hbox(6.44444+0.0)x345.0, glue set 170.0fil
 .....\glue 0.0 plus 1.0fil
-.....\OT1/cmr/m/n/10 1
+.....\OT1/cmr/m/n/10 2
 .....\glue 0.0 plus 1.0fil
-.\kern 0.0
-Completed box being shipped out [2]
+Completed box being shipped out [3]
 \vbox(633.0+0.0)x407.0
 .\special{ps:SDict begin /product where{pop product(Distiller)search{pop pop po\ETC.}
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil
@@ -74,7 +112,7 @@ Completed box being shipped out [2]
 ...\kern -1.00374
 ...\special{ps:SDict begin H.S end}
 ...\special{ps:SDict begin H.R end}
-...\special{ps:SDict begin [/View [/XYZ H.V]/Dest (xxx-page.2) cvn /DEST pdfmark \ETC.}
+...\special{ps:SDict begin [/View [/XYZ H.V]/Dest (abc-page.3) cvn /DEST pdfmark \ETC.}
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
@@ -88,9 +126,9 @@ Completed box being shipped out [2]
 .....\hbox(0.0+0.0)x345.0
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 530.04063fil
+...\vbox(550.0+0.0)x345.0, glue set 518.04192fil
 ....\glue(\topskip) 0.00002
-....\hbox(9.99998+0.0)x345.0, glue set 255.33673fil
+....\hbox(9.99998+0.0)x345.0, glue set 320.47504fil
 .....\hbox(0.0+0.0)x0.0
 ......\glue 0.0
 .....\hbox(0.0+0.0)x0.0
@@ -99,29 +137,38 @@ Completed box being shipped out [2]
 ......\penalty 10000
 ......\glue 0.0
 ......\special{ps:SDict begin 18 H.A end}
-......\special{ps:SDict begin [/View [/XYZ H.V]/Dest (xxx-section*.1) cvn /DEST pdfm\ETC.}
+......\special{ps:SDict begin [/View [/XYZ H.V]/Dest (abc-abc) cvn /DEST pdfmark end}
 ......\penalty 10000
 ......\glue 0.0 plus 1.0fil minus 1.0fil
-.....\OT1/cmr/bx/n/14.4 s
-.....\OT1/cmr/bx/n/14.4 o
-.....\OT1/cmr/bx/n/14.4 m
-.....\OT1/cmr/bx/n/14.4 e
-.....\glue 5.4 plus 2.7 minus 1.79999
-.....\OT1/cmr/bx/n/14.4 s
-.....\OT1/cmr/bx/n/14.4 e
+.....\OT1/cmr/bx/n/14.4 a
+.....\OT1/cmr/bx/n/14.4 b
+.....\kern0.45
 .....\OT1/cmr/bx/n/14.4 c
-.....\OT1/cmr/bx/n/14.4 t
-.....\OT1/cmr/bx/n/14.4 i
-.....\OT1/cmr/bx/n/14.4 o
-.....\OT1/cmr/bx/n/14.4 n
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
 ....\penalty 10000
 ....\glue 9.90276 plus 0.86108
-....\write1{\newlabel{sec}{{}{\thepage }{some section}{section*.1}{}}}
+....\write1{\newlabel{label}{{}{\thepage }{abc}{abc}{}}}
 ....\penalty 10000
 ....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.05556
+....\hbox(6.94444+0.0)x345.0, glue set 311.11104fil
+.....\OT1/cmr/m/n/10 a
+.....\OT1/cmr/m/n/10 b
+.....\kern0.27779
+.....\OT1/cmr/m/n/10 c
+.....\OT1/cmr/m/n/10 -
+.....\discretionary
+.....\OT1/cmr/m/n/10 a
+.....\OT1/cmr/m/n/10 b
+.....\kern0.27779
+.....\OT1/cmr/m/n/10 c
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
@@ -129,10 +176,10 @@ Completed box being shipped out [2]
 ...\hbox(6.44444+0.0)x345.0
 ....\hbox(6.44444+0.0)x345.0, glue set 170.0fil
 .....\glue 0.0 plus 1.0fil
-.....\OT1/cmr/m/n/10 2
+.....\OT1/cmr/m/n/10 3
 .....\glue 0.0 plus 1.0fil
 \BKM at file=\write...
-Completed box being shipped out [3]
+Completed box being shipped out [4]
 \vbox(633.0+0.0)x407.0
 .\special{ps:SDict begin /product where{pop product(Distiller)search{pop pop po\ETC.}
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil
@@ -145,7 +192,7 @@ Completed box being shipped out [3]
 ...\kern -1.00374
 ...\special{ps:SDict begin H.S end}
 ...\special{ps:SDict begin H.R end}
-...\special{ps:SDict begin [/View [/XYZ H.V]/Dest (xxx-page.3) cvn /DEST pdfmark \ETC.}
+...\special{ps:SDict begin [/View [/XYZ H.V]/Dest (abc-page.4) cvn /DEST pdfmark \ETC.}
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
@@ -159,27 +206,44 @@ Completed box being shipped out [3]
 .....\hbox(0.0+0.0)x345.0
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 539.94232fil
-....\glue(\topskip) 5.69446
-....\hbox(4.30554+1.94444)x345.0, glue set 281.61104fil
-.....\hbox(0.0+0.0)x15.0
-.....\OT1/cmr/m/n/10 s
-.....\OT1/cmr/m/n/10 o
-.....\OT1/cmr/m/n/10 m
-.....\OT1/cmr/m/n/10 e
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\OT1/cmr/m/n/10 p
-.....\OT1/cmr/m/n/10 a
-.....\OT1/cmr/m/n/10 g
-.....\OT1/cmr/m/n/10 e
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\write1{\newlabel{page}{{}{\thepage }{some section}{section*.1}{}}}
+...\vbox(550.0+0.0)x345.0, glue set 518.04192fil
+....\special{ps:SDict begin H.S end}
+....\special{ps:SDict begin 12 H.A end}
+....\special{ps:SDict begin [/View [/XYZ H.V]/Dest (abc-xxx) cvn /DEST pdfmark end}
+....\glue(\topskip) 0.72002
+....\hbox(9.27998+0.0)x345.0, glue set 295.05006fil
+.....\hbox(9.27998+0.0)x24.29997
+......\glue 0.0
+......\OT1/cmr/bx/n/14.4 1
+......\glue 16.19998
+.....\OT1/cmr/bx/n/14.4 x
+.....\OT1/cmr/bx/n/14.4 x
+.....\OT1/cmr/bx/n/14.4 x
 .....\penalty 10000
-.....\kern 0.0
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline \ETC.}
+....\penalty 10000
+....\glue 9.90276 plus 0.86108
+....\write1{\newlabel{xxx}{{1}{\thepage }{xxx}{xxx}{}}}
+....\penalty 10000
+....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.05556
+....\hbox(6.94444+0.0)x345.0, glue set 310.55545fil
+.....\OT1/cmr/m/n/10 a
+.....\OT1/cmr/m/n/10 b
+.....\kern0.27779
+.....\OT1/cmr/m/n/10 c
+.....\OT1/cmr/m/n/10 -
+.....\discretionary
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
-....\glue -1.94444
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
@@ -187,10 +251,10 @@ Completed box being shipped out [3]
 ...\hbox(6.44444+0.0)x345.0
 ....\hbox(6.44444+0.0)x345.0, glue set 170.0fil
 .....\glue 0.0 plus 1.0fil
-.....\OT1/cmr/m/n/10 3
+.....\OT1/cmr/m/n/10 4
 .....\glue 0.0 plus 1.0fil
 .\kern -633.0
 .\hbox(0.0+0.0)x0.0
-..\special{PSfile=hyperget-test.out.ps}
+..\special{PSfile=next-anchor.out.ps}
 .\kern 633.0
-(hyperget-test.aux)
+(next-anchor.aux)
diff --git a/testfiles/hyperget-test.luatex.tlg b/testfiles/next-anchor.luatex.tlg
similarity index 51%
copy from testfiles/hyperget-test.luatex.tlg
copy to testfiles/next-anchor.luatex.tlg
index 059ef3b..8963fa2 100644
--- a/testfiles/hyperget-test.luatex.tlg
+++ b/testfiles/next-anchor.luatex.tlg
@@ -1,8 +1,9 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-Completed box being shipped out [1]
+(next-anchor.toc)
+\tf at toc=\write...
+Completed box being shipped out [2]
 \vbox(633.0+0.0)x407.0, direction TLT
-.\hbox(0.0+0.0)x0.0, direction TLT
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil, direction TLT
 ..\kern0.0
 ..\kern16.0
@@ -11,7 +12,7 @@ Completed box being shipped out [1]
 ...\kern0.0
 ...\kern62.0
 ...\kern-1.00374
-...\pdfdest name{xxx-page.1} xyz
+...\pdfdest name{abc-page.2} xyz
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
@@ -25,28 +26,74 @@ Completed box being shipped out [1]
 .....\hbox(0.0+0.0)x345.0, direction TLT
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 539.94232fil, direction TLT
-....\write-{}
-....\pdfdest name{xxx-Doc-Start} xyz
-....\glue(\topskip) 3.06
-....\hbox(6.94+0.11)x345.0, glue set 308.06fil, direction TLT
+...\vbox(550.0+0.0)x345.0, glue set 517.8935fil, direction TLT
+....\glue(\topskip) 0.0
+....\hbox(10.0512+0.1728)x345.0, glue set 281.68323fil, direction TLT
 .....\localpar
 ......\localinterlinepenalty=0
 ......\localbrokenpenalty=0
 ......\localleftbox=null
 ......\localrightbox=null
-.....\hbox(0.0+0.0)x15.0, direction TLT
-.....\TU/lmr/m/n/10 a
-.....\TU/lmr/m/n/10 b
-.....\kern0.28 (font)
-.....\TU/lmr/m/n/10 c
-.....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
-.....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
-.....\kern0.0
+.....\hbox(0.0+0.0)x0.0, direction TLT
+......\glue 0.0
+.....\hbox(0.0+0.0)x0.0, direction TLT
+......\kern0.0
+......\penalty 10000
+......\hbox(0.0+0.0)x0.0, direction TLT
+.......\hbox(0.0+0.0)x0.0, shifted -18.0, direction TLT
+........\pdfdest name{abc-toc} xyz
+........\penalty 10000
+......\glue 0.0 plus 1.0fil minus 1.0fil
+.....\TU/lmr/bx/n/14.4 C
+.....\TU/lmr/bx/n/14.4 o
+.....\TU/lmr/bx/n/14.4 n
+.....\discretionary (penalty 50)
+......< \TU/lmr/bx/n/14.4 -
+......= \kern-0.4464 (font)
+.....\TU/lmr/bx/n/14.4 t
+.....\TU/lmr/bx/n/14.4 e
+.....\TU/lmr/bx/n/14.4 n
+.....\kern-0.4464 (font)
+.....\TU/lmr/bx/n/14.4 t
+.....\TU/lmr/bx/n/14.4 s
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
-....\glue -0.11
+....\penalty 10000
+....\glue 9.913 plus 0.86198
+....\glue -9.913 plus -0.86198
+....\glue 10.0 plus 1.0
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.2672
+....\hbox(6.56+0.0)x345.0, glue set 296.28995fil, direction TLT
+.....\glue(\leftskip) 15.0
+.....\localpar
+......\localinterlinepenalty=0
+......\localbrokenpenalty=0
+......\localleftbox=null
+......\localrightbox=null
+.....\glue -15.0
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{abc-xxx}
+.....\hbox(6.55+0.0)x15.0, glue set 9.25fil, direction TLT
+......\TU/lmr/bx/n/10 1
+......\glue 0.0 plus 1.0fil
+.....\TU/lmr/bx/n/10 x
+.....\TU/lmr/bx/n/10 x
+.....\TU/lmr/bx/n/10 x
+.....\pdfendlink
+.....\penalty 10000
+.....\glue 0.0 plus 1.0fil
+.....\penalty 10000
+.....\hbox(6.56+0.0)x15.50003, glue set 9.75003fil, direction TLT
+......\glue 0.0 plus 1.0fil minus 1.0fil
+......\TU/lmr/bx/n/10 4
+......\kern-1.0
+......\kern1.0
+.....\kern0.0
+.....\penalty 10000
+.....\glue(\parfillskip) -15.50003
+.....\glue(\rightskip) 15.50003
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
@@ -54,11 +101,10 @@ Completed box being shipped out [1]
 ...\hbox(6.66+0.0)x345.0, direction TLT
 ....\hbox(6.66+0.0)x345.0, glue set 170.0fil, direction TLT
 .....\glue 0.0 plus 1.0fil
-.....\TU/lmr/m/n/10 1
+.....\TU/lmr/m/n/10 2
 .....\glue 0.0 plus 1.0fil
-.\kern0.0
-Completed box being shipped out [2]
-\vbox(633.0+0.0)x407.0, direction TLT
+Completed box being shipped out [3]
+\vbox(633.0+0.22)x407.0, direction TLT
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil, direction TLT
 ..\kern0.0
 ..\kern16.0
@@ -67,23 +113,23 @@ Completed box being shipped out [2]
 ...\kern0.0
 ...\kern62.0
 ...\kern-1.00374
-...\pdfdest name{xxx-page.2} xyz
+...\pdfdest name{abc-page.3} xyz
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
 .\glue(\lineskip) 0.0
-.\vbox(633.0+0.0)x407.0, direction TLT
+.\vbox(633.0+0.22)x407.0, direction TLT
 ..\glue 16.0
-..\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT
+..\vbox(617.0+0.22)x345.0, shifted 62.0, direction TLT
 ...\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT
 ....\glue 0.0 plus 1.0fil
 ....\hbox(0.0+0.0)x345.0, direction TLT
 .....\hbox(0.0+0.0)x345.0, direction TLT
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 530.0304fil, direction TLT
-....\glue(\topskip) 0.20801
-....\hbox(9.79199+0.0864)x345.0, glue set 255.30246fil, direction TLT
+...\vbox(550.0+0.0)x345.0, glue set 518.03168fil, direction TLT
+....\glue(\topskip) 0.00641
+....\hbox(9.99359+0.0864)x345.0, glue set 320.4768fil, direction TLT
 .....\localpar
 ......\localinterlinepenalty=0
 ......\localbrokenpenalty=0
@@ -96,43 +142,56 @@ Completed box being shipped out [2]
 ......\penalty 10000
 ......\hbox(0.0+0.0)x0.0, direction TLT
 .......\hbox(0.0+0.0)x0.0, shifted -18.0, direction TLT
-........\pdfdest name{xxx-section*.1} xyz
+........\pdfdest name{abc-abc} xyz
 ........\penalty 10000
 ......\glue 0.0 plus 1.0fil minus 1.0fil
-.....\TU/lmr/bx/n/14.4 s
-.....\TU/lmr/bx/n/14.4 o
-.....\TU/lmr/bx/n/14.4 m
-.....\TU/lmr/bx/n/14.4 e
-.....\glue(\spaceskip) 5.4 plus 2.7 minus 1.8
-.....\TU/lmr/bx/n/14.4 s
-.....\TU/lmr/bx/n/14.4 e
+.....\TU/lmr/bx/n/14.4 a
+.....\TU/lmr/bx/n/14.4 b
+.....\kern0.4464 (font)
 .....\TU/lmr/bx/n/14.4 c
-.....\discretionary (penalty 50)
-......< \TU/lmr/bx/n/14.4 -
-.....\TU/lmr/bx/n/14.4 t
-.....\TU/lmr/bx/n/14.4 i
-.....\TU/lmr/bx/n/14.4 o
-.....\TU/lmr/bx/n/14.4 n
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
 ....\penalty 10000
 ....\glue 9.913 plus 0.86198
-....\write1{\newlabel{sec}{{}{\thepage }{some section}{section*.1}{}}}
+....\write1{\newlabel{label}{{}{\thepage }{abc}{abc}{}}}
 ....\penalty 10000
 ....\penalty 10000
-....\glue -0.0864
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 4.9736
+....\hbox(6.94+0.11)x345.0, glue set 311.10999fil, direction TLT
+.....\localpar
+......\localinterlinepenalty=0
+......\localbrokenpenalty=0
+......\localleftbox=null
+......\localrightbox=null
+.....\TU/lmr/m/n/10 a
+.....\TU/lmr/m/n/10 b
+.....\kern0.28 (font)
+.....\TU/lmr/m/n/10 c
+.....\discretionary (penalty 50)
+......< \TU/lmr/m/n/10 -
+......= \TU/lmr/m/n/10 -
+.....\TU/lmr/m/n/10 a
+.....\TU/lmr/m/n/10 b
+.....\kern0.28 (font)
+.....\TU/lmr/m/n/10 c
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\glue -0.11
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
 ...\glue(\baselineskip) 23.34
-...\hbox(6.66+0.0)x345.0, direction TLT
-....\hbox(6.66+0.0)x345.0, glue set 170.0fil, direction TLT
+...\hbox(6.66+0.22)x345.0, direction TLT
+....\hbox(6.66+0.22)x345.0, glue set 170.0fil, direction TLT
 .....\glue 0.0 plus 1.0fil
-.....\TU/lmr/m/n/10 2
+.....\TU/lmr/m/n/10 3
 .....\glue 0.0 plus 1.0fil
-Completed box being shipped out [3]
-\vbox(633.0+0.22)x407.0, direction TLT
+Completed box being shipped out [4]
+\vbox(633.0+0.0)x407.0, direction TLT
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil, direction TLT
 ..\kern0.0
 ..\kern16.0
@@ -141,53 +200,75 @@ Completed box being shipped out [3]
 ...\kern0.0
 ...\kern62.0
 ...\kern-1.00374
-...\pdfdest name{xxx-page.3} xyz
+...\pdfdest name{abc-page.4} xyz
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
 .\glue(\lineskip) 0.0
-.\vbox(633.0+0.22)x407.0, direction TLT
+.\vbox(633.0+0.0)x407.0, direction TLT
 ..\glue 16.0
-..\vbox(617.0+0.22)x345.0, shifted 62.0, direction TLT
+..\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT
 ...\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT
 ....\glue 0.0 plus 1.0fil
 ....\hbox(0.0+0.0)x345.0, direction TLT
 .....\hbox(0.0+0.0)x345.0, direction TLT
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 539.94232fil, direction TLT
-....\glue(\topskip) 5.47
-....\hbox(4.53+2.06)x345.0, glue set 281.63fil, direction TLT
+...\vbox(550.0+0.0)x345.0, glue set 518.03168fil, direction TLT
+....\pdfdest name{abc-xxx} xyz
+....\glue(\topskip) 0.5536
+....\hbox(9.4464+0.0)x345.0, glue set 296.83203fil, direction TLT
 .....\localpar
 ......\localinterlinepenalty=0
 ......\localbrokenpenalty=0
 ......\localleftbox=null
 ......\localrightbox=null
-.....\hbox(0.0+0.0)x15.0, direction TLT
-.....\TU/lmr/m/n/10 s
-.....\TU/lmr/m/n/10 o
-.....\TU/lmr/m/n/10 m
-.....\TU/lmr/m/n/10 e
-.....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
-.....\TU/lmr/m/n/10 p
-.....\TU/lmr/m/n/10 a
-.....\TU/lmr/m/n/10 g
-.....\TU/lmr/m/n/10 e
-.....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
-.....\write1{\newlabel{page}{{}{\thepage }{some section}{section*.1}{}}}
+.....\hbox(9.4464+0.0)x22.50719, direction TLT
+......\glue 0.0
+......\TU/lmr/bx/n/14.4 1
+......\glue 14.4
+.....\TU/lmr/bx/n/14.4 x
+.....\TU/lmr/bx/n/14.4 x
+.....\TU/lmr/bx/n/14.4 x
 .....\penalty 10000
-.....\kern0.0
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline \ETC.}
+....\penalty 10000
+....\glue 9.913 plus 0.86198
+....\write1{\newlabel{xxx}{{1}{\thepage }{xxx}{xxx}{}}}
+....\penalty 10000
+....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.06
+....\hbox(6.94+0.11)x345.0, glue set 310.54999fil, direction TLT
+.....\localpar
+......\localinterlinepenalty=0
+......\localbrokenpenalty=0
+......\localleftbox=null
+......\localrightbox=null
+.....\TU/lmr/m/n/10 a
+.....\TU/lmr/m/n/10 b
+.....\kern0.28 (font)
+.....\TU/lmr/m/n/10 c
+.....\discretionary (penalty 50)
+......< \TU/lmr/m/n/10 -
+......= \TU/lmr/m/n/10 -
+.....\TU/lmr/m/n/10 x
+.....\TU/lmr/m/n/10 x
+.....\TU/lmr/m/n/10 x
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
-....\glue -2.06
+....\glue -0.11
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
-...\glue(\baselineskip) 23.34
-...\hbox(6.66+0.22)x345.0, direction TLT
-....\hbox(6.66+0.22)x345.0, glue set 170.0fil, direction TLT
+...\glue(\baselineskip) 23.23
+...\hbox(6.77+0.0)x345.0, direction TLT
+....\hbox(6.77+0.0)x345.0, glue set 170.0fil, direction TLT
 .....\glue 0.0 plus 1.0fil
-.....\TU/lmr/m/n/10 3
+.....\TU/lmr/m/n/10 4
 .....\glue 0.0 plus 1.0fil
-(hyperget-test.aux)
+(next-anchor.aux)
diff --git a/testfiles/next-anchor.lvt b/testfiles/next-anchor.lvt
new file mode 100644
index 0000000..9f774f9
--- /dev/null
+++ b/testfiles/next-anchor.lvt
@@ -0,0 +1,30 @@
+\input{regression-test}
+\documentclass{article}
+
+\usepackage{bookmark}
+\renewcommand\HyperDestNameFilter[1]{abc-#1}
+\begin{document}
+x\newpage
+\START \showoutput
+\hypersetup{next-anchor=toc}
+\tableofcontents
+\bookmark[dest=\HyperDestNameFilter{toc},level=section]{\contentsname}
+
+
+\newpage
+\hypersetup{next-anchor=abc}
+\section*{abc}\label{label}
+\hyperget{currentanchor}{}
+
+\newpage
+\hypersetup{next-anchor=xxx}
+\section{xxx}\label{xxx}
+\hyperget{currentanchor}{}
+
+
+
+\bookmark[dest=\HyperDestNameFilter{abc}]{abc section}
+\bookmark[dest=\HyperDestNameFilter{xxx}]{xxx section}
+
+
+\end{document}
\ No newline at end of file
diff --git a/testfiles/hyperget-test.tlg b/testfiles/next-anchor.tlg
similarity index 52%
copy from testfiles/hyperget-test.tlg
copy to testfiles/next-anchor.tlg
index 25cf63c..9686a6a 100644
--- a/testfiles/hyperget-test.tlg
+++ b/testfiles/next-anchor.tlg
@@ -1,8 +1,9 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-Completed box being shipped out [1]
+(next-anchor.toc)
+\tf at toc=\write...
+Completed box being shipped out [2]
 \vbox(633.0+0.0)x407.0
-.\hbox(0.0+0.0)x0.0
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil
 ..\kern 0.0
 ..\kern 16.0
@@ -11,7 +12,7 @@ Completed box being shipped out [1]
 ...\kern 0.0
 ...\kern 62.0
 ...\kern -1.00374
-...\pdfdest name{xxx-page.1} xyz
+...\pdfdest name{abc-page.2} xyz
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
@@ -25,22 +26,62 @@ Completed box being shipped out [1]
 .....\hbox(0.0+0.0)x345.0
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 539.94232fil
-....\write-{}
-....\pdfdest name{xxx-Doc-Start} xyz
-....\glue(\topskip) 3.05556
-....\hbox(6.94444+0.0)x345.0, glue set 308.05553fil
-.....\hbox(0.0+0.0)x15.0
-.....\OT1/cmr/m/n/10 a
-.....\OT1/cmr/m/n/10 b
-.....\kern0.27779
-.....\OT1/cmr/m/n/10 c
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\kern 0.0
+...\vbox(550.0+0.0)x345.0, glue set 517.94466fil
+....\glue(\topskip) 0.12001
+....\hbox(9.87999+0.0)x345.0, glue set 281.71843fil
+.....\hbox(0.0+0.0)x0.0
+......\glue 0.0
+.....\hbox(0.0+0.0)x0.0
+......\kern 0.0
+......\penalty 10000
+......\hbox(0.0+0.0)x0.0
+.......\hbox(0.0+0.0)x0.0, shifted -18.0
+........\pdfdest name{abc-toc} xyz
+........\penalty 10000
+......\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmr/bx/n/14.4 C
+.....\OT1/cmr/bx/n/14.4 o
+.....\OT1/cmr/bx/n/14.4 n
+.....\kern-0.45001
+.....\OT1/cmr/bx/n/14.4 t
+.....\OT1/cmr/bx/n/14.4 e
+.....\OT1/cmr/bx/n/14.4 n
+.....\kern-0.45001
+.....\OT1/cmr/bx/n/14.4 t
+.....\OT1/cmr/bx/n/14.4 s
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
+....\penalty 10000
+....\glue 9.90276 plus 0.86108
+....\glue -9.90276 plus -0.86108
+....\glue 10.00002 plus 1.0
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.55556
+....\hbox(6.44444+0.0)x345.0, glue set 293.96681fil
+.....\glue(\leftskip) 15.00002
+.....\glue -15.00002
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{abc-xxx}
+.....\hbox(6.44444+0.0)x15.00002, glue set 9.25005fil
+......\OT1/cmr/bx/n/10 1
+......\glue 0.0 plus 1.0fil
+.....\OT1/cmr/bx/n/10 x
+.....\OT1/cmr/bx/n/10 x
+.....\OT1/cmr/bx/n/10 x
+.....\pdfendlink
+.....\penalty 10000
+.....\glue 0.0 plus 1.0fil
+.....\penalty 10000
+.....\hbox(6.44444+0.0)x17.82494, glue set 12.07497fil
+......\glue 0.0 plus 1.0fil minus 1.0fil
+......\OT1/cmr/bx/n/10 4
+......\kern -1.0
+......\kern 1.0
+.....\kern 0.0
+.....\penalty 10000
+.....\glue(\parfillskip) -15.50005
+.....\glue(\rightskip) 15.50005
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
@@ -48,10 +89,9 @@ Completed box being shipped out [1]
 ...\hbox(6.44444+0.0)x345.0
 ....\hbox(6.44444+0.0)x345.0, glue set 170.0fil
 .....\glue 0.0 plus 1.0fil
-.....\OT1/cmr/m/n/10 1
+.....\OT1/cmr/m/n/10 2
 .....\glue 0.0 plus 1.0fil
-.\kern 0.0
-Completed box being shipped out [2]
+Completed box being shipped out [3]
 \vbox(633.0+0.0)x407.0
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil
 ..\kern 0.0
@@ -61,7 +101,7 @@ Completed box being shipped out [2]
 ...\kern 0.0
 ...\kern 62.0
 ...\kern -1.00374
-...\pdfdest name{xxx-page.2} xyz
+...\pdfdest name{abc-page.3} xyz
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
@@ -75,9 +115,9 @@ Completed box being shipped out [2]
 .....\hbox(0.0+0.0)x345.0
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 530.04063fil
+...\vbox(550.0+0.0)x345.0, glue set 518.04192fil
 ....\glue(\topskip) 0.00002
-....\hbox(9.99998+0.0)x345.0, glue set 255.33673fil
+....\hbox(9.99998+0.0)x345.0, glue set 320.47504fil
 .....\hbox(0.0+0.0)x0.0
 ......\glue 0.0
 .....\hbox(0.0+0.0)x0.0
@@ -85,29 +125,38 @@ Completed box being shipped out [2]
 ......\penalty 10000
 ......\hbox(0.0+0.0)x0.0
 .......\hbox(0.0+0.0)x0.0, shifted -18.0
-........\pdfdest name{xxx-section*.1} xyz
+........\pdfdest name{abc-abc} xyz
 ........\penalty 10000
 ......\glue 0.0 plus 1.0fil minus 1.0fil
-.....\OT1/cmr/bx/n/14.4 s
-.....\OT1/cmr/bx/n/14.4 o
-.....\OT1/cmr/bx/n/14.4 m
-.....\OT1/cmr/bx/n/14.4 e
-.....\glue 5.4 plus 2.7 minus 1.79999
-.....\OT1/cmr/bx/n/14.4 s
-.....\OT1/cmr/bx/n/14.4 e
+.....\OT1/cmr/bx/n/14.4 a
+.....\OT1/cmr/bx/n/14.4 b
+.....\kern0.45
 .....\OT1/cmr/bx/n/14.4 c
-.....\OT1/cmr/bx/n/14.4 t
-.....\OT1/cmr/bx/n/14.4 i
-.....\OT1/cmr/bx/n/14.4 o
-.....\OT1/cmr/bx/n/14.4 n
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
 ....\penalty 10000
 ....\glue 9.90276 plus 0.86108
-....\write1{\newlabel{sec}{{}{\thepage }{some section}{section*.1}{}}}
+....\write1{\newlabel{label}{{}{\thepage }{abc}{abc}{}}}
 ....\penalty 10000
 ....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.05556
+....\hbox(6.94444+0.0)x345.0, glue set 311.11104fil
+.....\OT1/cmr/m/n/10 a
+.....\OT1/cmr/m/n/10 b
+.....\kern0.27779
+.....\OT1/cmr/m/n/10 c
+.....\OT1/cmr/m/n/10 -
+.....\discretionary
+.....\OT1/cmr/m/n/10 a
+.....\OT1/cmr/m/n/10 b
+.....\kern0.27779
+.....\OT1/cmr/m/n/10 c
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
@@ -115,9 +164,9 @@ Completed box being shipped out [2]
 ...\hbox(6.44444+0.0)x345.0
 ....\hbox(6.44444+0.0)x345.0, glue set 170.0fil
 .....\glue 0.0 plus 1.0fil
-.....\OT1/cmr/m/n/10 2
+.....\OT1/cmr/m/n/10 3
 .....\glue 0.0 plus 1.0fil
-Completed box being shipped out [3]
+Completed box being shipped out [4]
 \vbox(633.0+0.0)x407.0
 .\vbox(0.0+0.0)x0.0, glue set - 14.99626fil
 ..\kern 0.0
@@ -127,7 +176,7 @@ Completed box being shipped out [3]
 ...\kern 0.0
 ...\kern 62.0
 ...\kern -1.00374
-...\pdfdest name{xxx-page.3} xyz
+...\pdfdest name{abc-page.4} xyz
 ...\penalty 10000
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 ..\glue 0.0 plus 1.0fil minus 1.0fil
@@ -141,27 +190,42 @@ Completed box being shipped out [3]
 .....\hbox(0.0+0.0)x345.0
 ...\glue 25.0
 ...\glue(\lineskip) 0.0
-...\vbox(550.0+0.0)x345.0, glue set 539.94232fil
-....\glue(\topskip) 5.69446
-....\hbox(4.30554+1.94444)x345.0, glue set 281.61104fil
-.....\hbox(0.0+0.0)x15.0
-.....\OT1/cmr/m/n/10 s
-.....\OT1/cmr/m/n/10 o
-.....\OT1/cmr/m/n/10 m
-.....\OT1/cmr/m/n/10 e
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\OT1/cmr/m/n/10 p
-.....\OT1/cmr/m/n/10 a
-.....\OT1/cmr/m/n/10 g
-.....\OT1/cmr/m/n/10 e
-.....\glue 3.33333 plus 1.66666 minus 1.11111
-.....\write1{\newlabel{page}{{}{\thepage }{some section}{section*.1}{}}}
+...\vbox(550.0+0.0)x345.0, glue set 518.04192fil
+....\pdfdest name{abc-xxx} xyz
+....\glue(\topskip) 0.72002
+....\hbox(9.27998+0.0)x345.0, glue set 295.05006fil
+.....\hbox(9.27998+0.0)x24.29997
+......\glue 0.0
+......\OT1/cmr/bx/n/14.4 1
+......\glue 16.19998
+.....\OT1/cmr/bx/n/14.4 x
+.....\OT1/cmr/bx/n/14.4 x
+.....\OT1/cmr/bx/n/14.4 x
 .....\penalty 10000
-.....\kern 0.0
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline \ETC.}
+....\penalty 10000
+....\glue 9.90276 plus 0.86108
+....\write1{\newlabel{xxx}{{1}{\thepage }{xxx}{xxx}{}}}
+....\penalty 10000
+....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.05556
+....\hbox(6.94444+0.0)x345.0, glue set 310.55545fil
+.....\OT1/cmr/m/n/10 a
+.....\OT1/cmr/m/n/10 b
+.....\kern0.27779
+.....\OT1/cmr/m/n/10 c
+.....\OT1/cmr/m/n/10 -
+.....\discretionary
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
 .....\penalty 10000
 .....\glue(\parfillskip) 0.0 plus 1.0fil
 .....\glue(\rightskip) 0.0
-....\glue -1.94444
 ....\glue 0.0 plus 1.0fil
 ....\glue 0.0
 ....\glue 0.0 plus 0.0001fil
@@ -169,6 +233,6 @@ Completed box being shipped out [3]
 ...\hbox(6.44444+0.0)x345.0
 ....\hbox(6.44444+0.0)x345.0, glue set 170.0fil
 .....\glue 0.0 plus 1.0fil
-.....\OT1/cmr/m/n/10 3
+.....\OT1/cmr/m/n/10 4
 .....\glue 0.0 plus 1.0fil
-(hyperget-test.aux)
+(next-anchor.aux)





More information about the latex3-commits mailing list.