<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Simple table with caption:

\begin{longtable}[]{@{}rlcl@{}}
\caption{Demonstration of simple table syntax.}\tabularnewline
\toprule
Right &amp; Left &amp; Center &amp; Default \\
\midrule
\endfirsthead
\toprule
Right &amp; Left &amp; Center &amp; Default \\
\midrule
\endhead
12 &amp; 12 &amp; 12 &amp; 12 \\
123 &amp; 123 &amp; 123 &amp; 123 \\
1 &amp; 1 &amp; 1 &amp; 1 \\
\bottomrule
\end{longtable}

Simple table without caption:

\begin{longtable}[]{@{}rlcl@{}}
\toprule
Right &amp; Left &amp; Center &amp; Default \\
\midrule
\endhead
12 &amp; 12 &amp; 12 &amp; 12 \\
123 &amp; 123 &amp; 123 &amp; 123 \\
1 &amp; 1 &amp; 1 &amp; 1 \\
\bottomrule
\end{longtable}

Simple table indented two spaces:

\begin{longtable}[]{@{}rlcl@{}}
\caption{Demonstration of simple table syntax.}\tabularnewline
\toprule
Right &amp; Left &amp; Center &amp; Default \\
\midrule
\endfirsthead
\toprule
Right &amp; Left &amp; Center &amp; Default \\
\midrule
\endhead
12 &amp; 12 &amp; 12 &amp; 12 \\
123 &amp; 123 &amp; 123 &amp; 123 \\
1 &amp; 1 &amp; 1 &amp; 1 \\
\bottomrule
\end{longtable}

Multiline table with caption:

\begin{longtable}[]{@{}
  &gt;{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1500}}
  &gt;{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1375}}
  &gt;{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1625}}
  &gt;{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3500}}@{}}
\caption{Here's the caption. It may span multiple lines.}\tabularnewline
\toprule
\begin{minipage}[b]{\linewidth}\centering
Centered Header
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedright
Left Aligned
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedleft
Right Aligned
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedright
Default aligned
\end{minipage} \\
\midrule
\endfirsthead
\toprule
\begin{minipage}[b]{\linewidth}\centering
Centered Header
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedright
Left Aligned
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedleft
Right Aligned
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedright
Default aligned
\end{minipage} \\
\midrule
\endhead
First &amp; row &amp; 12.0 &amp; Example of a row that spans multiple lines. \\
Second &amp; row &amp; 5.0 &amp; Here's another one. Note the blank line between rows. \\
\bottomrule
\end{longtable}

Multiline table without caption:

\begin{longtable}[]{@{}
  &gt;{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1500}}
  &gt;{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1375}}
  &gt;{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1625}}
  &gt;{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3500}}@{}}
\toprule
\begin{minipage}[b]{\linewidth}\centering
Centered Header
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedright
Left Aligned
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedleft
Right Aligned
\end{minipage} &amp; \begin{minipage}[b]{\linewidth}\raggedright
Default aligned
\end{minipage} \\
\midrule
\endhead
First &amp; row &amp; 12.0 &amp; Example of a row that spans multiple lines. \\
Second &amp; row &amp; 5.0 &amp; Here's another one. Note the blank line between rows. \\
\bottomrule
\end{longtable}

Table without column headers:

\begin{longtable}[]{@{}rlcr@{}}
\toprule
\endhead
12 &amp; 12 &amp; 12 &amp; 12 \\
123 &amp; 123 &amp; 123 &amp; 123 \\
1 &amp; 1 &amp; 1 &amp; 1 \\
\bottomrule
\end{longtable}

Multiline table without column headers:

\begin{longtable}[]{@{}
  &gt;{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1500}}
  &gt;{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1375}}
  &gt;{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1625}}
  &gt;{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3500}}@{}}
\toprule
\endhead
First &amp; row &amp; 12.0 &amp; Example of a row that spans multiple lines. \\
Second &amp; row &amp; 5.0 &amp; Here's another one. Note the blank line between rows. \\
\bottomrule
\end{longtable}
</pre></body></html>