\input{mmd-article-header}
\def\mytitle{MultiMarkdown Table Test}
\input{mmd-article-begin-doc}

\part{Tables}
\label{tables}

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Prototype table caption}
\label{prototypetable}
\begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
&\multicolumn{2}{c}{Grouping}\\
First Header&Second Header&Third Header\\
\midrule
Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
Content&\textbf{Cell}&Cell\\

\midrule
New section&More&Data\\
And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

And this is a link to the Prototype table (\autoref{prototypetable}).

And now a table with only a caption.

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Caption but no label}
\label{captionbutnolabel}
\begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
&Grouping&\\
First Header&Second Header&Third Header\\
\midrule
Content&\emph{Long Cell}&\\
Content&\textbf{Cell}&Cell\\

\midrule
New section&More&Data\\
And more&With an escaped `\textbar{}'&\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

And a link to the second table (\autoref{captionbutnolabel}).

And two tables in close proximity:

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{MultiMarkdown vs. Crayons}
\label{multimarkdownvs.crayons}
\begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
Features&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
Mistakes can be easily fixed&Yes&No\\
Easy to copy documents for friends&Yes&No\\
Fun at parties&No&Why not?\\

\midrule
Minimum markup1 for maximum quality?&Yes&No\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{MultiMarkdown vs. Crayons2}
\label{multimarkdownvs.crayons2}
\begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
Features&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
Mistakes can be easily fixed&Yes&No\\
Easy to copy documents for friends&Yes&No\\
Fun at parties&No&Why not?\\

\midrule
Minimum markup2 for maximum quality?&Yes&No\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Caption only}
\label{captiononly}
\begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
Col 1&Col 2\\
\midrule
One&Two \\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Line Wrapping Test}
\label{linewrappingtest}
\begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
Long Cell&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
Mistakes can be easily fixed&Yes&No\\
Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature&Yes&No\\
Fun at parties&No&Why not?\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Caption with footnote \footnote{Test footnote.}}
\label{prototypetable}
\begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
&\multicolumn{2}{c}{Grouping}\\
First Header&Second Header&Third Header\\
\midrule
Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
Content&\textbf{Cell}&Cell\\

\midrule
New section&More&Data\\
And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

Table with headers in first column

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
&\multicolumn{2}{c}{Grouping}\\
First Header&Second Header&Third Header\\
\midrule
Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
Content&\textbf{Cell}&Cell\\

\midrule
New section&More&Data\\
And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Headless Table}
\label{headlesstable}
\begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
Content&\textbf{Cell}&Cell\\
New section&More&Data\\
And more&\multicolumn{2}{c}{And More}\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

\input{mmd-memoir-footer}

\end{document}
