Skip to content

Commit e953db8

Browse files
committed
correct socket plug
1 parent e59116e commit e953db8

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

tagpdf-user.dtx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,20 +1344,23 @@
13441344
% \end{macro}
13451345
%
13461346
% A special, experimental tagged version, which only works with fancyhdr or similar that uses
1347-
% parbox
1347+
% parbox. The sockets aren't in lttagging yet, so until 2026-06-01 we have to declare
1348+
% the plugs at begin document:
13481349
% \begin{macrocode}
1349-
\NewTaggingSocketPlug{parbox/before}{tag/footer}
1350+
\AtBeginDocument
13501351
{
1351-
\tag_struct_begin:n{tag=Span}
1352-
\tag_mc_begin:n{}
1352+
\NewTaggingSocketPlug{parbox/before}{tag/footer}
1353+
{
1354+
\tag_struct_begin:n{tag=Span}
1355+
\tag_mc_begin:n{}
1356+
}
1357+
1358+
\NewTaggingSocketPlug{parbox/after}{tag/footer}
1359+
{
1360+
\tag_mc_end:
1361+
\tag_struct_end:
1362+
}
13531363
}
1354-
1355-
\NewTaggingSocketPlug{parbox/after}{tag/footer}
1356-
{
1357-
\tag_mc_end:
1358-
\tag_struct_end:
1359-
}
1360-
13611364
\cs_new_protected:Npn \@@_headfoot_tagged_begin:n #1
13621365
{
13631366
\AssignTaggingSocketPlug{parbox/before}{tag/footer}

0 commit comments

Comments
 (0)