[FE training-materials-updates] Vertically align the content of cells
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Aug 2 15:32:22 CEST 2013
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=6d786998d11a0dae334d2620292d465aa2d0e3cb
>---------------------------------------------------------------
commit 6d786998d11a0dae334d2620292d465aa2d0e3cb
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date: Fri Aug 2 15:32:00 2013 +0200
Vertically align the content of cells
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
>---------------------------------------------------------------
6d786998d11a0dae334d2620292d465aa2d0e3cb
agenda/kernel-agenda.tex | 1 -
common/agenda.sty | 11 +++++------
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/agenda/kernel-agenda.tex b/agenda/kernel-agenda.tex
index 016426d..00c30db 100644
--- a/agenda/kernel-agenda.tex
+++ b/agenda/kernel-agenda.tex
@@ -5,7 +5,6 @@
\usepackage{xcolor}
\usepackage{palatino}
\usepackage{calc}
-\usepackage{tabularx}
\hypersetup{pdftitle={Embedded Linux kernel and driver development training},
pdfauthor={Free Electrons}}
diff --git a/common/agenda.sty b/common/agenda.sty
index cf5e1fa..65c4dd0 100644
--- a/common/agenda.sty
+++ b/common/agenda.sty
@@ -15,6 +15,7 @@
\usepackage{eurosym}
\usepackage{ifthen}
\usepackage{enumitem}
+\usepackage{tabularx}
% A nicer font
\usepackage{palatino}
@@ -63,14 +64,15 @@
\newcommand{\code}[1]
{\path{#1}}
+\renewcommand{\tabularxcolumn}[1]{m{#1}}
+
%% Define a one column array. Two arguments are needed:
%% first argument: the title of the section
%% second argument: the contents of the section
\newcommand\feagendaonecolumn[2]{
\begin{tabularx}{\textwidth}{X}
\rowcolor{fedarkblue}
- {\bf #1}
- \\[14pt]
+ {\bf #1} \\
\rowcolor{felightblue}
#2 \\
\end{tabularx}
@@ -85,10 +87,7 @@
\newcommand\feagendatwocolumn[4]{
\begin{tabularx}{\textwidth}{X X}
\rowcolor{fedarkblue}
- {\bf #1}
- &
- {\bf #3}
- \\[14pt]
+ {\bf #1} & {\bf #3} \\
\rowcolor{felightblue}
#2 & #4 \\
\end{tabularx}
More information about the training-materials-updates
mailing list