Converted font variations table to «tabularray»
This commit is contained in:
parent
64319e8230
commit
36005d6895
47
lbol.tex
47
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user