From 36005d689536318469aaf01ba55409a39f0397c2 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sun, 29 Oct 2023 14:20:25 -0400 Subject: [PATCH] =?UTF-8?q?Converted=20font=20variations=20table=20to=20?= =?UTF-8?q?=C2=ABtabularray=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lbol.tex | 47 +++++++++++++++++++---------------------------- 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/lbol.tex b/lbol.tex index 9f1f7f0..7fe3cd6 100644 --- a/lbol.tex +++ b/lbol.tex @@ -371,36 +371,27 @@ Many packages introduce additional environments. For other useful environments t \LaTeX{} has various ways of formatting type: -% Provide some additional spacing in this table; may move this to preamble later -\setlength{\tabcolsep}{14pt} -\renewcommand{\arraystretch}{1.4} - -\begin{table}[H] -\centering -\caption{Font Variations\label{fontvar}} -\medskip -\noindent{}\begin{tabular}{| m{2cm} m{4cm} m{2cm} |} -\hline +\begin{longtblr} +[ + caption = {Font Variations in \LaTeX{} }, + label = {tbl:fontvar} +]{ + width = {114.3mm}, + colspec = { X[1,l] X[2,l] X[1,l] }, + hlines = {0.75pt,solid}, + vline{1,4} = {0.75pt,solid}, + rows = {5mm, m, rowsep=1.5pt} +} \textbf{Effect} & \textbf{Code} & \textbf{Example} \\ -\hline - Bold & \verb+\textbf{Bold}+ & \textbf{Bold} \\ -\hline - Italic & \verb+\textit{Italic}+ & \textit{Italic} \\ -\hline - Slanted & \verb+\textsl{Slanted}+ & \textsl{Slanted} \\ -\hline - Emphasis & \verb+\emph{Emphasis}+ & \emph{Emphasis} \\ -\hline - Typewriter & \verb+\texttt{Typewriter}+ & \texttt{Typewriter} \\ -\hline - Small Caps & \verb+\textsc{Small Caps}+ & \textsc{Small Caps} \\ -\hline - Sans Serif & \verb+\textsf{Sans Serif}+ & \textsf{Sans Serif} \\ -\hline -\end{tabular} -\end{table} + Bold & \Verb+\textbf{Bold}+ & \textbf{Bold} \\ + Italic & \Verb+\textit{Italic}+ & \textit{Italic} \\ + Slanted & \Verb+\textsl{Slanted}+ & \textsl{Slanted} \\ + Emphasis & \Verb+\emph{Emphasis}+ & \emph{Emphasis} \\ + Typewriter & \Verb+\texttt{Typewriter}+ & \texttt{Typewriter} \\ + Small Caps & \Verb+\textsc{Small Caps}+ & \textsc{Small Caps} \\ + Sans Serif & \Verb+\textsf{Sans Serif}+ & \textsf{Sans Serif} \\ +\end{longtblr} -\bigskip It is possible to combine these. For example, to write \textit{\textsc{Italic text in Small Caps}}, you would use: