[Tex/LaTex] Change line spacing of \\

line-spacing

I have a block of text:

Blah: \\
line1 \\
line2 \\
line3 \\
Blah.

I want to change the line spacing between lines 1-3 only. But somehow I cannot do that with \linespread{} or \setstretch{} — the line spacing created by \\ seems to be unaffected by those commands. What can I do?

Best Answer

I would have a look on the package listings if you want to add code to your text.

For your example, you may use any addition of vertical space as mentioned here: https://tex.stackexchange.com/a/41488

Here are some examples:

% arara: pdflatex

\documentclass{article}

\begin{document}
\noindent   
Blah: \\[1cm]
line1 \medskip\\ % or smallskip or bigskip
line2 \vspace{1cm}\\
line3 \\
Blah.
\end{document}