Skip to content

Commit

Permalink
define whatsits command earlier for tex4ht
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Apr 29, 2024
1 parent 0121aab commit 3d7b1f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tagpdf.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,16 @@
% possible, so we define a command which a special in the relevant backends:
% \begin{macrocode}
%<*base>
\cs_new_protected:Npn \@@_whatsits: {}
\AddToHook{begindocument}
{
\str_case:VnF \c_sys_backend_str
{
{ luatex } { \cs_new_protected:Npn \@@_whatsits: {} }
{ dvisvgm } { \cs_new_protected:Npn \@@_whatsits: {} }
{ luatex } { \cs_set_protected:Npn \@@_whatsits: {} }
{ dvisvgm } { \cs_set_protected:Npn \@@_whatsits: {} }
}
{
\cs_new_protected:Npn \@@_whatsits: {\tex_special:D {} }
\cs_set_protected:Npn \@@_whatsits: {\tex_special:D {} }
}
}
%</base>
Expand Down

0 comments on commit 3d7b1f1

Please sign in to comment.