Overleaf and LatTeX don't create blank lines?
Hello! I hope someone here knows something about this! I need to format a document in LaTeX and am using Overleaf for this. I'm trying to insert a blank line, and in every other subdocument, it worked when I did it like this:
text
\\
\\
text
But in this subdocument, I always get the error message "There is no line here to end" after the second backslash. For some reason, the text is also automatically centered instead of right-aligned. I've tried creating a new subdocument, changing the labels, or copying the code from the working document and then simply pasting the new text, but nothing works. Has anyone else encountered this problem? What could be the cause, and how can I fix it?
\\ as a line end only works if there is also a line to finish – so at least one character. This can be tricked by inserting a \ (backslash + space forces a space), so \\\ .
Cleaner/orderly solutions for space between paragraphs also exist, see here.
Oh, thank you. That’s more elegant!
Please, minimal example, obviously you are here in any environment that is different than in other documents. But actually it is common that this error message comes when you insert several new lines. So the question is more why this was not the case elsewhere.
\bigskip maybe?