git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: redefine `\paragraph`, `\subparagraph`...
9ad336fJohn MacFarlane
data/templates+1−1

Submodule changed.

tests/lhs-test.latex+6
@@ -68,6 +68,12 @@
68
68
69\date{}
69\date{}
70
70
71+% Redefines (sub)paragraphs to behave more like sections
72+\let\oldparagraph\paragraph
73+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
74+\let\oldsubparagraph\subparagraph
75+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
76+
71\begin{document}
77\begin{document}
72
78
73\section{lhs test}\label{lhs-test}
79\section{lhs test}\label{lhs-test}
tests/lhs-test.latex+lhs+6
@@ -49,6 +49,12 @@
49
49
50\date{}
50\date{}
51
51
52+% Redefines (sub)paragraphs to behave more like sections
53+\let\oldparagraph\paragraph
54+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
55+\let\oldsubparagraph\subparagraph
56+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
57+
52\begin{document}
58\begin{document}
53
59
54\section{lhs test}\label{lhs-test}
60\section{lhs test}\label{lhs-test}
tests/writer.latex+6
@@ -64,6 +64,12 @@
64\author{John MacFarlane \and Anonymous}
64\author{John MacFarlane \and Anonymous}
65\date{July 17, 2006}
65\date{July 17, 2006}
66
66
67+% Redefines (sub)paragraphs to behave more like sections
68+\let\oldparagraph\paragraph
69+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
70+\let\oldsubparagraph\subparagraph
71+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
72+
67\begin{document}
73\begin{document}
68\maketitle
74\maketitle
69
75