表セル内のテキストの配置

表セル内のテキストの配置

私が作成したテーブルの結果は次のようになります。

ここに画像の説明を入力してください

しかし、チェックマークとクロス記号を垂直中央に配置したいのですが、どうすればいいでしょうか? これが私のコードです:

\begin{tabular}
   {|p{1.5cm}|p{3.5cm}|c|c|c|c|c|c|c|}
   \hline                                      
   Anonym & Precision degradation, Random shift, Black
   marker, Prefix preserving, Truncation  & \checkmark & \checkmark & \checkmark & \checkmark & \times & \times & \times\\ \hline

\end{tabular}

答え1

こちらです?

\documentclass{article}

\usepackage{array,amssymb, amstext}

\newcolumntype{C}{>{$}c<{$}} % math-mode version of "c" column type

\begin{document}
\begin{tabular}
{|p{1.5cm}|m{3.5cm}|C|C|C|C|C|C|C|}
   \hline                                      
Anonym & Precision degradation, Random shift, Black
marker, Prefix preserving, Truncation  & \checkmark & \checkmark & \checkmark & \checkmark & \times & \times & \times\\ \hline

 \end{tabular}
\end{document}

数式列とM列を含む表形式

関連情報