From ca5940bf2c36e4329cf6bc726763817e928a30db Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 8 May 2023 12:39:50 -0700 Subject: LaTeX writer: fix width for multicolumn simple table. This should help with #8831. I'm not sure this is the best solution, but it's certainly better than what we had before! --- src/Text/Pandoc/Writers/LaTeX/Table.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/LaTeX/Table.hs b/src/Text/Pandoc/Writers/LaTeX/Table.hs index 63683f79f..6ebcaa559 100644 --- a/src/Text/Pandoc/Writers/LaTeX/Table.hs +++ b/src/Text/Pandoc/Writers/LaTeX/Table.hs @@ -356,7 +356,7 @@ multicolumnDescriptor align (ColumnCount numcols) (Ann.ColNumber colnum) = let toWidth = \case - ColWidthDefault -> 0 + ColWidthDefault -> (1 / fromIntegral numcols) ColWidth x -> x colspan = length colWidths width = sum $ NonEmpty.map toWidth colWidths -- cgit v1.2.3