# Why do some spacing commands work correctly after end commands, and others don't?

Why is it that

\begin{verbatim}
some verbatim
\end{verbatim}\bigskip


will work without errors, but if I changed the ending line to

\end{verbatim}\\[1\baselineskip]


I'll get errors?

Am I misunderstanding a basic concept of LaTex or?

-

## migrated from meta.tex.stackexchange.comJul 30 '14 at 16:25

This question came from our discussion, support, and feature requests site for users of TeX, LaTeX, ConTeXt, and related typesetting systems.

Was that supposed to be \\[1\baselineskip]? –  Torbjørn T. Jul 30 '14 at 16:32
The error you get is There's no line here to end which should be self explaining: \end{verbatim} ends a paragraph and \\ is not legal between paragraphs. I'd place \bigskip (or \vspace{\baselineskip}, if you prefer) below \end{verbatim}, not on the same line. But why would you want a big space below the verbatim text? –  egreg Jul 30 '14 at 16:51
I have the feeling that you might be interested in package parskip. Possible? –  Johannes_B Jul 30 '14 at 16:51

verbatim is a display environment so after it you are in vertical (par) mode so you can use vertical spacing commands such as \bigskip (although you should almost never need to do this, the correct spacing should be specified in your class file).
Conversely \\ is a command to be used in horizontal (LR) mode it forces a break in the current line. There is no current line at that point so you get an error. Use of \\ outside tables is almost always incorrect even when it doesn't generate an error.