Converted default paper sizes table to «tabularray»

This commit is contained in:
Kenneth John Odle 2023-10-29 14:26:51 -04:00
parent 36005d6895
commit a7f7714d5d

View File

@ -566,38 +566,28 @@ The usual way to define a page size is to pass it as an option to the document c
\documentclass[letterpaper]{article}
\end{verbatim}
\noindent{}The widths and heights of the predefined page sizes in \LaTeX{} are:
\noindent{}The widths and heights of the predefined page sizes in \LaTeX{} are:\footnote{I have included the ratio, because you can see how metric sizes are related. The United States really needs to get its shit together and adopt the metric system. There is not a printer or a filing cabinet available that cannot handle metric sized paper.}
% Provide some additional spacing in this table; may move this to preamble later
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{1.4}
\begin{table}[H]
\centering
\caption{Default Paper Sizes\label{defpapsiz}}
\medskip
\noindent{}\begin{tabular}{ m{2cm} m{1.5cm} m{1.5cm} m{1.5cm} }
\hline
\textbf{Option} & \textbf{Width} & \textbf{Height} & \textbf{Ratio\footnotemark} \\
\hline
\begin{longtblr}
[
caption = {Default Paper Sizes in \LaTeX{} },
label = {tbl:defpapersizes}
]{
width = {114.3mm},
colspec = { X[1.4,l] X[1,l] X[1,l] X[0.8,l] },
hlines = {0.75pt,solid},
vline{1,5} = {0.75pt,solid},
rows = {5mm, m, rowsep=1.5pt}
}
\textbf{Option} & \textbf{Width} & \textbf{Height} & \textbf{Ratio} \\
a4paper & 210 mm & 297 mm & 1.4\\
\hline
a5paper & 148 mm & 210 mm & 1.4\\
\hline
b5paper & 176 mm & 250 mm & 1.4 \\
\hline
letterpaper & 8.5 in & 11 in & 1.30\\
\hline
legalpaper & 8.5 in & 14 in & 1.64 \\
\hline
executivepaper & 7.25 in & 10.5 in & 1.45 \\
\hline
\end{tabular}
\end{table}
\end{longtblr}
\footnotetext{I have included the ratio, because you can see how metric sizes are related. The United States really needs to get its shit together and adopt the metric system. There is not a printer or a filing cabinet available that cannot handle metric sized paper.}
\bigskip
\section{Customizing Page Sizes Using \texttt{geometry}}