changeset 267:3ab4acb6804d

Merge pull request #95 from lierdakil/fix-paragraph-undefined Fix paragraph undefined problem
author John MacFarlane <jgm@berkeley.edu>
date Sun, 03 May 2015 22:03:38 -0700
parents f8438493228d (current diff) 7d12ce7be104 (diff)
children 56443bec22c5
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/default.latex	Sat May 02 09:08:39 2015 -0700
+++ b/default.latex	Sun May 03 22:03:38 2015 -0700
@@ -146,10 +146,14 @@
 $endfor$
 
 % Redefines (sub)paragraphs to behave more like sections
+\ifx\paragraph\undefined\else
 \let\oldparagraph\paragraph
 \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
+\fi
+\ifx\subparagraph\undefined\else
 \let\oldsubparagraph\subparagraph
 \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
+\fi
 
 \begin{document}
 $if(title)$