From bd7c9eb32be7c5499f4a50cb4b5f138f9eb919e8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 29 Oct 2020 12:10:05 -0700 Subject: 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. --- test/command/5367.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/command') 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 -- cgit v1.2.3