Converted font variations table to «tabularray»

This commit is contained in:
Kenneth John Odle 2023-10-29 14:20:25 -04:00
parent 64319e8230
commit 36005d6895

View File

@ -371,36 +371,27 @@ Many packages introduce additional environments. For other useful environments t
\LaTeX{} has various ways of formatting type: \LaTeX{} has various ways of formatting type:
% Provide some additional spacing in this table; may move this to preamble later \begin{longtblr}
\setlength{\tabcolsep}{14pt} [
\renewcommand{\arraystretch}{1.4} caption = {Font Variations in \LaTeX{} },
label = {tbl:fontvar}
\begin{table}[H] ]{
\centering width = {114.3mm},
\caption{Font Variations\label{fontvar}} colspec = { X[1,l] X[2,l] X[1,l] },
\medskip hlines = {0.75pt,solid},
\noindent{}\begin{tabular}{| m{2cm} m{4cm} m{2cm} |} vline{1,4} = {0.75pt,solid},
\hline rows = {5mm, m, rowsep=1.5pt}
}
\textbf{Effect} & \textbf{Code} & \textbf{Example} \\ \textbf{Effect} & \textbf{Code} & \textbf{Example} \\
\hline Bold & \Verb+\textbf{Bold}+ & \textbf{Bold} \\
Bold & \verb+\textbf{Bold}+ & \textbf{Bold} \\ Italic & \Verb+\textit{Italic}+ & \textit{Italic} \\
\hline Slanted & \Verb+\textsl{Slanted}+ & \textsl{Slanted} \\
Italic & \verb+\textit{Italic}+ & \textit{Italic} \\ Emphasis & \Verb+\emph{Emphasis}+ & \emph{Emphasis} \\
\hline Typewriter & \Verb+\texttt{Typewriter}+ & \texttt{Typewriter} \\
Slanted & \verb+\textsl{Slanted}+ & \textsl{Slanted} \\ Small Caps & \Verb+\textsc{Small Caps}+ & \textsc{Small Caps} \\
\hline Sans Serif & \Verb+\textsf{Sans Serif}+ & \textsf{Sans Serif} \\
Emphasis & \verb+\emph{Emphasis}+ & \emph{Emphasis} \\ \end{longtblr}
\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}
\bigskip
It is possible to combine these. For example, to write \textit{\textsc{Italic text in Small Caps}}, you would use: It is possible to combine these. For example, to write \textit{\textsc{Italic text in Small Caps}}, you would use: