Closed jfbu closed 8 months ago
Sorry my initial title was wrong as one shows with output without activated tagging:
Update: perhaps my title is off the mark as it may rather be list leftmargin which is not obeyed rather than spaces from source. I did not look more closely.
I edited the title to better match the problem:
\DocumentMetadata{testphase={phase-III}}
\documentclass{article}
\begin{document}
\begin{itemize}
\item
\begin{verbatim}
\MTactiveasterisk
\MTprimedoesskip
\end{verbatim}
\item Text
\begin{verbatim}
\MTactiveasterisk
\MTprimedoesskip
\end{verbatim}
\item Some sub list
\begin{itemize}
\item Some text before verbatim
\begin{verbatim}
\MTactiveasterisk
\MTprimedoesskip
\MTprimedoesskip
\MTprimedoesskip
\end{verbatim}
\end{itemize}
\end{itemize}
OK if out of list item:
\begin{verbatim}
\MTactiveasterisk
\MTprimedoesskip
\end{verbatim}
\end{document}
% https://github.com/u-fischer/tagpdf/issues/79
LaTeX2e used a trivlist for verbatim and inside changed \leftskip to mimic the outer indentation. We now do not used a list anymore but this means that we need to preserve any \parshape setting from an outer list (which the code failed to do). This has been corrected in latex-lab.
Will vertical spacing relative to surrounding context be faithfully obeyed by the new code not using a list?
Will vertical spacing relative to surrounding context be faithfully obeyed by the new code not using a list?
define faithfully :-) yes it should that was the plan. It is implemented as a displayblock template which handles the vertical spacing to be (by default) th same as in other display blocks, eg lists or quote etc. By using its own instance, however, a class file can decide to use special spacing around the verbatim different from, say, quote or lists which gives more choices than with the 2e implementation, but by default it should come out as before.
ok since I discovered latex2e/required/latex-lab and the magic incantation l3build doc
so I have some reading to do...
produces
test_tagging_verbatim2.log