0

I found that "Verbatim" environment has some asymmetrical vertical spacing with option "frame=", especially for "frame=lines" and "frame=single". Is there any way I can fix this problem? Thanks in advance.

ps: I am using the just updated texlive2022. The following is my MWE:

enter image description here

\documentclass{article}
\usepackage{lipsum}
\usepackage{fancyvrb}

\begin{document}
\section{Introduction}

\lipsum[1][1-2]

\begin{Verbatim}[frame=none]
There is a sentence with none frame.
\end{Verbatim}

\lipsum[1][1-2]

\begin{Verbatim}[frame=leftline]
There is a sentence with leftline frame.
\end{Verbatim}

\lipsum[1][1-2]

\begin{Verbatim}[frame=topline]
There is a sentence with topline frame.
\end{Verbatim}

\lipsum[1][1-2]

\begin{Verbatim}[frame=bottomline]
There is a sentence with bottomline frame.
\end{Verbatim}

\lipsum[1][1-2]

\begin{Verbatim}[frame=lines]
There is a sentence with lines frame.
\end{Verbatim}

\lipsum[1][1-2]

\begin{Verbatim}[frame=single]
There is a sentence with single frame.
\end{Verbatim}

\lipsum[1][1-2]

\end{document}

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.