Latex Multiple Linebreaks

rlb.usa picture rlb.usa · Feb 3, 2010 · Viewed 168.5k times · Source

I use LaTeX to type up programming homeworks for classes. I need to do this:

my line of text blah blah blah

new line of text with blank line between 

I know I can use double slash to break lines \\, but LaTeX will only take the first line break (complains about more) and starts a new line, it produces this :

my line of text blah blah blah  
new line of text with blank line between 

How can I get that extra line break in there so I can have space between my lines of text?

Answer

Seth Johnson picture Seth Johnson · Feb 3, 2010

Line break accepts an optional argument in brackets, a vertical length:

line 1
\\[4in]
line 2

To make this more scalable with respect to font size, you can use other lengths, such as \\[3\baselineskip], or \\[3ex].