[rtems-docs commit] pdf: Format lists for directives to sit on the next line.

Chris Johns chrisj at rtems.org
Tue Nov 8 04:28:39 UTC 2016


Module:    rtems-docs
Branch:    master
Commit:    daea85e3b23a265dc58c1fdc8d123beff4d92205
Changeset: http://git.rtems.org/rtems-docs/commit/?id=daea85e3b23a265dc58c1fdc8d123beff4d92205

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Nov  8 15:26:25 2016 +1100

pdf: Format lists for directives to sit on the next line.

---

 common/conf.py        | 1 -
 common/latex.py       | 1 +
 common/rtemsstyle.sty | 7 ++++++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/common/conf.py b/common/conf.py
index d3d8bb0..c4531b9 100644
--- a/common/conf.py
+++ b/common/conf.py
@@ -90,7 +90,6 @@ pygments_style = 'sphinx'
 # A list of ignored prefixes for module index sorting.
 #modindex_common_prefix = []
 
-
 # -- Options for HTML output ---------------------------------------------------
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
diff --git a/common/latex.py b/common/latex.py
index e5dbda5..2cc3101 100644
--- a/common/latex.py
+++ b/common/latex.py
@@ -25,6 +25,7 @@ package_tests = {
     'cmap'           : ['\\usepackage{cmap}'],
     'color'          : ['\\usepackage{color}'],
     'eqparbox'       : ['\\usepackage{eqparbox}'],
+    'enumitem'       : ['\\usepackage{enumitem}'],
     'etoolbox'       : ['\\usepackage{etoolbox}'],
     'fancybox'       : ['\\usepackage{fancybox}'],
     'fancyhdr'       : ['\\usepackage{fancyhdr}'],
diff --git a/common/rtemsstyle.sty b/common/rtemsstyle.sty
index b05dd0e..441c454 100644
--- a/common/rtemsstyle.sty
+++ b/common/rtemsstyle.sty
@@ -23,7 +23,6 @@ numbersep=5pt,
 gobble=0,
 }
 
-
 \renewcommand{\maketitle}{%
   \begin{titlepage}%
     \let\footnotesize\small
@@ -93,6 +92,12 @@ gobble=0,
 \ChNumVar{\raggedleft \bfseries\Large}
 \ChTitleVar{\raggedleft \rm\Huge}
 
+\usepackage{enumitem}
+\setlist[description]{style=nextline,leftmargin=10pt}
+
+\let\oldsection\section
+\renewcommand\section{\clearpage\oldsection}
+
 \renewcommand\thepart{\@Roman\c at part}
 \renewcommand\part{%
    \pagestyle{normal}



More information about the vc mailing list