Browse Source

Added vertical space

main
Kenneth John Odle 8 months ago
parent
commit
c7f661c655
  1. 76
      lbol.tex

76
lbol.tex

@ -536,11 +536,64 @@ You don’t know about me without you have read a book by the name of \textit{Th
\subsection{\texttt{vspace}}
The \texttt{vspace} command will allow you to insert a vertical space in any unit understood by \LaTeX{}.
\begin{Verbatim}[]
This line has a five millimeter high space below it.\vspace{5mm}
This is the next line
\end{Verbatim}
\noindent{}gives us this:
\medskip
\noindent{}This line has a five millimeter high space below it.\vspace{5mm}
\noindent{}This is the next line
\subsection{Other Vertical Spacing Commands}
There are other ways to insert a vertical small space, using a single command.
\begin{longtblr}
[
caption = {Vertical Spacing Commands},
label = {tb:vertspacom},
theme = {custom1},
]{
width = {\textwidth},
colspec = { X[1,l] X[3,l] },
hlines = {0.75pt,solid},
vline{1,3} = {0.75pt,solid},
rows = {5mm, m, rowsep=1.5pt},
rowhead = 1
}
\Verb+\vfill+ & Inserts a vertical space that will stretch to fill the space available. This can be used to push content to the bottom of the page. \\
\Verb+\smallskip+ & Adds an approximately 3pt skip. \\
\Verb+\medskip+ & Adds an approximately 6pt skip. \\
\Verb+\bigskip+ & Adds an approximately 12pt skip.
\end{longtblr}
\section{Horizontal Space}
\subsection{\texttt{hspace}}
The \texttt{hspace} command will allow you to insert a horizontal space in any unit understood by \LaTeX{}.
\begin{Verbatim}[]
This line has a\hspace{2cm}two centimeter wide space in the middle.
\end{Verbatim}
\noindent{}gives us this:
\medskip
\noindent{}This line has a \hspace{2cm}two centimeter wide space in the middle.
\subsection{Single Horizontal Spaces}
Spacing commands can be found in math mode, but most of the ones in the table below can be used in text mode if you load the \texttt{amsmath} package.
Spacing commands can be found in math mode, but most of the ones in the table below can be used in text mode if you load the \texttt{amsmath} package. Some of the commands below will \textit{only} work in math mode as shown in the ``code'' column.\footnote{For more information, see \kref{https://tex.stackexchange.com/questions/74353/what-commands-are-there-for-horizontal-spacing}{https://tex.stackexchange.com/questions/74353/what-commands-ar\\e-there-for-horizontal-spacing}.}
\begin{longtblr}
[
@ -549,28 +602,27 @@ Spacing commands can be found in math mode, but most of the ones in the table be
theme = {custom1},
]{
width = {\textwidth},
colspec = { >{\small}X[3,l] >{\small}X[1,c] >{\small}X[1,c] },
colspec = { X[2.5,l] X[1,c] X[1,c] },
hlines = {0.75pt,solid},
vline{1,4} = {0.75pt,solid},
rows = {5mm, m, rowsep=1.5pt},
column{1} = {font=\small\selectfont},
row{1} = {font=\bfseries},
rowhead = 1
}
Description & Code & Example \\
No separation & & OO \\
Thick space & \Verb+\;+ & O\;O \\
Thick space (0.2777em) & \Verb+\;+ & O\;O \\
Medium space (0.2222em) & \Verb+\:+ & O\:O \\
Thin space (a kern) & \Verb+\,+ & O\,O \\
Negative thin space & \Verb+\!+ & O\!O \\
Quad & \Verb+$\quad$+ & O$\quad$O \\
Qquad & \Verb+$\qquad$+ & O$\qquad$O \\
Medium space (0.2222em) & \Verb+\>+ & O\>O \\
Thin space (0.16667em) & \Verb+\,+ & O\,O \\
Negative thin space (-0.16667em) & \Verb+\!+ & O\!O \\
Enspace (0.5em) & \Verb+$\enspace$+ & O$\enspace$O \\
Quad (1em) & \Verb+$\quad$+ & O$\quad$O \\
Qquad (2em) & \Verb+$\qquad$+ & O$\qquad$O \\
Nonbreaking space & \Verb+$<char>~<char>$+ & $O~O$ \\
\end{longtblr}
\subsection{\texttt{hspace}}
\section{Phantoms}
Sometimes you need to insert a blank space that is the width of a particular character or stretch of space. To do this, you will need to use the \texttt{phantom} command.

Loading…
Cancel
Save