Skip to content

Commit

Permalink
nicer spacing in PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Sep 11, 2024
1 parent 59cd93b commit 93d0b6c
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 245 deletions.
4 changes: 2 additions & 2 deletions tagpdf-struct.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@
% \begin{macrocode}
\cs_new_protected:Nn\@@_struct_format_Ref:nnN
{
\tl_put_right:Nn #3 { /#1~[ } %]
\tl_put_right:Nn #3 { ~/#1~[ } %]
\clist_map_inline:nn{ #2 }
{
##1 #3
Expand Down Expand Up @@ -1337,7 +1337,7 @@
\clist_map_inline:on {#1}
{
\tag_struct_gput:nne
{\int_use:N \c@g_@@_struct_abs_int}{ref_level}{ ##1 }
{\int_use:N \c@g_@@_struct_abs_int}{ref_label}{ ##1 }
}
},
E .code:n = % E property
Expand Down
26 changes: 13 additions & 13 deletions testfiles-luatex/test-ref.tpf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ endobj
<< /Type /StructElem /S /P /NS 11 0 R /P 21 0 R /K <</Type /MCR /Pg 26 0 R /MCID 0>> /ID (ID.03) >>
endobj
23 0 obj
<< /Type /StructElem/Ref [ 24 0 R 22 0 R ] /S /P /NS 11 0 R /P 21 0 R /K <</Type /MCR /Pg 26 0 R /MCID 1>> /ID (ID.04) >>
<< /Type /StructElem /Ref [ 24 0 R 22 0 R ] /S /P /NS 11 0 R /P 21 0 R /K <</Type /MCR /Pg 26 0 R /MCID 1>> /ID (ID.04) >>
endobj
24 0 obj
<< /Type /StructElem /S /P /NS 11 0 R /P 21 0 R /K <</Type /MCR /Pg 26 0 R /MCID 2>> /ID (ID.05) >>
Expand Down Expand Up @@ -180,7 +180,7 @@ xref
0000000003 00000 f
0000000004 00000 f
0000000010 00000 f
0000003534 00000 n
0000003535 00000 n
0000000818 00000 n
0000001029 00000 n
0000002981 00000 n
Expand All @@ -199,24 +199,24 @@ xref
0000003042 00000 n
0000003155 00000 n
0000003274 00000 n
0000003415 00000 n
0000003416 00000 n
0000000672 00000 n
0000000530 00000 n
0000000020 00000 n
0000007481 00000 n
0000007835 00000 n
0000007482 00000 n
0000007836 00000 n
0000000782 00000 n
0000000875 00000 n
0000000992 00000 n
0000003654 00000 n
0000006297 00000 n
0000003838 00000 n
0000006518 00000 n
0000007635 00000 n
0000007897 00000 n
0000007999 00000 n
0000003655 00000 n
0000006298 00000 n
0000003839 00000 n
0000006519 00000 n
0000007636 00000 n
0000007898 00000 n
0000008000 00000 n
trailer
<< /Size 40 /Root 38 0 R /Info 39 0 R /ID [ <2350CAD05F8A7AF0AA4058486855344F> <2350CAD05F8A7AF0AA4058486855344F> ] >>
startxref
8133
8134
%%EOF
24 changes: 12 additions & 12 deletions testfiles-pdftex/test-ref.tpf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ endobj
<< /Type /StructElem /S /P /NS 11 0 R /P 22 0 R /K <</Type /MCR /Pg 24 0 R/MCID 0>> /ID (ID.04) >>
endobj
25 0 obj
<< /Type /StructElem/Ref [ 26 0 R 23 0 R ] /S /P /NS 11 0 R /P 22 0 R /K <</Type /MCR /Pg 24 0 R/MCID 1>> /ID (ID.05) >>
<< /Type /StructElem /Ref [ 26 0 R 23 0 R ] /S /P /NS 11 0 R /P 22 0 R /K <</Type /MCR /Pg 24 0 R/MCID 1>> /ID (ID.05) >>
endobj
26 0 obj
<< /Type /StructElem /S /P /NS 11 0 R /P 22 0 R /K <</Type /MCR /Pg 24 0 R/MCID 2>> /ID (ID.06) >>
Expand Down Expand Up @@ -298,7 +298,7 @@ xref
0000000003 00000 f
0000000004 00000 f
0000000010 00000 f
0000003507 00000 n
0000003508 00000 n
0000000684 00000 n
0000000910 00000 n
0000002862 00000 n
Expand All @@ -319,25 +319,25 @@ xref
0000003134 00000 n
0000000395 00000 n
0000003251 00000 n
0000003390 00000 n
0000003391 00000 n
0000000537 00000 n
0000000015 00000 n
0000018494 00000 n
0000018652 00000 n
0000018495 00000 n
0000018653 00000 n
0000000648 00000 n
0000000741 00000 n
0000000873 00000 n
0000003627 00000 n
0000003938 00000 n
0000016464 00000 n
0000016711 00000 n
0000018711 00000 n
0000018813 00000 n
0000003628 00000 n
0000003939 00000 n
0000016465 00000 n
0000016712 00000 n
0000018712 00000 n
0000018814 00000 n
trailer
<< /Size 40
/Root 38 0 R
/Info 39 0 R
/ID [<9BD18DF3359C1216B83ADB4AA401CC9A> <9BD18DF3359C1216B83ADB4AA401CC9A>] >>
startxref
18947
18948
%%EOF
156 changes: 78 additions & 78 deletions testfiles/remap-tags.luatex.tpf
Original file line number Diff line number Diff line change
Expand Up @@ -554,13 +554,13 @@ endobj
<< /Type /StructElem /C /justify /S /text /P 19 0 R /K [<</Type /MCR /Pg 9 0 R /MCID 4>> 21 0 R 25 0 R <</Type /MCR /Pg 9 0 R /MCID 6>> ] /ID (ID.012) >>
endobj
21 0 obj
<< /Type /StructElem /S /footnotemark /P 20 0 R/Ref [ 25 0 R ] /K [ 22 0 R ] /ID (ID.013) >>
<< /Type /StructElem /S /footnotemark /P 20 0 R /Ref [ 25 0 R ] /K [ 22 0 R ] /ID (ID.013) >>
endobj
22 0 obj
<< /Type /StructElem /S /Link /P 21 0 R /K [<</Type /MCR /Pg 9 0 R /MCID 5>> 24 0 R] /ID (ID.014) >>
endobj
25 0 obj
<< /Type /StructElem /S /footnote /P 20 0 R/Ref [ 21 0 R ] /K [26 0 R 27 0 R] /ID (ID.015) >>
<< /Type /StructElem /S /footnote /P 20 0 R /Ref [ 21 0 R ] /K [26 0 R 27 0 R] /ID (ID.015) >>
endobj
26 0 obj
<< /Type /StructElem /S /footnotelabel /P 25 0 R /K 29 0 R /ID (ID.016) >>
Expand Down Expand Up @@ -608,13 +608,13 @@ endobj
<< /Type /StructElem /C /justify /S /P /P 39 0 R /K [<</Type /MCR /Pg 9 0 R /MCID 12>> 41 0 R 45 0 R <</Type /MCR /Pg 9 0 R /MCID 14>> ] /ID (ID.030) >>
endobj
41 0 obj
<< /Type /StructElem /S /Lbl /P 40 0 R/Ref [ 45 0 R ] /K [ 42 0 R ] /ID (ID.031) >>
<< /Type /StructElem /S /Lbl /P 40 0 R /Ref [ 45 0 R ] /K [ 42 0 R ] /ID (ID.031) >>
endobj
42 0 obj
<< /Type /StructElem /S /Link /P 41 0 R /K [<</Type /MCR /Pg 9 0 R /MCID 13>> 44 0 R] /ID (ID.032) >>
endobj
45 0 obj
<< /Type /StructElem /S /Note /P 40 0 R/Ref [ 41 0 R ] /K [46 0 R 47 0 R] /ID (ID.033) >>
<< /Type /StructElem /S /Note /P 40 0 R /Ref [ 41 0 R ] /K [46 0 R 47 0 R] /ID (ID.033) >>
endobj
46 0 obj
<< /Type /StructElem /S /Lbl /P 45 0 R /K 49 0 R /ID (ID.034) >>
Expand Down Expand Up @@ -971,7 +971,7 @@ xref
0000000003 00000 f
0000000004 00000 f
0000000008 00000 f
0000022185 00000 n
0000022189 00000 n
0000016468 00000 n
0000017382 00000 n
0000000000 00000 f
Expand All @@ -988,37 +988,37 @@ xref
0000018927 00000 n
0000019024 00000 n
0000019198 00000 n
0000019308 00000 n
0000019309 00000 n
0000014300 00000 n
0000000020 00000 n
0000019427 00000 n
0000019538 00000 n
0000019630 00000 n
0000019718 00000 n
0000019846 00000 n
0000019962 00000 n
0000020046 00000 n
0000020134 00000 n
0000020256 00000 n
0000020348 00000 n
0000020465 00000 n
0000020577 00000 n
0000020669 00000 n
0000020787 00000 n
0000020900 00000 n
0000020992 00000 n
0000021165 00000 n
0000021266 00000 n
0000019428 00000 n
0000019540 00000 n
0000019632 00000 n
0000019720 00000 n
0000019848 00000 n
0000019964 00000 n
0000020048 00000 n
0000020136 00000 n
0000020258 00000 n
0000020350 00000 n
0000020467 00000 n
0000020579 00000 n
0000020671 00000 n
0000020789 00000 n
0000020902 00000 n
0000020994 00000 n
0000021167 00000 n
0000021269 00000 n
0000014521 00000 n
0000000073 00000 n
0000021386 00000 n
0000021493 00000 n
0000021575 00000 n
0000021658 00000 n
0000021783 00000 n
0000021899 00000 n
0000021982 00000 n
0000022065 00000 n
0000021389 00000 n
0000021497 00000 n
0000021579 00000 n
0000021662 00000 n
0000021787 00000 n
0000021903 00000 n
0000021986 00000 n
0000022069 00000 n
0000000126 00000 n
0000015880 00000 n
0000011922 00000 n
Expand All @@ -1028,11 +1028,11 @@ xref
0000014915 00000 n
0000014968 00000 n
0000015029 00000 n
0000034298 00000 n
0000034302 00000 n
0000015082 00000 n
0000015143 00000 n
0000031680 00000 n
0000028969 00000 n
0000031684 00000 n
0000028973 00000 n
0000015196 00000 n
0000015257 00000 n
0000015310 00000 n
Expand All @@ -1041,67 +1041,67 @@ xref
0000015485 00000 n
0000015538 00000 n
0000015599 00000 n
0000026729 00000 n
0000024482 00000 n
0000026733 00000 n
0000024486 00000 n
0000015652 00000 n
0000015713 00000 n
0000015766 00000 n
0000015827 00000 n
0000034651 00000 n
0000034655 00000 n
0000014266 00000 n
0000016062 00000 n
0000016098 00000 n
0000035021 00000 n
0000035025 00000 n
0000016155 00000 n
0000016188 00000 n
0000034960 00000 n
0000034964 00000 n
0000016250 00000 n
0000016283 00000 n
0000034848 00000 n
0000034852 00000 n
0000016340 00000 n
0000016373 00000 n
0000034787 00000 n
0000034791 00000 n
0000016435 00000 n
0000016662 00000 n
0000017345 00000 n
0000017961 00000 n
0000022304 00000 n
0000023454 00000 n
0000022369 00000 n
0000022444 00000 n
0000023692 00000 n
0000024637 00000 n
0000024838 00000 n
0000025728 00000 n
0000024882 00000 n
0000024957 00000 n
0000025967 00000 n
0000026884 00000 n
0000027086 00000 n
0000027968 00000 n
0000027130 00000 n
0000027205 00000 n
0000028207 00000 n
0000029124 00000 n
0000029326 00000 n
0000030632 00000 n
0000029404 00000 n
0000029480 00000 n
0000030871 00000 n
0000031836 00000 n
0000032039 00000 n
0000033253 00000 n
0000032128 00000 n
0000032203 00000 n
0000033490 00000 n
0000034451 00000 n
0000034712 00000 n
0000035133 00000 n
0000035417 00000 n
0000035455 00000 n
0000035714 00000 n
0000022308 00000 n
0000023458 00000 n
0000022373 00000 n
0000022448 00000 n
0000023696 00000 n
0000024641 00000 n
0000024842 00000 n
0000025732 00000 n
0000024886 00000 n
0000024961 00000 n
0000025971 00000 n
0000026888 00000 n
0000027090 00000 n
0000027972 00000 n
0000027134 00000 n
0000027209 00000 n
0000028211 00000 n
0000029128 00000 n
0000029330 00000 n
0000030636 00000 n
0000029408 00000 n
0000029484 00000 n
0000030875 00000 n
0000031840 00000 n
0000032043 00000 n
0000033257 00000 n
0000032132 00000 n
0000032207 00000 n
0000033494 00000 n
0000034455 00000 n
0000034716 00000 n
0000035137 00000 n
0000035421 00000 n
0000035459 00000 n
0000035718 00000 n
trailer
<< /Size 134 /Root 132 0 R /Info 133 0 R /ID [ <2350CAD05F8A7AF0AA4058486855344F> <2350CAD05F8A7AF0AA4058486855344F> ] >>
startxref
35924
35928
%%EOF
Loading

0 comments on commit 93d0b6c

Please sign in to comment.