diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-11-25 14:41:28 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-11-25 14:41:28 -0800 |
commit | b50ac3a95b17e20db0289b4e08b23cefe2282bc9 (patch) | |
tree | 21bb12473d769cce62e8241b6308b865a858e6b2 /src/Text/Pandoc/Writers | |
parent | 815976d5378398933322006e78d140bb8de6eb80 (diff) | |
download | pandoc-b50ac3a95b17e20db0289b4e08b23cefe2282bc9.tar.gz |
LaTeX tables: Fix calculation of column spacing.
See #6883.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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} |