diff options
| author | James Barlow <[email protected]> | 2025-11-12 22:40:15 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-12 23:40:15 +0100 |
| commit | 7b29962d869224e19e677cf5acc3aa3eaec1d352 (patch) | |
| tree | d14320dfa49612548f40b826d692486113333c56 | |
| parent | a5576317c9d99ef641e10a68e1fce6656dd26054 (diff) | |
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.
| -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 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/ |
