[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: correct \Ref (ba615cf)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Apr 11 11:29:43 CEST 2022


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

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

commit ba615cfd2c5be6ffe7aea65e888a439bad0a3346
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Apr 11 11:29:43 2022 +0200

    correct \Ref


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

ba615cfd2c5be6ffe7aea65e888a439bad0a3346
 hyperref.dtx                             |   6 +-
 nameref.dtx                              |  20 ++--
 testfiles/refstarred-hyperref.etex.tlg   | 160 +++++++++++++++++++++++++++++++
 testfiles/refstarred-hyperref.luatex.tlg | 158 ++++++++++++++++++++++++++++++
 testfiles/refstarred-hyperref.lvt        |  18 ++++
 testfiles/refstarred-hyperref.tlg        | 138 ++++++++++++++++++++++++++
 testfiles/refstarred-nameref.etex.tlg    | 112 ++++++++++++++++++++++
 testfiles/refstarred-nameref.luatex.tlg  | 130 +++++++++++++++++++++++++
 testfiles/refstarred-nameref.lvt         |  18 ++++
 testfiles/refstarred-nameref.tlg         | 110 +++++++++++++++++++++
 10 files changed, 859 insertions(+), 11 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 2550a00..7700e9c 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7339,6 +7339,9 @@
   \DeclareRobustCommand*{\nameref}{%
       \@ifstar\@namerefstar\T at nameref
   }%
+  \DeclareRobustCommand*{\Ref}{%
+  \@ifstar\@Refstar\HyRef at Ref
+  }%
  \ifHy at implicit
  \else
    \let \@pagerefstar\T at pageref
@@ -12544,9 +12547,6 @@
 \def\HyRef at MakeUppercaseFirstOfFive#1#2#3#4#5{%
   \MakeUppercase#1%
 }%
-\DeclareRobustCommand*{\Ref}{%
-  \@ifstar\@Refstar\HyRef at Ref
-}%
 \def\HyRef at Ref#1{%
   \hyperref[{#1}]{\Ref*{#1}}%
 }%
diff --git a/nameref.dtx b/nameref.dtx
index 795aa34..9903dea 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -610,6 +610,16 @@
 }%
 %    \end{macrocode}
 %    \end{macro}
+%    \begin{macro}{\T at Ref}
+%    \begin{macrocode}
+\def\T at Ref#1{%
+    \NR at setref{#1}\NR at MakeUppercaseFirstOfFive{#1}%
+  }%
+\def\NR at MakeUppercaseFirstOfFive#1#2#3#4#5{%
+    \MakeUppercase#1%
+  }%
+%    \end{macrocode}
+%    \end{macro}
 %    \begin{macrocode}
 \ifNR at showkeys
   \ifx\SK at ref\@empty
@@ -646,23 +656,17 @@
 %    \xpackage{hyperref} or after
 %    \xpackage{hyperref}'s definitions in |\AtBeginDocument|.
 %    \begin{macrocode}
