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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10358
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