From b50ac3a95b17e20db0289b4e08b23cefe2282bc9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 25 Nov 2020 14:41:28 -0800 Subject: LaTeX tables: Fix calculation of column spacing. See #6883. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 345ebe387..e1c6d186d 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -913,7 +913,7 @@ tableCellToLaTeX header numcols (width, align, blocks) = do return $ "\\begin{minipage}" <> valign <> braces (text (printf "(\\columnwidth - %d\\tabcolsep) * \\real{%.2f}" - (numcols - 1) width)) <> + (2 * (numcols - 1)) width)) <> halign <> cr <> cellContents <> cr <> "\\end{minipage}" -- (\columnwidth - 8\tabcolsep) * \real{0.15} -- cgit v1.2.3