From b5b5ef92cbb48a709e8de861d64db29516daf815 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 22 Nov 2020 10:54:42 -0800 Subject: LaTeX writer: Improve table spacing. + Remove the `\strut` that was added at the end of minipage environments in cells. + Replace `\tabularnewline` with `\\ \addlinespace`. Closes #6842, closes #6860. --- test/command/2378.md | 6 +++--- test/command/5367.md | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'test/command') diff --git a/test/command/2378.md b/test/command/2378.md index 801c168ad..e81855367 100644 --- a/test/command/2378.md +++ b/test/command/2378.md @@ -14,14 +14,14 @@ is used. \begin{longtable}[]{@{}ll@{}} \caption{a table}\tabularnewline \toprule -x & y\footnote{a footnote}\tabularnewline +x & y\footnote{a footnote} \\ \addlinespace \midrule \endfirsthead \toprule -x & y{}\tabularnewline +x & y{} \\ \addlinespace \midrule \endhead -1 & 2\tabularnewline +1 & 2 \\ \addlinespace \bottomrule \end{longtable} ``` diff --git a/test/command/5367.md b/test/command/5367.md index 18ac764ab..f56211517 100644 --- a/test/command/5367.md +++ b/test/command/5367.md @@ -24,19 +24,19 @@ hello\footnote{doc footnote} \caption[Sample table.]{Sample table.\footnote{caption footnote}}\tabularnewline \toprule \begin{minipage}[b]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering -Fruit\footnote{header footnote}\strut -\end{minipage}\tabularnewline +Fruit\footnote{header footnote} +\end{minipage} \\ \addlinespace \midrule \endfirsthead \toprule \begin{minipage}[b]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering -Fruit{}\strut -\end{minipage}\tabularnewline +Fruit{} +\end{minipage} \\ \addlinespace \midrule \endhead \begin{minipage}[t]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering -Bans\footnote{table cell footnote}\strut -\end{minipage}\tabularnewline +Bans\footnote{table cell footnote} +\end{minipage} \\ \addlinespace \bottomrule \end{longtable} -- cgit v1.2.3