[latex3-commits] [latex3/hyperref] develop: guard anchor against makeuppercase, issue #281 (f47d293)

github at latex-project.org github at latex-project.org
Wed Jul 5 19:20:03 CEST 2023


Repository : https://github.com/latex3/hyperref
On branch  : develop
Link       : https://github.com/latex3/hyperref/commit/f47d293c98cd9b93da2eddcd249f6bc3ec0b30ad

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

commit f47d293c98cd9b93da2eddcd249f6bc3ec0b30ad
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Jul 5 19:20:03 2023 +0200

    guard anchor against makeuppercase, issue #281


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

f47d293c98cd9b93da2eddcd249f6bc3ec0b30ad
 hyperref.dtx                             |   1 +
 testfiles-pdftex/gh281-makeuppercase.lvt |  25 +++++
 testfiles-pdftex/gh281-makeuppercase.tlg | 164 +++++++++++++++++++++++++++++++
 3 files changed, 190 insertions(+)

diff --git a/hyperref.dtx b/hyperref.dtx
index 0549c93..51086eb 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -19701,6 +19701,7 @@
     \hss
   }%
 }
+\AddToNoCaseChangeList{\Hy@@SectionAnchor}
 \@ifundefined{hyper at nopatch@sectioning}
 {
 \let\H at old@ssect\@ssect
diff --git a/testfiles-pdftex/gh281-makeuppercase.lvt b/testfiles-pdftex/gh281-makeuppercase.lvt
new file mode 100644
index 0000000..2544663
--- /dev/null
+++ b/testfiles-pdftex/gh281-makeuppercase.lvt
@@ -0,0 +1,25 @@
+\input{regression-test}
+\documentclass{article}
+
+\setcounter{secnumdepth}{-1}
+\makeatletter
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+                                   {-1.5ex \@plus -1ex \@minus -.2ex}%
+                                   {0.5ex \@plus.2ex}%
+                                   {\normalsize\bfseries\MakeUppercase}}
+\makeatother                                   
+
+\usepackage{hyperref} 
+
+\begin{document}
+\START\showoutput
+some text
+
+\newpage 
+
+\section{Section 1}
+
+\newpage
+
+text
+\end{document}
\ No newline at end of file
diff --git a/testfiles-pdftex/gh281-makeuppercase.tlg b/testfiles-pdftex/gh281-makeuppercase.tlg
new file mode 100644
index 0000000..bbe0af9
--- /dev/null
+++ b/testfiles-pdftex/gh281-makeuppercase.tlg
@@ -0,0 +1,164 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+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 539.94232fil
+....\write-{}
+....\pdfdest name{Doc-Start} xyz
+....\glue(\topskip) 3.84921
+....\hbox(6.15079+0.0)x345.0, glue set 287.44437fil
+.....\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 t
+.....\OT1/cmr/m/n/10 e
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 t
+.....\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
+...\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
+Completed box being shipped out [2]
+\vbox(633.0+0.0)x407.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.2} 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 537.78978fil
+....\glue(\topskip) 3.13889
+....\hbox(6.86111+0.0)x345.0, glue set 283.167fil
+.....\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 -12.0
+........\pdfdest name{section*.1} xyz
+........\penalty 10000
+......\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmr/bx/n/10 S
+.....\OT1/cmr/bx/n/10 E
+.....\OT1/cmr/bx/n/10 C
+.....\OT1/cmr/bx/n/10 T
+.....\OT1/cmr/bx/n/10 I
+.....\OT1/cmr/bx/n/10 O
+.....\OT1/cmr/bx/n/10 N
+.....\glue 3.83331 plus 1.91473 minus 1.27904
+.....\OT1/cmr/bx/n/10 1
+.....\penalty 10000
+.....\glue(\parfillskip) 0.0 plus 1.0fil
+.....\glue(\rightskip) 0.0
+....\write3{\protect \BOOKMARK [1][-]{section*.1}{\376\377\000S\000e\000c\000t\000i\000o\000n\000\040\0001}{}% 1}
+....\write1{\@writefile{toc}{\protect \contentsline {section}{Section 1}{\thepage }{section*.1}\protected at file@percent }}
+....\penalty 10000
+....\glue 2.15277 plus 0.86108
+....\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 2
+.....\glue 0.0 plus 1.0fil
+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
+..\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.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
+..\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 539.94232fil
+....\glue(\topskip) 3.84921
+....\hbox(6.15079+0.0)x345.0, glue set 312.49995fil
+.....\hbox(0.0+0.0)x15.0
+.....\OT1/cmr/m/n/10 t
+.....\OT1/cmr/m/n/10 e
+.....\OT1/cmr/m/n/10 x
+.....\OT1/cmr/m/n/10 t
+.....\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
+...\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 3
+.....\glue 0.0 plus 1.0fil
+(gh281-makeuppercase.aux)
+Package rerunfilecheck Info: File `gh281-makeuppercase.out' has not changed.
+(rerunfilecheck)             Checksum: E56B976E7ACFCD256E6E7715BDAB8581;92.





More information about the latex3-commits mailing list.