summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/rtemsstyle.sty11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/rtemsstyle.sty b/common/rtemsstyle.sty
index 5bf5c26..e55bb93 100644
--- a/common/rtemsstyle.sty
+++ b/common/rtemsstyle.sty
@@ -98,6 +98,9 @@ gobble=0,
\let\oldsection\section
\renewcommand\section{\clearpage\oldsection}
+\usepackage{titlesec}
+\setcounter{secnumdepth}{8}
+
\renewcommand\thepart{\@Roman\c@part}
\renewcommand\part{%
\pagestyle{normal}
@@ -107,6 +110,10 @@ gobble=0,
\@afterindentfalse
\secdef\@part\@spart}
+% fonts
+\usepackage{charter}
+\usepackage{rtemsextrafonts}
+
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}%
@@ -134,7 +141,3 @@ gobble=0,
\nobreak
\vskip 3ex
\@afterheading}
-
-% fonts
-\usepackage{charter}
-\usepackage{rtemsextrafonts}