latex

How to Add a Line Break in LaTeX

A document may include a long paragraph, so it is good to break the paragraph into short ones to make it more readable. A line break or paragraph break helps writers to create clean documents. Breaking a paragraph or line also helps readers read long sentences.

That’s why document processors like LaTeX contain various source codes to add a line break in the document. However, many new users don’t know how to create the line break in the LaTeX document page. So, in this tutorial, we will show different ways to add the line break in LaTeX.

How to Add a Line Break in LaTeX?

First, let’s start with the simple source code, i.e., \\ to insert a line break in the LaTeX document:

\documentclass{article}

\usepackage{blindtext}

\begin{document}

Either, you can use:\\

\blindtext\\

Or else:\\

\blindtext

\end{document
}

Output

Similarly, instead of inserting a line break in the paragraph, you can use the \newline code:

\documentclass{article}

\usepackage{blindtext}

\begin{document}

There are multiple ways to add the line break \newline

\blindtext

\end{document
}

Output

You can also use the following source code in which \hfill creates line spacing and \break starts the next line in the new paragraph:

\documentclass{article}

\usepackage{blindtext}

\begin{document}

There are multiple ways to add the line break \hfill \break

\blindtext

\end{document
}

Output

Conclusion

This is how you can easily use different source codes to add a line break in LaTeX. For better information, we have used simple example source codes. A line break can make your content clean and suitable for the reader. Please check out our official website to learn more about LaTeX.

About the author

Prateek Jangid

A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.