When I want to have a space between lines I use \\~\\ or \newline
For example
Hello this is an example
\\~\\
Goodbye
I get the error there is no line to end here.
What am I doing wrong?
When I want to have a space between lines I use \\~\\ or \newline
For example
Hello this is an example
\\~\\
Goodbye
I get the error there is no line to end here.
What am I doing wrong?
If you really want to skip a line, use
First line
\medskip
last line
A larger space is obtained with \bigskip
You should not skip lines in this manner, you're better off using \vspace.
however, to answer your question, what you have there actually is
First line
\newline
~
\newline
last line
The first newline does not have a line to end. so it should simply be
First line
~\\
last line
\vspace should come right at the start. The line skipping is not recomendable at all.
– Johannes_B
Jul 25 '16 at 09:24
\vspace{sizeofskip} check out this link https://www.sharelatex.com/learn/Line_breaks_and_blank_spaces
you can also use \medskip
– Elad Den
Jul 25 '16 at 09:35
~\\ is still completely wrong and would for example produce something that looks like vertical space but is in fact a paragraph with no text that is not dropped at a page break, and as always if you end a paragraph with \\ you will get underfull; box 10000 warnings.
– David Carlisle
Jul 25 '16 at 09:43
\medskipwas defined by the document class, is it always guaranteed (assuming the user hasn't redefined it) to be the equivalent of skipping a line? – Au101 Jul 25 '16 at 21:25