如何垂直对齐列成员

如何垂直对齐列成员

请问如何使最后一列的所有成员垂直对齐到顶部?

\documentclass[french]{beamer}
\usepackage{babel}
\usepackage{amssymb}
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\begin{document}   
\begin{frame}
\centering
\begin{table}
\centering
\caption{Comparatif entre Two Track Unified Process et Rational Unified Process}
\vspace{0.2cm}
\begin{tabular}{|C{0.07\textwidth}*{4}{|C{\dimexpr0.22\textwidth-2\tabcolsep\relax}}|}
\hline
& {\fontsize{9}{9}\selectfont Axé développement} & {\fontsize{9}{9}\selectfont Architecture logicielle} & {\fontsize{9}{9}\selectfont Technologies} & {\fontsize{9}{9}\selectfont Projets cibles} \\
\hline
RUP & \includegraphics[height=1.8ex]{images/danger} & \includegraphics[height=1.8ex]{images/danger} & \includegraphics[height=1.8ex]{images/danger} & \[\geqslant 10p\] \\
\hline
2TUP & \includegraphics[height=1.8ex]{images/func_ok} & \includegraphics[height=1.8ex]{images/func_ok} & \includegraphics[height=1.8ex]{images/func_ok} &  \[*\]  \\
\hline
\end{tabular}
\end{table}
\end{frame}
\end{document}

多谢!

答案1

\(...\)在最后一列中使用内联方程形式,而不是\[...\]

\documentclass[french, demo]{beamer}
\usepackage{babel}
\usepackage{amssymb}
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\begin{document}   
\begin{frame}
\centering
\begin{table}
\centering
\caption{Comparatif entre Two Track Unified Process et Rational Unified Process}
\vspace{0.2cm}
\begin{tabular}{|C{0.07\textwidth}*{4}{|C{\dimexpr0.22\textwidth-2\tabcolsep\relax}}|}
\hline
& {\fontsize{9}{9}\selectfont Axé développement} & {\fontsize{9}{9}\selectfont Architecture logicielle} & {\fontsize{9}{9}\selectfont Technologies} & {\fontsize{9}{9}\selectfont Projets cibles} \\
\hline
RUP & \includegraphics[width=4ex,height=1.8ex]{images/danger} & \includegraphics[width=4ex,height=1.8ex]{images/danger} & \includegraphics[width=4ex,height=1.8ex]{images/danger} & \(\geqslant 10p\) \\
\hline
2TUP & \includegraphics[width=4ex,height=1.8ex]{images/func_ok} & \includegraphics[width=4ex,height=1.8ex]{images/func_ok} & \includegraphics[width=4ex,height=1.8ex]{images/func_ok} &  \(*\)  \\
\hline
\end{tabular}
\end{table}
\end{frame}
\end{document}

在此处输入图片描述

相关内容