Match pdfTeX link rectangles in repeated leaders

This commit is contained in:
gloamxun committed 2026-12-01 23:30:43 +08:00
1 parent aed7010cba
commit 5b9eca1d60
6 files changed
+178 -10

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
\pdfoutput=1\pdfcompresslevel=0\pdfobjcompresslevel=0\pdfpkresolution=600
\catcode123=1\catcode125=2\pdflinkmargin=0pt
\def\tile{\hbox to2pt{\pdfstartlink width1pt height2pt depth0pt user{/Subtype /Link /A << /S /URI /URI (https://example.invalid/) >>}\vrule width1pt height2pt\pdfendlink\hss}}
\setbox5=\tile
\shipout\hbox{\cleaders\copy5\hskip6pt}
\shipout\hbox{\copy5\kern2pt\copy5}
\shipout\hbox{\cleaders\hbox to18pt{\copy5\kern1pt\leaders\copy5\hskip1pt\copy5%
\kern1pt\leaders\copy5\hskip4pt\kern1pt\leaders\copy5\hskip4pt\hss}\hskip37pt}
\def\runtile{\hbox to2pt{\pdfstartlink height2pt depth0pt user{/Subtype /Link /A << /S /URI /URI (https://example.invalid/) >>}\vrule width1pt height2pt\pdfendlink\hss}}
\shipout\vbox{\cleaders\vbox{\hbox{\cleaders\runtile\hskip6pt}}\vskip4pt}
\end
@@ -0,0 +1,31 @@
[
[
[75985, -73993, 149978, 73993],
[75985, -73993, 149978, 73993],
[75985, -73993, 149978, 73993]
],
[
[72000, 72000, 72996, 73993],
[75985, 72000, 76981, 73993]
],
[
[90431, -1494, 162929, 144000],
[94416, -5480, 170899, 144000],
[98401, -9465, 178869, 144000],
[104379, -116832, 206765, 144000],
[104379, -116832, 206765, 144000],
[90431, -1494, 162929, 144000],
[94416, -5480, 170899, 144000],
[98401, -9465, 178869, 144000],
[104379, -116832, 206765, 144000],
[104379, -116832, 206765, 144000]
],
[
[75985, -73993, 149978, 144000],
[75985, -73993, 149978, 144000],
[75985, -73993, 149978, 144000],
[75985, -73993, 149978, 144000],
[75985, -73993, 149978, 144000],
[75985, -73993, 149978, 144000]
]
]