aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-10-29 12:10:05 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-10-29 12:10:05 -0700
commitbd7c9eb32be7c5499f4a50cb4b5f138f9eb919e8 (patch)
tree420c6c75fe95d425b3a0089e6e37e755e94dee5d /test/command
parent517c55dae7a33a858f73609a90972f5da05dd1b1 (diff)
downloadpandoc-bd7c9eb32be7c5499f4a50cb4b5f138f9eb919e8.tar.gz
LaTeX writer: Improved calculation of table column widths.
We now have LaTeX do the calculation, using `\tabcolsep`. So we should now have accurate relative column widths no matter what the text width. The default template has been modified to load the calc package if tables are used.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5367.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command/5367.md b/test/command/5367.md
index ae8744dd7..18ac764ab 100644
--- a/test/command/5367.md
+++ b/test/command/5367.md
@@ -23,18 +23,18 @@ hello\footnote{doc footnote}
\begin{longtable}[]{@{}c@{}}
\caption[Sample table.]{Sample table.\footnote{caption footnote}}\tabularnewline
\toprule
-\begin{minipage}[b]{0.16\columnwidth}\centering
+\begin{minipage}[b]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering
Fruit\footnote{header footnote}\strut
\end{minipage}\tabularnewline
\midrule
\endfirsthead
\toprule
-\begin{minipage}[b]{0.16\columnwidth}\centering
+\begin{minipage}[b]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering
Fruit{}\strut
\end{minipage}\tabularnewline
\midrule
\endhead
-\begin{minipage}[t]{0.16\columnwidth}\centering
+\begin{minipage}[t]{(\columnwidth - 0\tabcolsep) * \real{0.17}}\centering
Bans\footnote{table cell footnote}\strut
\end{minipage}\tabularnewline
\bottomrule