diff options
-rw-r--r-- | default.latex | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/default.latex b/default.latex index f4f2d629a..fa19f2bc1 100644 --- a/default.latex +++ b/default.latex @@ -147,6 +147,18 @@ $if(numbersections)$ $else$ \setcounter{secnumdepth}{0} $endif$ +$if(subparagraph)$ +$else$ +% 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 +$endif$ $if(dir)$ \ifxetex % load bidi as late as possible as it modifies e.g. graphicx @@ -164,6 +176,9 @@ $if(dir)$ \newenvironment{LTR}{\beginL}{\endL} \fi $endif$ +$for(header-includes)$ +$header-includes$ +$endfor$ $if(title)$ \title{$title$} @@ -176,22 +191,6 @@ $if(author)$ \author{$for(author)$$author$$sep$ \and $endfor$} $endif$ \date{$date$} -$for(header-includes)$ -$header-includes$ -$endfor$ - -$if(subparagraph)$ -$else$ -% 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 -$endif$ \begin{document} $if(title)$ |