Skip to content
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

verbatim is more widely spaced if tagging (phase-III) is activated #74

Closed
jfbu opened this issue May 15, 2023 · 2 comments
Closed

verbatim is more widely spaced if tagging (phase-III) is activated #74

jfbu opened this issue May 15, 2023 · 2 comments

Comments

@jfbu
Copy link

jfbu commented May 15, 2023

\DocumentMetadata{testphase={phase-III}}
\documentclass{article}
\begin{document}
\begin{verbatim}
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\Huge
$\mathit{f_i^i}$\par $\mathrm{f_i^i}$
\end{document}
\end{verbatim}
\end{document}

output from using lualatex-dev:
Capture d’écran 2023-05-15 à 13 42 01

output if first line is commented out
Capture d’écran 2023-05-15 à 13 42 33

Same issue using pdflatex-dev.

Log file with lualatex-dev attached.
test_tagging_verbatim.log

@u-fischer
Copy link
Member

That is an issue in the block-tagging code. \parskip is not zero @FrankMittelbach is legacyverbatimsetup the right place to add this?

\DocumentMetadata{testphase={block-tagging}} 
\documentclass{article}
\begin{document}

\begin{verbatim}
abc
abc
\end{verbatim}

\makeatletter
\AddToHook{cmd/legacyverbatimsetup/before}{\parskip\z@skip}

\begin{verbatim}
abc
abc
\end{verbatim}
\end{document}

image

@FrankMittelbach
Copy link
Member

it would be possible to freeze \parskip to zero as suggested, but I think it is better to use a "verbatimblock" instance to set this value as this allows designs where the code blocks are deliberately spaced out or indented or ... This is what I have pushed in latex-lab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants