Open ShuwenY opened 12 months ago
That's built in to pandoc. If you add -V block-headings
, that should give you the result you want.
Also in YAML:
block-headings: true
block-headings
sometimes doesn't work with book: true
for me. I was able to add line breaks after H4 by manually specifying it.
# metadata.yaml
header-includes: |
\RedeclareSectionCommand[
beforeskip=-10pt plus -2pt minus -1pt,
afterskip=1sp plus -1sp minus 1sp]{paragraph}
\RedeclareSectionCommand[
beforeskip=-10pt plus -2pt minus -1pt,
afterskip=1sp plus -1sp minus 1sp,
indent=0pt]{subparagraph}
You have full control over headings like this. You can change font as you wish.
How can I get a line break between the H4 heading and the main text?
command:
Problem phenomenon