-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignored leftmargin by verbatim contents after first line if nested in a list item #79
Comments
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? |
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 |
produces
test_tagging_verbatim2.log
The text was updated successfully, but these errors were encountered: