diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-04-17 18:38:57 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-04-17 18:51:36 -0700 |
commit | 9ad336f586542cd8af30f2e16d2c935fb0f97a3e (patch) | |
tree | 4c06439f5f38bedea15d3e017cbfbe43f03aada9 /tests | |
parent | 13b230a1b57a448bfe26c4b7b889cd57698c20ec (diff) |
LaTeX template: redefine `\paragraph`, `\subparagraph`...
to behave more like section headers. Closes #1658.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lhs-test.latex | 6 | ||||
-rw-r--r-- | tests/lhs-test.latex+lhs | 6 | ||||
-rw-r--r-- | tests/writer.latex | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex index 6f2fdfb77..cf993af9b 100644 --- a/tests/lhs-test.latex +++ b/tests/lhs-test.latex @@ -68,6 +68,12 @@ \date{} +% Redefines (sub)paragraphs to behave more like sections +\let\oldparagraph\paragraph +\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} +\let\oldsubparagraph\subparagraph +\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} + \begin{document} \section{lhs test}\label{lhs-test} diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs index 77f0e08ff..746744cc8 100644 --- a/tests/lhs-test.latex+lhs +++ b/tests/lhs-test.latex+lhs @@ -49,6 +49,12 @@ \date{} +% Redefines (sub)paragraphs to behave more like sections +\let\oldparagraph\paragraph +\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} +\let\oldsubparagraph\subparagraph +\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} + \begin{document} \section{lhs test}\label{lhs-test} diff --git a/tests/writer.latex b/tests/writer.latex index 94e8f779e..fab5c9325 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -64,6 +64,12 @@ \author{John MacFarlane \and Anonymous} \date{July 17, 2006} +% Redefines (sub)paragraphs to behave more like sections +\let\oldparagraph\paragraph +\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} +\let\oldsubparagraph\subparagraph +\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} + \begin{document} \maketitle |