changeset 266:7d12ce7be104

Fix paragraph undefined problem
author Nikolay Yakimov <root@livid.pp.ru>
date Sun, 03 May 2015 21:11:36 +0300
parents f8438493228d
children 3ab4acb6804d
files default.latex
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 21:11:36 2015 +0300
@@ -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)$