Browse Source

Added section on breaks

main
Kenneth John Odle 6 months ago
parent
commit
ba7be9d24b
  1. 44
      lbol.tex

44
lbol.tex

@ -603,8 +603,8 @@ Spacing commands can be found in math mode, but most of the ones in the table be
]{
width = {\textwidth},
colspec = { X[2.5,l] X[1,c] X[1,c] },
hlines = {0.75pt,solid},
vline{1,4} = {0.75pt,solid},
hlines = {0.5pt,solid},
vline{1,4} = {0.5pt,solid},
rows = {5mm, m, rowsep=1.5pt},
column{1} = {font=\small\selectfont},
row{1} = {font=\bfseries},
@ -635,6 +635,46 @@ Sometimes you need to insert a blank space that is the width of a particular cha
\textit{height} is the length above the baseline and \textit{depth} is the length below the baseline. A character such as ``w'' will have a height but zero depth, and ``y'' has height as well as depth.
\section{Breaks}
\subsection{Line Breaks}
\LaTeX{} has a number of ways to break lines.
\begin{longtblr}
[
caption = {Breaking Commands},
label = {tb:breaks},
theme = {custom1}
]{
width = {\textwidth},
colspec = { X[1,l] X[4.5,l] },
hlines = {0.5pt,solid},
vline{1,3} = {0.5pt,solid},
rows = {5mm, m, rowsep=1.5pt},
row{1} = {font=\bfseries},
rowhead = 1
}
Code & Description \\
\Verb+\newline+ & Breaks the line and allows a page break after. \\
\texttt{\textbackslash\textbackslash} & Breaks the line and allows a page break after. \\
\texttt{\textbackslash\textbackslash*} & Breaks the line and prohibits a page break after. \\
\Verb+\break+ & {Breaks the line without filling it. \\ (Can results in an awkward appearance.) } \\
\Verb+\hfill\break+ & {Breaks the line and fills it. This avoids the awkward appearance we get from the command above. \\ (Produces the same results as \Verb+\newline+ and \texttt{\textbackslash\textbackslash}.) } \\
\Verb+linebreak[<num>]+ & Allows you to set a priority for the break by inserting a number from 0 to 4. \LaTeX{} will easily ignore a 0, whereas it will definitely break on a 4.
\end{longtblr}
\subsection{Page Breaks}
\LaTeX{} has two commands for inserting a page break.
\begin{itemize}[noitemsep]
\item \Verb+\newpage+ will insert a page break, with the remaining text on the old page left at the top, the way the text appears on the last page of a chapter.
\item \Verb+\pagebreak+ will insert a page break, but \LaTeX{} will insert space between the paragraphs on the old page, so that they occupy the entire length of the page.
\end{itemize}
\texttt{pagebreak} can also accept an optional numerical argument the same way \texttt{linebreak} does, and with the same effect.
\section{Line Spacing}
\LaTeX{} was designed to write documents; as such, its ability to fine-tune certain document parameters, such as line-spacing, is fairly limited out of the box. You can fine-tune this with the \texttt{setspace} package. Add that to your preamble, and you can adjust the line spacing of your document by adding either \texttt{singlespacing}, \texttt{onehalfspacing}, or the \texttt{doublespacing} command to your preamble.

Loading…
Cancel
Save