From 992bc86981e379e9b2a2913daa4ebdf9d8bec249 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 17 Oct 2023 21:22:53 -0700 Subject: LaTeX writer: fix rowspans in tables... ...so they use the width of the column (`=` as the width parameter). Closes #9140. --- src/Text/Pandoc/Writers/LaTeX/Table.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/LaTeX/Table.hs b/src/Text/Pandoc/Writers/LaTeX/Table.hs index ee5c62a3b..702b22328 100644 --- a/src/Text/Pandoc/Writers/LaTeX/Table.hs +++ b/src/Text/Pandoc/Writers/LaTeX/Table.hs @@ -358,7 +358,8 @@ cellToLaTeX blockListToLaTeX isSimpleTable colCount celltype annotatedCell = do (RowSpan 1) -> x (RowSpan n) -> let nrows = literal (tshow n) in "\\multirow" <> braces nrows - <> braces "*" <> braces x + <> braces "=" -- width of column + <> braces x return . inMultiColumn . inMultiRow $ result -- | Returns the width of a cell spanning @n@ columns. -- cgit v1.2.3