[meta-freescale] [Documentation][PATCH 24/31] RN: Improve tables styling for latexpdf

Daiane Angolini daiane.list at gmail.com
Fri Oct 24 18:15:07 PDT 2014


From: Lucas Dutra Nunes <ldnunes at ossystems.com.br>

Adds larger row spacing and "zebra" row coloring (white and light
gray).

Signed-off-by: Lucas Dutra Nunes <ldnunes at ossystems.com.br>
---
 release-notes/source/bootloaders.rst          | 2 ++
 release-notes/source/bsp-scope.rst            | 2 +-
 release-notes/source/conf.py                  | 7 ++++++-
 release-notes/source/fsl-userspace-pkg.rst    | 2 ++
 release-notes/source/introduction.rst         | 2 +-
 release-notes/source/kernel-linux.rst         | 2 ++
 release-notes/source/machines-maintainers.rst | 2 ++
 release-notes/source/userspace-pkg.rst        | 1 +
 8 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/release-notes/source/bootloaders.rst b/release-notes/source/bootloaders.rst
index cf5b404..2ba13c0 100644
--- a/release-notes/source/bootloaders.rst
+++ b/release-notes/source/bootloaders.rst
@@ -5,12 +5,14 @@ Bootloaders
 
 |project_name| supports barebox and u-boot as bootloaders.
 
+.. tabularcolumns:: l | l | l
 .. include:: fsl-community-bsp-supported-bootloaders-descr.inc
 
 
 The following table shows the default bootloaders (and their
 versions) for the supported boards.
 
+.. tabularcolumns:: l | l | l
 .. table:: Default bootloader version for each supported machine
 
    .. include:: bootloader-default.inc
diff --git a/release-notes/source/bsp-scope.rst b/release-notes/source/bsp-scope.rst
index dcd07cd..235142d 100644
--- a/release-notes/source/bsp-scope.rst
+++ b/release-notes/source/bsp-scope.rst
@@ -68,7 +68,7 @@ Supported Board List
 --------------------
 Please, see the next table for the complete supported board list.
 
-.. tabularcolumns:: |c|p{6cm}|c|c|
+.. tabularcolumns:: c | p{5cm} | c | c
 .. table:: Supported machines in |project_name|
 
    .. include:: machine-list.inc
diff --git a/release-notes/source/conf.py b/release-notes/source/conf.py
index aaebb95..c39f542 100644
--- a/release-notes/source/conf.py
+++ b/release-notes/source/conf.py
@@ -198,7 +198,12 @@ latex_elements = {
 'inputenc': '\\usepackage[utf8x]{inputenc}',
 
 # Additional stuff for the LaTeX preamble.
-#'preamble': '',
+'preamble': "\
+\\usepackage{tabularx} \
+\\usepackage[table]{xcolor} \
+\\definecolor{lightgray}{gray}{0.94} \
+\\rowcolors{1}{lightgray}{white}\
+\\renewcommand{\\arraystretch}{1.7}"
 }
 
 # Grouping the document tree into LaTeX files. List of tuples
diff --git a/release-notes/source/fsl-userspace-pkg.rst b/release-notes/source/fsl-userspace-pkg.rst
index 5dfd630..c10d4e5 100644
--- a/release-notes/source/fsl-userspace-pkg.rst
+++ b/release-notes/source/fsl-userspace-pkg.rst
@@ -34,6 +34,7 @@ Version by :ref:`soc-hierarchy`
 
 The following table shows the version of each package depending on the :ref:`soc-hierarchy`.
 
+.. tabularcolumns:: L | C | C | C | C | C | C
 .. table:: Userspace package version by SoC hierarchy
 
    .. include:: soc-pkg.inc
@@ -45,6 +46,7 @@ Hardware relation by :ref:`soc-hierarchy`
 
 The following table shows how packages interact with hardware depending on the :ref:`soc-hierarchy`
 
+.. tabularcolumns:: L | C | C  | C  | C
 .. table:: Hardware dependant packages
 
    .. include:: soc-pkg-optimization.inc
diff --git a/release-notes/source/introduction.rst b/release-notes/source/introduction.rst
index e8121fb..a2c3e90 100644
--- a/release-notes/source/introduction.rst
+++ b/release-notes/source/introduction.rst
@@ -177,7 +177,7 @@ It supports a wide range of boards which goes from Freescale evaluation boards
 The release is a "*moving target*”, so there are updates on top of the released
 source code, such as addition of new features and of bug fixes.
 
-.. tabularcolumns:: |p{5cm}|p{5cm}|p{5cm}|
+.. tabularcolumns:: p{5cm} | p{5cm} | p{5cm}
 .. table:: Comparative between |freescale_release_name| and |project_name|
 
   .. include:: fslxcmt.inc
diff --git a/release-notes/source/kernel-linux.rst b/release-notes/source/kernel-linux.rst
index 37d2703..13d847c 100644
--- a/release-notes/source/kernel-linux.rst
+++ b/release-notes/source/kernel-linux.rst
@@ -6,6 +6,7 @@ Linux Kernel
 
 |project_name| supports the following sources for Linux Kernel:
 
+.. tabularcolumns:: l | l | l
 .. include:: fsl-community-bsp-supported-kernels.inc
 
 
@@ -16,6 +17,7 @@ Default Linux Providers
 The following table shows the default version of Linux Kernel provided by
 |project_name| for each supported machine.
 
+.. tabularcolumns:: l | l | l
 .. table:: Default Linux kernel version for each supported machine
 
    .. include:: linux-default.inc
diff --git a/release-notes/source/machines-maintainers.rst b/release-notes/source/machines-maintainers.rst
index 73c0d14..db5b2dc 100644
--- a/release-notes/source/machines-maintainers.rst
+++ b/release-notes/source/machines-maintainers.rst
@@ -26,6 +26,7 @@ should be worked around anyway.
 Machines with maintainers
 -------------------------
 
+.. tabularcolumns:: l | p{9cm}
 .. table:: Machines with maintainers
 
    .. include:: machines-with-maintainers.inc
@@ -33,6 +34,7 @@ Machines with maintainers
 Machines without a maintainer
 -----------------------------
 
+.. tabularcolumns:: l | p{9cm}
 .. table:: Machines without a maintainer
 
    .. include:: machines-without-maintainers.inc
diff --git a/release-notes/source/userspace-pkg.rst b/release-notes/source/userspace-pkg.rst
index c22bc4d..6c349a0 100644
--- a/release-notes/source/userspace-pkg.rst
+++ b/release-notes/source/userspace-pkg.rst
@@ -5,6 +5,7 @@ There is a huge number of userspace packages provided by the Yocto
 Project.  The following table shows some version for few highligthed
 packages.
 
+.. tabularcolumns:: l | c | l
 .. table:: Main userspace package versions
 
    .. include:: userspace-pkg.inc
-- 
1.9.1



More information about the meta-freescale mailing list