diff --git a/default.dzslides b/default.dzslides
index e09c32b40..1de2aab8a 100644
--- a/default.dzslides
+++ b/default.dzslides
@@ -15,27 +15,11 @@ $highlighting-css$
/*]]>*/
$endif$
-
$title$
-
-
-$if(title)$
-
-$endif$
-$for(include-before)$
-$include-before$
+$if(css)$
+$for(css)$
+
$endfor$
-$body$
-$for(include-after)$
-$include-after$
-$endfor$
-
-
-
-
-
-
+$else$
-
-
+$endif$
+$if(math)$
+ $math$
+$endif$
+$for(header-includes)$
+ $header-includes$
+$endfor$
+$title$
+
+
+$if(title)$
+
+$endif$
+$for(include-before)$
+$include-before$
+$endfor$
+$body$
+$for(include-after)$
+$include-after$
+$endfor$