Skip to content

Commit

Permalink
move tagpdfparaOff (latex3/tagging-project#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Nov 19, 2024
1 parent b274b5f commit c749060
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions required/latex-lab/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
fakemath (tagging/764)
* latex-lab-math.dtx: made all main math sockets to tagging sockets and
assign the plugs directly.
* disable para tagging also in $$-display (tagging/765)

2024-11-18 Joseph Wright <[email protected]>
* latex-lab-math.dtx: Use "@@" for a couple of internals
Expand Down
8 changes: 3 additions & 5 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1533,11 +1533,13 @@


% \begin{plugdecl}{default}
% \changes{v0.6j}{2024-11-19}{moved \cs{tagpdfparaOff} into the socket, tagging/765}
% \begin{macrocode}
\socket_new_plug:nnn
{tagsupport/math/display/formula/begin}
{default}
{
\tagpdfparaOff
\@@_luamml_structelem:
\tag_socket_use:n{math/content}
\tag_socket_use:n{math/struct/begin}
Expand Down Expand Up @@ -1981,17 +1983,14 @@
%
% The end code is added through a \cs{aftergroup} so we
% store it inside a command.
% \changes{v0.6j}{2024-11-19}{removed unneeded \cs{tagpdfparaOn}}
% \begin{macrocode}
\cs_new_protected:Npn \@@_tag_dollardollar_display_end:
{
% \typeout{== tag dollarldollar display end}
% \ShowTagging{struct-stack}
\para_raw_end:
% \end{macrocode}
% TODO why is that needed? where is para-tagging disabled?
% \begin{macrocode}
\tagpdfparaOn
% \end{macrocode}
% The \cs{postdisplaypenalty} was temporarily set to 10000 inside
% the display and the \cs{belowdisplayskip} and the
% \cs{belowdisplayshortskip} was negated, so whatever was inserted
Expand Down Expand Up @@ -2391,7 +2390,6 @@
\__tag_tool_close_P:
}
\tag_socket_use:nn{math/display/formula/begin}{}{}
\tagpdfparaOff
% \typeout{==>MC1}\ShowTagging{mc-current}
}
Expand Down
22 changes: 22 additions & 0 deletions required/latex-lab/testfiles-math/mtag-007-gh765.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
\DocumentMetadata{testphase={phase-III,math,table}}
\input{regression-test}
\RequirePackage{tagpdf-debug}
\documentclass{article}
\begin{document}

$$
a =
\mbox{\LaTeX \begin{tabular}{l}a\end{tabular}}
\begin{tabular}{l}b\end{tabular}
\parbox{3cm}{some text}
$$

\begin{equation}
a =
\mbox{\LaTeX \begin{tabular}{l}a\end{tabular}}
\begin{tabular}{l}b\end{tabular}
\parbox{3cm}{some text}
\end{equation}

\ShowTagging{debug/structures}
\end{document}
Empty file.

0 comments on commit c749060

Please sign in to comment.