summaryrefslogtreecommitdiff
path: root/tests/tables.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-07-10 13:06:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-07-10 13:06:41 -0700
commit66378062b622b0815a1a2ddce5d557e3ad13330c (patch)
tree677c7d8193046c4ef517ba2b52123aa4bbbcef57 /tests/tables.latex
parent7d6da118d30c8682d64ee10c99259ac69c34b5be (diff)
LaTeX writer: Put table captions above tables.
The standard seems to be captions above tables. (See http://tex.stackexchange.com/questions/3243/why-should-a-table-caption-be-placed-above-the-table)
Diffstat (limited to 'tests/tables.latex')
-rw-r--r--tests/tables.latex9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/tables.latex b/tests/tables.latex
index 1a87c4f71..eb665204d 100644
--- a/tests/tables.latex
+++ b/tests/tables.latex
@@ -1,6 +1,7 @@
Simple table with caption:
\begin{longtable}[c]{@{}rlcl@{}}
+\caption{Demonstration of simple table syntax.}\\
\toprule\addlinespace
Right & Left & Center & Default
\\\addlinespace
@@ -12,8 +13,6 @@ Right & Left & Center & Default
1 & 1 & 1 & 1
\\\addlinespace
\bottomrule
-\addlinespace
-\caption{Demonstration of simple table syntax.}
\end{longtable}
Simple table without caption:
@@ -35,6 +34,7 @@ Right & Left & Center & Default
Simple table indented two spaces:
\begin{longtable}[c]{@{}rlcl@{}}
+\caption{Demonstration of simple table syntax.}\\
\toprule\addlinespace
Right & Left & Center & Default
\\\addlinespace
@@ -46,13 +46,12 @@ Right & Left & Center & Default
1 & 1 & 1 & 1
\\\addlinespace
\bottomrule
-\addlinespace
-\caption{Demonstration of simple table syntax.}
\end{longtable}
Multiline table with caption:
\begin{longtable}[c]{@{}clrl@{}}
+\caption{Here's the caption. It may span multiple lines.}\\
\toprule\addlinespace
\begin{minipage}[b]{0.13\columnwidth}\centering
Centered Header
@@ -86,8 +85,6 @@ Here's another one. Note the blank line between rows.
\end{minipage}
\\\addlinespace
\bottomrule
-\addlinespace
-\caption{Here's the caption. It may span multiple lines.}
\end{longtable}
Multiline table without caption: