Permalink
Browse files

migrate back to tabulary

  • Loading branch information...
1 parent 6b91cc3 commit d3dc50d72fd31a127d60ae4ad827f49be50751c0 @fletcher committed Apr 25, 2011
@@ -13,7 +13,7 @@
\setlength{\tymax}{0.5\linewidth}
\centering
\small
-\begin{tabular}{@{}lcc@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcc@{}} \toprule
Features&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
@@ -26,7 +26,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
View
@@ -84,14 +84,14 @@ \part{Section}
\small
\caption{table}
\label{table}
-\begin{tabular}{@{}ll@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}ll@{}} \toprule
a&b\\
\midrule
x&y\\
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
View
@@ -9,7 +9,7 @@
\small
\caption{Prototype table caption}
\label{prototypetable}
-\begin{tabular}{@{}lcr@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcr@{}} \toprule
&\multicolumn{2}{c}{Grouping}\\
First Header&Second Header&Third Header\\
\midrule
@@ -22,7 +22,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -38,7 +38,7 @@
\small
\caption{Caption but no label}
\label{captionbutnolabel}
-\begin{tabular}{@{}lcr@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcr@{}} \toprule
&\multicolumn{2}{c}{Grouping}\\
First Header&Second Header&Third Header\\
\midrule
@@ -51,7 +51,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -67,7 +67,7 @@
\small
\caption{MultiMarkdown vs. Crayons}
\label{multimarkdownvs.crayons}
-\begin{tabular}{@{}lcc@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcc@{}} \toprule
Features&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
@@ -80,7 +80,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -92,7 +92,7 @@
\small
\caption{MultiMarkdown vs. Crayons2}
\label{multimarkdownvs.crayons2}
-\begin{tabular}{@{}lcc@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcc@{}} \toprule
Features&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
@@ -105,7 +105,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -117,14 +117,14 @@
\small
\caption{Caption only}
\label{captiononly}
-\begin{tabular}{@{}ll@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}ll@{}} \toprule
Col 1&Col 2\\
\midrule
One&Two \\
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -83,14 +83,14 @@ \part{Section}
\small
\caption{table}
\label{table}
-\begin{tabular}{@{}ll@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}ll@{}} \toprule
a&b\\
\midrule
x&y\\
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -226,5 +226,46 @@
</tbody>
</table>
+
+<table>
+<caption id="linewrappingtest">Line Wrapping Test</caption>
+<colgroup>
+<col style="text-align:left;"/>
+<col style="text-align:center;"/>
+<col style="text-align:center;"/>
+</colgroup>
+
+<thead>
+<tr>
+ <th style="text-align:left;">Long Cell</th>
+ <th style="text-align:center;">MultiMarkdown</th>
+ <th style="text-align:center;">Crayons</th>
+</tr>
+</thead>
+
+<tbody>
+<tr>
+ <td style="text-align:left;">Melts in warm places</td>
+ <td style="text-align:center;">No</td>
+ <td style="text-align:center;">Yes</td>
+</tr>
+<tr>
+ <td style="text-align:left;">Mistakes can be easily fixed</td>
+ <td style="text-align:center;">Yes</td>
+ <td style="text-align:center;">No</td>
+</tr>
+<tr>
+ <td style="text-align:left;">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</td>
+ <td style="text-align:center;">Yes</td>
+ <td style="text-align:center;">No</td>
+</tr>
+<tr>
+ <td style="text-align:left;">Fun at parties</td>
+ <td style="text-align:center;">No</td>
+ <td style="text-align:center;">Why not?</td>
+</tr>
+</tbody>
+</table>
+
</body>
</html>
@@ -8,7 +8,7 @@
\small
\caption{Prototype table caption}
\label{prototypetable}
-\begin{tabular}{@{}lcr@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcr@{}} \toprule
&\multicolumn{2}{c}{Grouping}\\
First Header&Second Header&Third Header\\
\midrule
@@ -21,7 +21,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -37,7 +37,7 @@
\small
\caption{Caption but no label}
\label{captionbutnolabel}
-\begin{tabular}{@{}lcr@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcr@{}} \toprule
&\multicolumn{2}{c}{Grouping}\\
First Header&Second Header&Third Header\\
\midrule
@@ -50,7 +50,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -66,7 +66,7 @@
\small
\caption{MultiMarkdown vs. Crayons}
\label{multimarkdownvs.crayons}
-\begin{tabular}{@{}lcc@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcc@{}} \toprule
Features&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
@@ -79,7 +79,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -91,7 +91,7 @@
\small
\caption{MultiMarkdown vs. Crayons2}
\label{multimarkdownvs.crayons2}
-\begin{tabular}{@{}lcc@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}lcc@{}} \toprule
Features&MultiMarkdown&Crayons\\
\midrule
Melts in warm places&No&Yes\\
@@ -104,7 +104,7 @@
\bottomrule
-\end{tabular}
+\end{tabulary}
\end{minipage}
\end{table}
@@ -116,14 +116,36 @@
\small
\caption{Caption only}
\label{captiononly}
-\begin{tabular}{@{}ll@{}} \toprule
+\begin{tabulary}{\textwidth}{@{}ll@{}} \toprule
Col 1&Col 2\\
\midrule
One&Two \\
\bottomrule
-\end{tabular}
+\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}
@@ -61,3 +61,11 @@ Col 1 | Col 2
----- | -----
One | Two
+
+[Line Wrapping Test]
+| Long Cell | MultiMarkdown | Crayons |
+----------------------------------+ | :-----------: | :------: |
+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? |

0 comments on commit d3dc50d

Please sign in to comment.