From 2c1a911bc19bdc4069a2abd84b3c1954d0877cce Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 1 Jan 2020 22:32:27 -0700 Subject: LaTeX writer: properly handle unnumbered headings level 4+. Closes #6018. Previously the `\paragraph` command was used instead of `\paragraph*` for unnumbered level 4 headings. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index fd71e1ad2..f845d7444 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -1010,7 +1010,7 @@ sectionHeader classes ident level lst = do -- see http://tex.stackexchange.com/questions/169830/ else empty lab <- labelFor ident - let star = if unnumbered && level' < 4 then text "*" else empty + let star = if unnumbered then text "*" else empty let stuffing = star <> optional <> contents stuffing' <- hypertarget True ident $ text ('\\':sectionType) <> stuffing <> lab -- cgit v1.2.3