From 7b29962d869224e19e677cf5acc3aa3eaec1d352 Mon Sep 17 00:00:00 2001 From: James Barlow <332269+manwithacat@users.noreply.github.com> Date: Wed, 12 Nov 2025 22:40:15 +0000 Subject: LaTeX writer: make L1-3 headings work inside blockquotes. Add mbox before all headings (not just L4+) inside blockquotes. Otherwise LaTeX raises an error. Closes #11281. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 814aa80b9..0dbcdac1d 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -832,7 +832,7 @@ sectionHeader classes ident level lst = do 5 -> "subparagraph" _ -> "" inQuote <- gets stInQuote - let prefix = if inQuote && level' >= 4 + let prefix = if inQuote then text "\\mbox{}%" -- needed for \paragraph, \subparagraph in quote environment -- see http://tex.stackexchange.com/questions/169830/ -- cgit v1.2.3