Skip to content

Commit

Permalink
keep mphantom
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Jan 26, 2025
1 parent 1fa6cb3 commit ad63122
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions required/latex-lab/math-tagging-issues/phantom.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@


\makeatletter\ExplSyntaxOn
\def\@kernel@mathph@nt#1#2{%
\setbox\z@\hbox{$\m@th#1{#2}$}\finph@nt}

\sys_if_engine_luatex:T
{
\def\ph@nt#1{%
Expand All @@ -33,13 +36,10 @@
$
\m@th
#1
{% nested phantoms should not be tagged and annotated to avoid
% nested phantoms should not be tagged and annotated to avoid
% Package tagpdf Warning: structure with label 20 has already been used
% and faulty structure
% is suppressing annotation the right thing?
\SuspendTagging{phantom}
\luamml_annotate:en{core=false}{#2}}
% save
{\let\mathph@nt\@kernel@mathph@nt #2}
\luamml_save:nNn {mathphant} #1 {mphantom}
$
}
Expand Down

0 comments on commit ad63122

Please sign in to comment.