summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-01-04 13:57:41 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2023-01-04 13:57:41 -0800
commit7a82686adcf6efd68b32c5e471b3059be5085165 (patch)
tree19419f47079b351a1f57ae03485452f2fd5987a3 /test/command
parentc4995fea41c305d94fc929fc1aca165bf6d592d6 (diff)
Use `\toprule\noalign{}` instead of `\toprule()` in LaTeX tables.
And similar for `\midrule` and `\bottomrule`. This facilitates redefining `\toprule`, `\midrule`, and `\bottomrule` without needing to gobble the ()s. Closes #8223.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/2378.md10
-rw-r--r--test/command/5367.md10
-rw-r--r--test/command/7272.md4
-rw-r--r--test/command/8219.md4
4 files changed, 14 insertions, 14 deletions
diff --git a/test/command/2378.md b/test/command/2378.md
index 6c4e81bd2..2944df09d 100644
--- a/test/command/2378.md
+++ b/test/command/2378.md
@@ -13,15 +13,15 @@ is used.
^D
\begin{longtable}[]{@{}ll@{}}
\caption{a table}\tabularnewline
-\toprule()
+\toprule\noalign{}
x & y\footnote{a footnote} \\
-\midrule()
+\midrule\noalign{}
\endfirsthead
-\toprule()
+\toprule\noalign{}
x & y{} \\
-\midrule()
+\midrule\noalign{}
\endhead
-\bottomrule()
+\bottomrule\noalign{}
\endlastfoot
1 & 2 \\
\end{longtable}
diff --git a/test/command/5367.md b/test/command/5367.md
index 1ee7ce749..205ccf098 100644
--- a/test/command/5367.md
+++ b/test/command/5367.md
@@ -23,19 +23,19 @@ hello\footnote{doc footnote}
\begin{longtable}[]{@{}
>{\centering\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{0.1667}}@{}}
\caption[Sample table.]{Sample table.\footnote{caption footnote}}\tabularnewline
-\toprule()
+\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\centering
Fruit\footnote{header footnote}
\end{minipage} \\
-\midrule()
+\midrule\noalign{}
\endfirsthead
-\toprule()
+\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\centering
Fruit{}
\end{minipage} \\
-\midrule()
+\midrule\noalign{}
\endhead
-\bottomrule()
+\bottomrule\noalign{}
\endlastfoot
Bans\footnote{table cell footnote} \\
\end{longtable}
diff --git a/test/command/7272.md b/test/command/7272.md
index 56cd1c3bc..ea11b6f9d 100644
--- a/test/command/7272.md
+++ b/test/command/7272.md
@@ -16,9 +16,9 @@
^D
\begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{1.0000}}@{}}
-\toprule()
+\toprule\noalign{}
\endhead
-\bottomrule()
+\bottomrule\noalign{}
\endlastfoot
\begin{minipage}[t]{\linewidth}\raggedright
{ text\\
diff --git a/test/command/8219.md b/test/command/8219.md
index 0d1ed8b1d..57617e522 100644
--- a/test/command/8219.md
+++ b/test/command/8219.md
@@ -6,10 +6,10 @@
^D
\begin{longtable}[]{@{}ll@{}}
\caption{}\label{test}\tabularnewline
-\toprule()
+\toprule\noalign{}
\endfirsthead
\endhead
-\bottomrule()
+\bottomrule\noalign{}
\endlastfoot
one & two \\
\end{longtable}