aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-01-01 22:32:27 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-01 22:32:27 -0700
commit2c1a911bc19bdc4069a2abd84b3c1954d0877cce (patch)
treef220fdd53c796e81cb48edf8f6a4912de6bb5287 /src/Text/Pandoc
parent4affd4019437a182c9e657f501d5eb057d8ea6ec (diff)
downloadpandoc-2c1a911bc19bdc4069a2abd84b3c1954d0877cce.tar.gz
LaTeX writer: properly handle unnumbered headings level 4+.
Closes #6018. Previously the `\paragraph` command was used instead of `\paragraph*` for unnumbered level 4 headings.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
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