Redefine (sub)paragraphs in default LaTeX template
This should make those behave more like sections, as per https://github.com/jgm/pandoc/issues/1658
commit9ca76d3fbe0d54d8d2e5d263aa0524c111b9dda6
authorNikolay Yakimov <root@livid.pp.ru>
dateFri 17 Apr 2015, 23:26 (12 years ago)
parent12ba81e
default.latex+6
@@ -143,6 +143,12 @@ $for(header-includes)$
143143$header-includes$
144144$endfor$
145145
146+% Redefines (sub)paragraphs to behave more like sections
147+\let\oldparagraph\paragraph
148+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
149+\let\oldsubparagraph\subparagraph
150+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
151+
146152\begin{document}
147153$if(title)$
148154\maketitle