[latex3-commits] [git/LaTeX3-latex3-hyperref] main: disable xdvipdfmx destination optimization, issue #118 (d2653e7)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Feb 9 11:49:14 CET 2021


Repository : https://github.com/latex3/hyperref
On branch  : main
Link       : https://github.com/latex3/hyperref/commit/d2653e7acbf204a7dc21d9c0c9b1873721198c09

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

commit d2653e7acbf204a7dc21d9c0c9b1873721198c09
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Feb 9 11:49:14 2021 +0100

    disable xdvipdfmx destination optimization, issue #118


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

d2653e7acbf204a7dc21d9c0c9b1873721198c09
 hyperref.dtx                     |   5 ++
 testfiles-xetex/unicode-test.tpf | 115 +++++++++++++++++++++------------------
 2 files changed, 67 insertions(+), 53 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 3e6c551..bb850c7 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -14552,7 +14552,12 @@
 %    \end{macrocode}
 % \subsection{dvipdfm/xetex dvi to PDF converter}
 % Provided by Mark Wicks (mwicks at kettering.edu)
+%
+% (x)dvipdfmx replaces destination names by numbers. This makes it impossible
+% to link from an external document with xr-hyper, so from version 7.00j on
+% this is suppressed with a config special.
 %    \begin{macrocode}
+\special{dvipdfmx:config C 0x10}
 \providecommand*{\XR at ext}{pdf}
 \Hy at setbreaklinks{true}
 \def\HyPat at ObjRef{%
diff --git a/testfiles-xetex/unicode-test.tpf b/testfiles-xetex/unicode-test.tpf
index 15a4323..c6f2fb5 100644
--- a/testfiles-xetex/unicode-test.tpf
+++ b/testfiles-xetex/unicode-test.tpf
@@ -37,38 +37,45 @@ endobj
 <</Fields 9 0 R/DR<</Font<</ZaDb 10 0 R/Helv 11 0 R>>>>/DA(/Helv 10 Tf 0 g)/CO 12 0 R/NeedAppearances
 true>>
 endobj
-18 0 obj
-<</Names[(0)17 0 R]>>
+20 0 obj
+<</Names[(Doc-Start)17 0 R(page.1)18 0 R(section.1)19 0 R]>>
 endobj
 17 0 obj
 [3 0 R/XYZ 133.77 667.2 null]
 endobj
+18 0 obj
+[3 0 R/XYZ 132.77 705.06 null]
+endobj
 19 0 obj
-<</Dests 18 0 R>>
+[3 0 R/XYZ 133.77 667.2 null]
 endobj
 21 0 obj
-<</Title<feff0047007200fc00df006565e99910d83edd86>/A<</S/GoTo/D(0)>>/Parent 20 0 R>>
-endobj
-20 0 obj
-<</First 21 0 R/Last 21 0 R/Count 1>>
+<</Dests 20 0 R>>
 endobj
 23 0 obj
+<</Title<feff0047007200fc00df006565e99910d83edd86>/A<</S/GoTo/D(section.1)>>/Parent
+22 0 R>>
+endobj
+22 0 obj
+<</First 23 0 R/Last 23 0 R/Count 1>>
+endobj
+25 0 obj
 [14 0 R]
 endobj
 3 0 obj
-<</Resources 16 0 R/Type/Page/Parent 22 0 R/Contents[15 0 R]/Annots 23 0 R>>
+<</Resources 16 0 R/Type/Page/Parent 24 0 R/Contents[15 0 R]/Annots 25 0 R>>
 endobj
-22 0 obj
+24 0 obj
 <</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 612 792]>>
 endobj
 2 0 obj
 <</Creator(TeX)/Title<feff006100620063>/Author<feff0047007200fc00df006565e99910d83edd86>/Producer(xdvipdfmx)/CreationDate(D:20160520090000-00'00')>>
 endobj
 1 0 obj
-<</OpenAction[3 0 R/Fit]/PageMode/UseOutlines/AcroForm 13 0 R/Names 19 0 R/Outlines
-20 0 R/Pages 22 0 R/Type/Catalog>>
+<</OpenAction[3 0 R/Fit]/PageMode/UseOutlines/AcroForm 13 0 R/Names 21 0 R/Outlines
+22 0 R/Pages 24 0 R/Type/Catalog>>
 endobj
-24 0 obj
+26 0 obj
 <</Length 395>>
 stream
 /CIDInit /ProcSet findresource begin
@@ -96,7 +103,7 @@ end
 end
 endstream
 endobj
-25 0 obj
+27 0 obj
 <</Length 398>>
 stream
 /CIDInit /ProcSet findresource begin
@@ -124,64 +131,64 @@ end
 end
 endstream
 endobj
-27 0 obj
+29 0 obj
 <</Subtype/CIDFontType0C/Length 889>>
 [BINARY STREAM]
 endobj
