Summary of Commands
A compiler processes ordinary text from an input file into one long string of glyphs and spaces. To produce a printed document, this string must be broken into lines, and these lines must be broken into pages. The available commands are:
- \\ start a new paragraph.
- \\* start a new line but not a new paragraph.
- \cleardoublepage flush all material and start a new page.
- \clearpage plush all material and start a new page.
- \linebreak allow to break the line here.
- \newline request a new line.
- \newpage request a new page.
- \nolinebreak no line break should happen here.
- \nopagebreak no page break should happen here.
- \pagebreak encourage page break.
\\ LaTeX New Line
The \\ command tells to start a new line. It has an optional argument, extra-space, that specifies how much extra vertical space is to be inserted before the next line. This can be a negative amount.
1 |
\\[extra-space] |
The \\* command is the same as the ordinary \\ command except that it tells not to start a new page after the line.
LaTeX \newline
The \newline command breaks the line right where it is. The \newline command can be used only in paragraph mode.
LaTeX \cleardoublepage
The \cleardoublepage command ends the current page and causes all figures and tables that have so far appeared in the input to be printed. In a two-sided printing style, it also makes the next page a right-hand (odd-numbered) page, producing a blank page if necessary.
LaTeX \clearpage
The \clearpage command ends the current page and causes all figures and tables that have so far appeared in the input to be printed.
LaTeX \linebreak
The \linebreak command tells to break the current line at the point of the command. The optional argument, a number, converts the \linebreak command from a demand to a request. The number must range from 0 to 4. The higher the number, the stronger the request.
1 |
\linebreak[number] |
The \linebreak command causes to stretch the line so it extends to the right margin.
LaTeX \newpage
The \newpage command ends the current page.
LaTeX \nolinebreak
The \nolinebreak command prevents from breaking the current line at the point of the command. The optional argument, a number, converts the \nolinebreak command from a demand to a request. The number must range from 0 to 4. The higher the number, the stronger the request.
1 |
\nolinebreak[number] |
LaTeX \nopagebreak
The \nopagebreak command instructs not to form a break on the current page at the point of the command. The optional argument, a number, converts the \nopagebreak command from a demand to a request. The number must range from 0 to 4. The higher the number, the stronger the request.
1 |
\nopagebreak[number] |
LaTeX \pagebreak
The \pagebreak command tells to break the current page at the point of the command. The optional argument, a number, converts the \pagebreak command from a demand to a request. The number must be a number from 0 to 4. The number must range from 0 to 4. The higher the number, the stronger the request.