From a91dd5c69565870ccf85f5971d8956f6629577e6 Mon Sep 17 00:00:00 2001
From: Chris Johns <chrisj@rtems.org>
Date: Wed, 9 Nov 2016 11:41:32 +1100
Subject: latex: Increase the depth of subsections.

---
 common/rtemsstyle.sty | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'common/rtemsstyle.sty')

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}
-- 
cgit v1.2.3

