Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Too much whitespace after verbatim command

Tags:

If I put the following LaTeX code:

\begin{singlespace}
\begin{verbatim}

There is too much whitespace before the text inside those tags appear. It looks like there are two line breaks. Is there a way to reduce this whitespace?

like image 828
alamodey Avatar asked Jun 03 '09 11:06

alamodey


1 Answers

Many environments put some default surrounding space around their contents. The correct way is most likely to find out how the variable that determines this space is called and modify it (temporarily, or for the whole file). For a quick and dirty fix, however, you can just use some negative vspace:

Lorem ipsum...

\vspace{-1ex}

\begin{strangedays}
% ...
like image 159
Svante Avatar answered Oct 12 '22 00:10

Svante