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: