<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}[c]{@{}rlcl@{}}
\hline\noalign{\medskip}
Right &amp; Left &amp; Center &amp; Default
\\\noalign{\medskip}
\hline\noalign{\medskip}
12 &amp; 12 &amp; 12 &amp; 12
\\\noalign{\medskip}
123 &amp; 123 &amp; 123 &amp; 123
\\\noalign{\medskip}
1 &amp; 1 &amp; 1 &amp; 1
\\\noalign{\medskip}
\hline
\noalign{\medskip}
\caption{Demonstration of simple table syntax.}
\end{longtable}

Simple table without caption:

\begin{longtable}[c]{@{}rlcl@{}}
\hline\noalign{\medskip}
Right &amp; Left &amp; Center &amp; Default
\\\noalign{\medskip}
\hline\noalign{\medskip}
12 &amp; 12 &amp; 12 &amp; 12
\\\noalign{\medskip}
123 &amp; 123 &amp; 123 &amp; 123
\\\noalign{\medskip}
1 &amp; 1 &amp; 1 &amp; 1
\\\noalign{\medskip}
\hline
\end{longtable}

Simple table indented two spaces:

\begin{longtable}[c]{@{}rlcl@{}}
\hline\noalign{\medskip}
Right &amp; Left &amp; Center &amp; Default
\\\noalign{\medskip}
\hline\noalign{\medskip}
12 &amp; 12 &amp; 12 &amp; 12
\\\noalign{\medskip}
123 &amp; 123 &amp; 123 &amp; 123
\\\noalign{\medskip}
1 &amp; 1 &amp; 1 &amp; 1
\\\noalign{\medskip}
\hline
\noalign{\medskip}
\caption{Demonstration of simple table syntax.}
\end{longtable}

Multiline table with caption:

\begin{longtable}[c]{@{}clrl@{}}
\hline\noalign{\medskip}
\begin{minipage}[b]{0.15\columnwidth}\centering
Centered Header
\end{minipage} &amp; \begin{minipage}[b]{0.14\columnwidth}\raggedright
Left Aligned
\end{minipage} &amp; \begin{minipage}[b]{0.16\columnwidth}\raggedleft
Right Aligned
\end{minipage} &amp; \begin{minipage}[b]{0.34\columnwidth}\raggedright
Default aligned
\end{minipage}
\\\noalign{\medskip}
\hline\noalign{\medskip}
\begin{minipage}[t]{0.15\columnwidth}\centering
First
\end{minipage} &amp; \begin{minipage}[t]{0.14\columnwidth}\raggedright
row
\end{minipage} &amp; \begin{minipage}[t]{0.16\columnwidth}\raggedleft
12.0
\end{minipage} &amp; \begin{minipage}[t]{0.34\columnwidth}\raggedright
Example of a row that spans multiple lines.
\end{minipage}
\\\noalign{\medskip}
\begin{minipage}[t]{0.15\columnwidth}\centering
Second
\end{minipage} &amp; \begin{minipage}[t]{0.14\columnwidth}\raggedright
row
\end{minipage} &amp; \begin{minipage}[t]{0.16\columnwidth}\raggedleft
5.0
\end{minipage} &amp; \begin{minipage}[t]{0.34\columnwidth}\raggedright
Here's another one. Note the blank line between rows.
\end{minipage}
\\\noalign{\medskip}
\hline
\noalign{\medskip}
\caption{Here's the caption. It may span multiple lines.}
\end{longtable}

Multiline table without caption:

\begin{longtable}[c]{@{}clrl@{}}
\hline\noalign{\medskip}
\begin{minipage}[b]{0.15\columnwidth}\centering
Centered Header
\end{minipage} &amp; \begin{minipage}[b]{0.14\columnwidth}\raggedright
Left Aligned
\end{minipage} &amp; \begin{minipage}[b]{0.16\columnwidth}\raggedleft
Right Aligned
\end{minipage} &amp; \begin{minipage}[b]{0.34\columnwidth}\raggedright
Default aligned
\end{minipage}
\\\noalign{\medskip}
\hline\noalign{\medskip}
\begin{minipage}[t]{0.15\columnwidth}\centering
First
\end{minipage} &amp; \begin{minipage}[t]{0.14\columnwidth}\raggedright
row
\end{minipage} &amp; \begin{minipage}[t]{0.16\columnwidth}\raggedleft
12.0
\end{minipage} &amp; \begin{minipage}[t]{0.34\columnwidth}\raggedright
Example of a row that spans multiple lines.
\end{minipage}
\\\noalign{\medskip}
\begin{minipage}[t]{0.15\columnwidth}\centering
Second
\end{minipage} &amp; \begin{minipage}[t]{0.14\columnwidth}\raggedright
row
\end{minipage} &amp; \begin{minipage}[t]{0.16\columnwidth}\raggedleft
5.0
\end{minipage} &amp; \begin{minipage}[t]{0.34\columnwidth}\raggedright
Here's another one. Note the blank line between rows.
\end{minipage}
\\\noalign{\medskip}
\hline
\end{longtable}

Table without column headers:

\begin{longtable}[c]{@{}rlcr@{}}
\hline\noalign{\medskip}
12 &amp; 12 &amp; 12 &amp; 12
\\\noalign{\medskip}
123 &amp; 123 &amp; 123 &amp; 123
\\\noalign{\medskip}
1 &amp; 1 &amp; 1 &amp; 1
\\\noalign{\medskip}
\hline
\end{longtable}

Multiline table without column headers:

\begin{longtable}[c]{@{}clrl@{}}
\hline\noalign{\medskip}
\begin{minipage}[t]{0.15\columnwidth}\centering
First
\end{minipage} &amp; \begin{minipage}[t]{0.14\columnwidth}\raggedright
row
\end{minipage} &amp; \begin{minipage}[t]{0.16\columnwidth}\raggedleft
12.0
\end{minipage} &amp; \begin{minipage}[t]{0.34\columnwidth}\raggedright
Example of a row that spans multiple lines.
\end{minipage}
\\\noalign{\medskip}
\begin{minipage}[t]{0.15\columnwidth}\centering
Second
\end{minipage} &amp; \begin{minipage}[t]{0.14\columnwidth}\raggedright
row
\end{minipage} &amp; \begin{minipage}[t]{0.16\columnwidth}\raggedleft
5.0
\end{minipage} &amp; \begin{minipage}[t]{0.34\columnwidth}\raggedright
Here's another one. Note the blank line between rows.
\end{minipage}
\\\noalign{\medskip}
\hline
\end{longtable}
</pre></body></html>