-28 0 obj
+30 0 obj
 [28[547]35[625]43[500]82[563]]
 endobj
-29 0 obj
+31 0 obj
 <</Length 11>>
 [BINARY STREAM]
 endobj
-31 0 obj
+33 0 obj
 <</Subtype/CIDFontType0C/Length 934>>
 [BINARY STREAM]
 endobj
-32 0 obj
+34 0 obj
 [28[500]35[556]43[444]82[500]]
 endobj
-33 0 obj
+35 0 obj
 <</Length 11>>
 [BINARY STREAM]
 endobj
 5 0 obj
 <</Type/Font/Subtype/CIDFontType0/BaseFont/EXQIVM+LMRoman12-Bold/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
-0>>/FontDescriptor 26 0 R/DW 280/W 28 0 R>>
+0>>/FontDescriptor 28 0 R/DW 280/W 30 0 R>>
 endobj
-26 0 obj
+28 0 obj
 <</Type/FontDescriptor/Ascent 806/Descent -194/StemV 109/CapHeight 806/AvgWidth 618/FontBBox[-476
 -289 1577 1137]/ItalicAngle 0/Flags 262150/Style<</Panose<000000000800000000000000>>>/FontName/EXQIVM+LMRoman12-Bold/FontFile3
-27 0 R/CIDSet 29 0 R>>
+29 0 R/CIDSet 31 0 R>>
 endobj
 4 0 obj
 <</Type/Font/Subtype/Type0/BaseFont/EXQIVM+LMRoman12-Bold-Identity-H/Encoding/Identity-H/DescendantFonts[5 0 R]/ToUnicode
-24 0 R>>
+26 0 R>>
 endobj
 7 0 obj
 <</Type/Font/Subtype/CIDFontType0/BaseFont/XUUPUX+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
-0>>/FontDescriptor 30 0 R/DW 280/W 32 0 R>>
+0>>/FontDescriptor 32 0 R/DW 280/W 34 0 R>>
 endobj
-30 0 obj
+32 0 obj
 <</Type/FontDescriptor/Ascent 806/Descent -194/StemV 69/CapHeight 806/AvgWidth 549/FontBBox[-430
 -290 1417 1127]/ItalicAngle 0/Flags 6/Style<</Panose<000000000500000000000000>>>/FontName/XUUPUX+LMRoman10-Regular/FontFile3
-31 0 R/CIDSet 33 0 R>>
+33 0 R/CIDSet 35 0 R>>
 endobj
 6 0 obj
 <</Type/Font/Subtype/Type0/BaseFont/XUUPUX+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[7 0 R]/ToUnicode
-25 0 R>>
+27 0 R>>
 endobj
 xref
-0 34
+0 36
 0000000000 65535 f 
-0000002734 00000 n 
-0000002570 00000 n 
-0000002404 00000 n 
-0000006392 00000 n 
-0000005942 00000 n 
-0000006988 00000 n 
-0000006538 00000 n 
+0000002874 00000 n 
+0000002710 00000 n 
+0000002544 00000 n 
+0000006532 00000 n 
+0000006082 00000 n 
+0000007128 00000 n 
+0000006678 00000 n 
 0000000658 00000 n 
 0000001938 00000 n 
 0000000365 00000 n 
@@ -191,26 +198,28 @@ xref
 0000000442 00000 n 
 0000000015 00000 n 
 0000000277 00000 n 
-0000002144 00000 n 
+0000002183 00000 n 
+0000002229 00000 n 
+0000002276 00000 n 
 0000002106 00000 n 
-0000002190 00000 n 
-0000002325 00000 n 
-0000002224 00000 n 
-0000002496 00000 n 
-0000002379 00000 n 
-0000002868 00000 n 
-0000003313 00000 n 
-0000006128 00000 n 
-0000003761 00000 n 
-0000004722 00000 n 
-0000004769 00000 n 
-0000006727 00000 n 
-0000004829 00000 n 
-0000005835 00000 n 
-0000005882 00000 n 
+0000002322 00000 n 
+0000002465 00000 n 
+0000002356 00000 n 
+0000002636 00000 n 
+0000002519 00000 n 
+0000003008 00000 n 
+0000003453 00000 n 
+0000006268 00000 n 
+0000003901 00000 n 
+0000004862 00000 n 
+0000004909 00000 n 
+0000006867 00000 n 
+0000004969 00000 n 
+0000005975 00000 n 
+0000006022 00000 n 
 trailer
 <</ID[<ID-STRING><ID-STRING>]/Root
-1 0 R/Info 2 0 R/Size 34>>
+1 0 R/Info 2 0 R/Size 36>>
 startxref
-7137
+7277
 %%EOF





More information about the latex3-commits mailing list.