summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-11-09 11:41:32 +1100
committerChris Johns <chrisj@rtems.org>2016-11-09 11:42:30 +1100
commita91dd5c69565870ccf85f5971d8956f6629577e6 (patch)
tree4f7f4aa3ca1a547be620bb8dc44c257291fc5bd7
parentREADME.txt: Add notes on Centos 6 and 7 (diff)
downloadrtems-docs-a91dd5c69565870ccf85f5971d8956f6629577e6.tar.bz2
latex: Increase the depth of subsections.
-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}