[rtems-docs commit] latex: Increase the depth of subsections.
Chris Johns
chrisj at rtems.org
Wed Nov 9 00:42:48 UTC 2016
Module: rtems-docs
Branch: master
Commit: a91dd5c69565870ccf85f5971d8956f6629577e6
Changeset: http://git.rtems.org/rtems-docs/commit/?id=a91dd5c69565870ccf85f5971d8956f6629577e6
Author: Chris Johns <chrisj at rtems.org>
Date: Wed Nov 9 11:41:32 2016 +1100
latex: Increase the depth of subsections.
---
common/rtemsstyle.sty | 11 +++++++----
1 file 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 at 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 at secnumdepth >\m at ne
\refstepcounter{part}%
@@ -134,7 +141,3 @@ gobble=0,
\nobreak
\vskip 3ex
\@afterheading}
-
-% fonts
-\usepackage{charter}
-\usepackage{rtemsextrafonts}
More information about the vc
mailing list