-\def\T at Ref#1{%
-    \NR at setref{#1}\NR at MakeUppercaseFirstOfFive{#1}%
-  }%
-\def\NR at MakeUppercaseFirstOfFive#1#2#3#4#5{%
-    \MakeUppercase#1%
-  }%
 \@ifpackageloaded{hyperref}{%
 }{%
 %    \end{macrocode}
 %    \begin{macro}{\ref}
 %    \begin{macrocode}
-  \DeclareRobustCommand{\ref}{\T at ref}%
+  \DeclareRobustCommand{\ref}{\@ifstar\T at ref\T at ref}%
 %    \end{macrocode}
 %    \end{macro}
 %    \begin{macro}{\pageref}
 %    \begin{macrocode}
-  \DeclareRobustCommand{\pageref}{\T at pageref}%
+  \DeclareRobustCommand{\pageref}{\@ifstar\T at pageref\T at pageref}%
 %    \end{macrocode}
 %    \end{macro}
 %    \begin{macro}{\Ref}
diff --git a/testfiles/refstarred-hyperref.etex.tlg b/testfiles/refstarred-hyperref.etex.tlg
new file mode 100644
index 0000000..d67b5ce
--- /dev/null
+++ b/testfiles/refstarred-hyperref.etex.tlg
@@ -0,0 +1,160 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \ref=robust macro:
+->\protect \ref  .
+> \ref =\long macro:
+->\@ifstar \@refstar \T at ref .
+<argument> \ref  
+l. ...\ShowCommand\ref
+> \Ref=robust macro:
+->\protect \Ref  .
+> \Ref =macro:
+->\@ifstar \@Refstar \HyRef at Ref .
+<argument> \Ref  
+l. ...\ShowCommand\Ref
+> \pageref=robust macro:
+->\protect \pageref  .
+> \pageref =\long macro:
+->\@ifstar \@pagerefstar \T at pageref .
+<argument> \pageref  
+l. ...\ShowCommand\pageref
+Completed box being shipped out [1]
+\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
+..\kern 16.0
+..\kern -1.00374
+..\hbox(0.0+0.0)x0.0, glue set - 60.99626fil
+...\kern 0.0
+...\kern 62.0
+...\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 (page.1) cvn /DEST pdfmark end}
+...\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
+..\glue 16.0
+..\vbox(617.0+0.0)x345.0, shifted 62.0
+...\vbox(12.0+0.0)x345.0, glue set 12.0fil
+....\glue 0.0 plus 1.0fil
+....\hbox(0.0+0.0)x345.0
+.....\hbox(0.0+0.0)x345.0
+...\glue 25.0
+...\glue(\lineskip) 0.0
+...\vbox(550.0+0.0)x345.0, glue set 472.97733fil
+....\write-{}
+....\special{ps:SDict begin [/Count -0/Dest (section.1) cvn/Title (\376\377\000T\0\ETC.}
+....\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 (Doc-Start) cvn /DEST pdfmark e\ETC.}
+....\glue(\topskip) 5.69446
+....\hbox(4.30554+0.0)x345.0, glue set 310.83327fil
+.....\hbox(0.0+0.0)x15.0
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
+.....\glue 3.33333 plus 1.66666 minus 1.11111
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\penalty -300
+....\glue 15.0694 plus 4.30554 minus 0.86108
+....\special{ps:SDict begin H.S end}
+....\special{ps:SDict begin 12 H.A end}
+....\special{ps:SDict begin [/View [/XYZ H.V]/Dest (section.1) cvn /DEST pdfmark e\ETC.}
+....\penalty 10000
+....\glue -15.0694 plus -4.30554 minus -0.86108
+....\glue 15.0694 plus 4.30554 minus 0.86108
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 8.12001
+....\hbox(9.87999+0.0)x345.0, glue set 290.92673fil
+.....\hbox(6.39998+0.0)x24.07497
+......\glue 0.0
+......\OT1/cmr/bx/n/14.4 a
+......\glue 16.19998
+.....\OT1/cmr/bx/n/14.4 T
+.....\kern-1.35
+.....\OT1/cmr/bx/n/14.4 e
+.....\OT1/cmr/bx/n/14.4 s
+.....\OT1/cmr/bx/n/14.4 t
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\write3{\protect \BOOKMARK [1][-]{section.1}{\376\377\000T\000e\000s\000t}{}%\ETC.}
+....\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline \ETC.}
+....\penalty 10000
+....\glue 9.90276 plus 0.86108
+....\write1{\newlabel{sec:test}{{a}{\thepage }{Test}{section.1}{}}}
+....\penalty 10000
+....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.16669
+....\hbox(6.83331+1.94444)x345.0, glue set 318.61105fil
+.....\special{ps:SDict begin H.S end}
+.....\hbox(4.30554+0.0)x5.00002
+......\OT1/cmr/m/n/10 a
+.....\hbox(0.0+0.0)x0.0, shifted -4.30554
+......\special{ps:SDict begin H.R end}
+.....\special{ps:SDict begin [/Color [1 0 0]/H /I/Border [0 0 1]BorderArrayPatch/Su\ETC.}
+.....\OT1/cmr/m/n/10 ,
+.....\special{ps:SDict begin H.S end}
+.....\hbox(6.83331+0.0)x7.50002
+......\OT1/cmr/m/n/10 A
+......\hbox(0.0+0.0)x0.0
+.....\hbox(0.0+0.0)x0.0, shifted -6.83331
+......\special{ps:SDict begin H.R end}
+.....\special{ps:SDict begin [/Color [1 0 0]/H /I/Border [0 0 1]BorderArrayPatch/Su\ETC.}
+.....\OT1/cmr/m/n/10 ,
+.....\glue 3.33333 plus 2.08331 minus 0.88889
+.....\special{ps:SDict begin H.S end}
+.....\hbox(6.44444+0.0)x5.00002
+......\OT1/cmr/m/n/10 1
+.....\hbox(0.0+0.0)x0.0, shifted -6.44444
+......\special{ps:SDict begin H.R end}
+.....\special{ps:SDict begin [/Color [1 0 0]/H /I/Border [0 0 1]BorderArrayPatch/Su\ETC.}
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 3.22224
+....\hbox(6.83331+1.94444)x345.0, glue set 303.61105fil
+.....\hbox(0.0+0.0)x15.0
+.....\OT1/cmr/m/n/10 a
+.....\hbox(0.0+0.0)x0.0
+.....\OT1/cmr/m/n/10 ,
+.....\OT1/cmr/m/n/10 A
+.....\hbox(0.0+0.0)x0.0
+.....\OT1/cmr/m/n/10 ,
+.....\glue 3.33333 plus 2.08331 minus 0.88889
+.....\OT1/cmr/m/n/10 1
+.....\hbox(0.0+0.0)x0.0
+.....\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
+...\glue(\baselineskip) 23.55556
+...\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
+.....\glue 0.0 plus 1.0fil
+.\kern 0.0
+(refstarred-hyperref.aux)
+Package rerunfilecheck Info: File `refstarred-hyperref.out' has not changed.
+(rerunfilecheck)             Checksum: FC90D1180BECD91AF9B24497E24BDAEA;63.
diff --git a/testfiles/refstarred-hyperref.luatex.tlg b/testfiles/refstarred-hyperref.luatex.tlg
new file mode 100644
index 0000000..faec9bd
--- /dev/null
+++ b/testfiles/refstarred-hyperref.luatex.tlg
@@ -0,0 +1,158 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \ref=robust macro:
+->\protect \ref  .
+> \ref =\long macro:
+->\@ifstar \@refstar \T at ref .
+<argument> \ref  
+l. ...\ShowCommand\ref
+> \Ref=robust macro:
+->\protect \Ref  .
+> \Ref =macro:
+->\@ifstar \@Refstar \HyRef at Ref .
+<argument> \Ref  
+l. ...\ShowCommand\Ref
+> \pageref=robust macro:
+->\protect \pageref  .
+> \pageref =\long macro:
+->\@ifstar \@pagerefstar \T at pageref .
+<argument> \pageref  
+l. ...\ShowCommand\pageref
+Completed box being shipped out [1]
+\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
+..\kern-1.00374
+..\hbox(0.0+0.0)x0.0, glue set - 60.99626fil, direction TLT
+...\kern0.0
+...\kern62.0
+...\kern-1.00374
+...\pdfdest name{page.1} 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
+..\glue 16.0
+..\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 472.9515fil, direction TLT
+....\write-{}
+....\pdfdest name{Doc-Start} xyz
+....\glue(\topskip) 5.69
+....\hbox(4.31+0.0)x345.0, glue set 310.83002fil, 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 x
+.....\TU/lmr/m/n/10 x
+.....\TU/lmr/m/n/10 x
+.....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\penalty -300
+....\glue 15.08499 plus 4.31 minus 0.86198
+....\pdfdest name{section.1} xyz
+....\penalty 10000
+....\glue -15.08499 plus -4.31 minus -0.86198
+....\glue 15.08499 plus 4.31 minus 0.86198
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 8.2512
+....\hbox(9.7488+0.0864)x345.0, glue set 292.72803fil, direction TLT
+.....\localpar
+......\localinterlinepenalty=0
+......\localbrokenpenalty=0
+......\localleftbox=null
+......\localrightbox=null
+.....\hbox(6.5232+0.0864)x22.2768, direction TLT
+......\glue 0.0
+......\TU/lmr/bx/n/14.4 a
+......\glue 14.4
+.....\TU/lmr/bx/n/14.4 T
+.....\kern-1.35359 (font)
+.....\TU/lmr/bx/n/14.4 e
+.....\TU/lmr/bx/n/14.4 s
+.....\TU/lmr/bx/n/14.4 t
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\write3{\protect \BOOKMARK [1][-]{section.1}{\376\377\000T\000e\000s\000t}{}%\ETC.}
+....\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline \ETC.}
+....\penalty 10000
+....\glue 9.913 plus 0.86198
+....\write1{\newlabel{sec:test}{{a}{\thepage }{Test}{section.1}{}}}
+....\penalty 10000
+....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 4.7536
+....\hbox(7.16+1.93)x345.0, glue set 318.60999fil, direction TLT
+.....\localpar
+......\localinterlinepenalty=0
+......\localbrokenpenalty=0
+......\localleftbox=null
+......\localrightbox=null
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
+.....\TU/lmr/m/n/10 a
+.....\pdfendlink
+.....\TU/lmr/m/n/10 ,
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
+.....\TU/lmr/m/n/10 A
+.....\hbox(0.0+0.0)x0.0, direction TLT
+.....\pdfendlink
+.....\TU/lmr/m/n/10 ,
+.....\glue(\spaceskip) 3.33 plus 2.08124 minus 0.888
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
+.....\TU/lmr/m/n/10 1
+.....\pdfendlink
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 2.91
+....\hbox(7.16+1.93)x345.0, glue set 303.60999fil, 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
+.....\hbox(0.0+0.0)x0.0, direction TLT
+.....\TU/lmr/m/n/10 ,
+.....\TU/lmr/m/n/10 A
+.....\hbox(0.0+0.0)x0.0, direction TLT
+.....\TU/lmr/m/n/10 ,
+.....\glue(\spaceskip) 3.33 plus 2.08124 minus 0.888
+.....\TU/lmr/m/n/10 1
+.....\hbox(0.0+0.0)x0.0, direction TLT
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\glue -1.93
+....\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
+.....\glue 0.0 plus 1.0fil
+.....\TU/lmr/m/n/10 1
+.....\glue 0.0 plus 1.0fil
+.\kern0.0
+(refstarred-hyperref.aux)
+Package rerunfilecheck Info: File `refstarred-hyperref.out' has not changed.
+(rerunfilecheck)             Checksum: FC90D1180BECD91AF9B24497E24BDAEA;63.
diff --git a/testfiles/refstarred-hyperref.lvt b/testfiles/refstarred-hyperref.lvt
new file mode 100644
index 0000000..d764fa4
--- /dev/null
+++ b/testfiles/refstarred-hyperref.lvt
@@ -0,0 +1,18 @@
+\input{regression-test}
+\documentclass{article}
+
+\usepackage{hyperref}
+
+\begin{document}
+xxx
+\renewcommand\thesection{\alph{section}}
+\START \showoutput
+\ShowCommand\ref
+\ShowCommand\Ref
+\ShowCommand\pageref
+
+\section{Test}\label{sec:test}
+\ref{sec:test},\Ref{sec:test}, \pageref{sec:test}
+
+\ref*{sec:test},\Ref*{sec:test}, \pageref*{sec:test}
+\end{document}
\ No newline at end of file
diff --git a/testfiles/refstarred-hyperref.tlg b/testfiles/refstarred-hyperref.tlg
new file mode 100644
index 0000000..8dc6274
--- /dev/null
+++ b/testfiles/refstarred-hyperref.tlg
@@ -0,0 +1,138 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \ref=robust macro:
+->\protect \ref  .
+> \ref =\long macro:
+->\@ifstar \@refstar \T at ref .
+<argument> \ref  
+l. ...\ShowCommand\ref
+> \Ref=robust macro:
+->\protect \Ref  .
+> \Ref =macro:
+->\@ifstar \@Refstar \HyRef at Ref .
+<argument> \Ref  
+l. ...\ShowCommand\Ref
+> \pageref=robust macro:
+->\protect \pageref  .
+> \pageref =\long macro:
+->\@ifstar \@pagerefstar \T at pageref .
+<argument> \pageref  
+l. ...\ShowCommand\pageref
+Completed box being shipped out [1]
+\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
+..\kern -1.00374
+..\hbox(0.0+0.0)x0.0, glue set - 60.99626fil
+...\kern 0.0
+...\kern 62.0
+...\kern -1.00374
+...\pdfdest name{page.1} 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
+..\glue 16.0
+..\vbox(617.0+0.0)x345.0, shifted 62.0
+...\vbox(12.0+0.0)x345.0, glue set 12.0fil
+....\glue 0.0 plus 1.0fil
+....\hbox(0.0+0.0)x345.0
+.....\hbox(0.0+0.0)x345.0
+...\glue 25.0
+...\glue(\lineskip) 0.0
+...\vbox(550.0+0.0)x345.0, glue set 472.97733fil
+....\write-{}
+....\pdfdest name{Doc-Start} xyz
+....\glue(\topskip) 5.69446
+....\hbox(4.30554+0.0)x345.0, glue set 310.83327fil
+.....\hbox(0.0+0.0)x15.0
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 x
+.....\glue 3.33333 plus 1.66666 minus 1.11111
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\penalty -300
+....\glue 15.0694 plus 4.30554 minus 0.86108
+....\pdfdest name{section.1} xyz
+....\penalty 10000
+....\glue -15.0694 plus -4.30554 minus -0.86108
+....\glue 15.0694 plus 4.30554 minus 0.86108
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 8.12001
+....\hbox(9.87999+0.0)x345.0, glue set 290.92673fil
+.....\hbox(6.39998+0.0)x24.07497
+......\glue 0.0
+......\OT1/cmr/bx/n/14.4 a
+......\glue 16.19998
+.....\OT1/cmr/bx/n/14.4 T
+.....\kern-1.35
+.....\OT1/cmr/bx/n/14.4 e
+.....\OT1/cmr/bx/n/14.4 s
+.....\OT1/cmr/bx/n/14.4 t
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\write3{\protect \BOOKMARK [1][-]{section.1}{\376\377\000T\000e\000s\000t}{}%\ETC.}
+....\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline \ETC.}
+....\penalty 10000
+....\glue 9.90276 plus 0.86108
+....\write1{\newlabel{sec:test}{{a}{\thepage }{Test}{section.1}{}}}
+....\penalty 10000
+....\penalty 10000
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 5.16669
+....\hbox(6.83331+1.94444)x345.0, glue set 318.61105fil
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
+.....\OT1/cmr/m/n/10 a
+.....\pdfendlink
+.....\OT1/cmr/m/n/10 ,
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
+.....\OT1/cmr/m/n/10 A
+.....\hbox(0.0+0.0)x0.0
+.....\pdfendlink
+.....\OT1/cmr/m/n/10 ,
+.....\glue 3.33333 plus 2.08331 minus 0.88889
+.....\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
+.....\OT1/cmr/m/n/10 1
+.....\pdfendlink
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\glue(\parskip) 0.0 plus 1.0
+....\glue(\parskip) 0.0
+....\glue(\baselineskip) 3.22224
+....\hbox(6.83331+1.94444)x345.0, glue set 303.61105fil
+.....\hbox(0.0+0.0)x15.0
+.....\OT1/cmr/m/n/10 a
+.....\hbox(0.0+0.0)x0.0
+.....\OT1/cmr/m/n/10 ,
+.....\OT1/cmr/m/n/10 A
+.....\hbox(0.0+0.0)x0.0
+.....\OT1/cmr/m/n/10 ,
+.....\glue 3.33333 plus 2.08331 minus 0.88889
+.....\OT1/cmr/m/n/10 1
+.....\hbox(0.0+0.0)x0.0
+.....\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
+...\glue(\baselineskip) 23.55556
+...\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
+.....\glue 0.0 plus 1.0fil
+.\kern 0.0
+(refstarred-hyperref.aux)
+Package rerunfilecheck Info: File `refstarred-hyperref.out' has not changed.
+(rerunfilecheck)             Checksum: FC90D1180BECD91AF9B24497E24BDAEA;63.
diff --git a/testfiles/refstarred-nameref.etex.tlg b/testfiles/refstarred-nameref.etex.tlg
new file mode 100644
index 0000000..fb73a40
--- /dev/null
+++ b/testfiles/refstarred-nameref.etex.tlg
@@ -0,0 +1,112 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \ref=robust macro:
+->\protect \ref  .
+> \ref =\long macro:
+->\@ifstar \T at ref \T at ref .
+<argument> \ref  
+l. ...\ShowCommand\ref
+> \Ref=robust macro:
+->\protect \Ref  .
+> \Ref =macro:
+->\@ifstar \T at Ref \T at Ref .
+<argument> \Ref  
+l. ...\ShowCommand\Ref
+> \pageref=robust macro:
+->\protect \pageref  .
+> \pageref =\long macro:
+->\@ifstar \T at pageref \T at pageref .
+<argument> \pageref  
+l. ...\ShowCommand\pageref
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\hbox(0.0+0.0)x0.0
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+....\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 472.97733fil
+...\write-{}
+...\glue(\topskip) 5.69446
+...\hbox(4.30554+0.0)x345.0, glue set 310.83327fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 x
+....\OT1/cmr/m/n/10 x
+....\OT1/cmr/m/n/10 x
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty -300
+...\glue 15.0694 plus 4.30554 minus 0.86108
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 8.12001
+...\hbox(9.87999+0.0)x345.0, glue set 290.92673fil
+....\hbox(6.39998+0.0)x24.07497
+.....\glue 0.0
+.....\OT1/cmr/bx/n/14.4 a
+.....\glue 16.19998
+....\OT1/cmr/bx/n/14.4 T
+....\kern-1.35
+....\OT1/cmr/bx/n/14.4 e
+....\OT1/cmr/bx/n/14.4 s
+....\OT1/cmr/bx/n/14.4 t
+....\penalty 10000
+....\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{sec:test}{{a}{\thepage }{Test}{}{}}}
+...\penalty 10000
+...\penalty 10000
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.16669
+...\hbox(6.83331+1.94444)x345.0, glue set 318.61105fil
+....\OT1/cmr/m/n/10 a
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\OT1/cmr/m/n/10 A
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\glue 3.33333 plus 2.08331 minus 0.88889
+....\OT1/cmr/m/n/10 1
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 3.22224
+...\hbox(6.83331+1.94444)x345.0, glue set 303.61105fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 a
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\OT1/cmr/m/n/10 A
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\glue 3.33333 plus 2.08331 minus 0.88889
+....\OT1/cmr/m/n/10 1
+....\hbox(0.0+0.0)x0.0
+....\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
+..\glue(\baselineskip) 23.55556
+..\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
+....\glue 0.0 plus 1.0fil
+.\kern 0.0
+(refstarred-nameref.aux)
diff --git a/testfiles/refstarred-nameref.luatex.tlg b/testfiles/refstarred-nameref.luatex.tlg
new file mode 100644
index 0000000..727f2d3
--- /dev/null
+++ b/testfiles/refstarred-nameref.luatex.tlg
@@ -0,0 +1,130 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \ref=robust macro:
+->\protect \ref  .
+> \ref =\long macro:
+->\@ifstar \T at ref \T at ref .
+<argument> \ref  
+l. ...\ShowCommand\ref
+> \Ref=robust macro:
+->\protect \Ref  .
+> \Ref =macro:
+->\@ifstar \T at Ref \T at Ref .
+<argument> \Ref  
+l. ...\ShowCommand\Ref
+> \pageref=robust macro:
+->\protect \pageref  .
+> \pageref =\long macro:
+->\@ifstar \T at pageref \T at pageref .
+<argument> \pageref  
+l. ...\ShowCommand\pageref
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0, direction TLT
+.\glue 16.0
+.\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 472.9515fil, direction TLT
+...\write-{}
+...\glue(\topskip) 5.69
+...\hbox(4.31+0.0)x345.0, glue set 310.83002fil, 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 x
+....\TU/lmr/m/n/10 x
+....\TU/lmr/m/n/10 x
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty -300
+...\glue 15.08499 plus 4.31 minus 0.86198
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 8.2512
+...\hbox(9.7488+0.0864)x345.0, glue set 292.72803fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(6.5232+0.0864)x22.2768, direction TLT
+.....\glue 0.0
+.....\TU/lmr/bx/n/14.4 a
+.....\glue 14.4
+....\TU/lmr/bx/n/14.4 T
+....\kern-1.35359 (font)
+....\TU/lmr/bx/n/14.4 e
+....\TU/lmr/bx/n/14.4 s
+....\TU/lmr/bx/n/14.4 t
+....\penalty 10000
+....\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{sec:test}{{a}{\thepage }{Test}{}{}}}
+...\penalty 10000
+...\penalty 10000
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.7536
+...\hbox(7.16+1.93)x345.0, glue set 318.60999fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\TU/lmr/m/n/10 a
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\TU/lmr/m/n/10 ,
+....\TU/lmr/m/n/10 A
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\TU/lmr/m/n/10 ,
+....\glue(\spaceskip) 3.33 plus 2.08124 minus 0.888
+....\TU/lmr/m/n/10 1
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 2.91
+...\hbox(7.16+1.93)x345.0, glue set 303.60999fil, 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
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\TU/lmr/m/n/10 ,
+....\TU/lmr/m/n/10 A
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\TU/lmr/m/n/10 ,
+....\glue(\spaceskip) 3.33 plus 2.08124 minus 0.888
+....\TU/lmr/m/n/10 1
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue -1.93
+...\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
+....\glue 0.0 plus 1.0fil
+....\TU/lmr/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(refstarred-nameref.aux)
diff --git a/testfiles/refstarred-nameref.lvt b/testfiles/refstarred-nameref.lvt
new file mode 100644
index 0000000..05fd37a
--- /dev/null
+++ b/testfiles/refstarred-nameref.lvt
@@ -0,0 +1,18 @@
+\input{regression-test}
+\documentclass{article}
+
+\usepackage{nameref}
+
+\begin{document}
+xxx
+\renewcommand\thesection{\alph{section}}
+\START \showoutput
+\ShowCommand\ref
+\ShowCommand\Ref
+\ShowCommand\pageref
+
+\section{Test}\label{sec:test}
+\ref{sec:test},\Ref{sec:test}, \pageref{sec:test}
+
+\ref*{sec:test},\Ref*{sec:test}, \pageref*{sec:test}
+\end{document}
\ No newline at end of file
diff --git a/testfiles/refstarred-nameref.tlg b/testfiles/refstarred-nameref.tlg
new file mode 100644
index 0000000..32b1653
--- /dev/null
+++ b/testfiles/refstarred-nameref.tlg
@@ -0,0 +1,110 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \ref=robust macro:
+->\protect \ref  .
+> \ref =\long macro:
+->\@ifstar \T at ref \T at ref .
+<argument> \ref  
+l. ...\ShowCommand\ref
+> \Ref=robust macro:
+->\protect \Ref  .
+> \Ref =macro:
+->\@ifstar \T at Ref \T at Ref .
+<argument> \Ref  
+l. ...\ShowCommand\Ref
+> \pageref=robust macro:
+->\protect \pageref  .
+> \pageref =\long macro:
+->\@ifstar \T at pageref \T at pageref .
+<argument> \pageref  
+l. ...\ShowCommand\pageref
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+....\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 472.97733fil
+...\write-{}
+...\glue(\topskip) 5.69446
+...\hbox(4.30554+0.0)x345.0, glue set 310.83327fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 x
+....\OT1/cmr/m/n/10 x
+....\OT1/cmr/m/n/10 x
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty -300
+...\glue 15.0694 plus 4.30554 minus 0.86108
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 8.12001
+...\hbox(9.87999+0.0)x345.0, glue set 290.92673fil
+....\hbox(6.39998+0.0)x24.07497
+.....\glue 0.0
+.....\OT1/cmr/bx/n/14.4 a
+.....\glue 16.19998
+....\OT1/cmr/bx/n/14.4 T
+....\kern-1.35
+....\OT1/cmr/bx/n/14.4 e
+....\OT1/cmr/bx/n/14.4 s
+....\OT1/cmr/bx/n/14.4 t
+....\penalty 10000
+....\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{sec:test}{{a}{\thepage }{Test}{}{}}}
+...\penalty 10000
+...\penalty 10000
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.16669
+...\hbox(6.83331+1.94444)x345.0, glue set 318.61105fil
+....\OT1/cmr/m/n/10 a
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\OT1/cmr/m/n/10 A
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\glue 3.33333 plus 2.08331 minus 0.88889
+....\OT1/cmr/m/n/10 1
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 3.22224
+...\hbox(6.83331+1.94444)x345.0, glue set 303.61105fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 a
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\OT1/cmr/m/n/10 A
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmr/m/n/10 ,
+....\glue 3.33333 plus 2.08331 minus 0.88889
+....\OT1/cmr/m/n/10 1
+....\hbox(0.0+0.0)x0.0
+....\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
+..\glue(\baselineskip) 23.55556
+..\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
+....\glue 0.0 plus 1.0fil
+(refstarred-nameref.aux)





More information about the latex3-commits mailing list.