Generalspacing in verbatim

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Bender
Posts: 4
Joined: Sat Jan 12, 2008 12:34 pm

spacing in verbatim

Post by Bender »

Hi,
I use the verbatim environment and the paralist package. Within verbatim environments, the spacing is
abnormal large. I have no clue how to change to small spacings (< 1 line) and still use paralist.
Any hint is welcome.
Thanks
Bender

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

spacing in verbatim

Post by Stefan Kottwitz »

Hi Bender,

I cannot reproduce your problem. When I do the same, use the verbatim environment while using paralist too, the spacing is normal. Can you provide a minimal working example that shows the problem?

Stefan
Bender
Posts: 4
Joined: Sat Jan 12, 2008 12:34 pm

spacing in verbatim

Post by Bender »

Hi,
thanks for the very fast reaction. The problem persists, but I have found a solution:

Code: Select all

\usepackage{fancyvrb}
and then replacing

Code: Select all

\begin{verbatim}
...
\end{verbatim}
with

Code: Select all

\begin{Verbatim}[frame=single,baselinestretch=0.1]
...
\end{Verbatim}
I get a nicely formatted verbatim environment.

Bender
markwayne
Posts: 1
Joined: Tue Jul 10, 2012 11:19 pm

Re: spacing in verbatim

Post by markwayne »

Awesome. Exactly what I was looking for. In the distant future from OP but -- thanks!
Post Reply