
以下の表は 3 列の表を作成します。{l | X | X}
列設定を使用すると、最後の 2 列が同じ幅で作成されます。これは必要なことですが、その中のテキストも左揃えにする必要があります。
これは列設定で実行できますか?
\begin{table}[!htb]
\caption{Caption.....}
\label{tab:____}
\begin{tabularx}{\linewidth}{l | X | X}
\toprule
Col1 & Col2 & Col3\\
\midrule
eMail & \tabitem aaaaaaaaaaaaaaaaaaaaaaaa
\tabitem bbbbbbbbbbbbbbbbbbbbbbbb
\tabitem cccccccccccccccccccccccc
&
\tabitem dddddddddddddddddddddd
\tabitem eeeeeeeeeeeeeeeeeeeeee
\tabitem ffffffffffffffffffffff
\tabitem gggggggggggggggggggggg\\
\bottomrule
\end{tabularx}
\end{table}
答え1
\documentclass{article}
\usepackage{tabularx,booktabs,ragged2e}
\newcommand\tabitem{\textbullet~}
\renewcommand\tabularxcolumn[1]{>{\RaggedRight}p{#1}}
\begin{document}
\begin{table}[!htb]
\caption{Caption.....}\label{tab:____}
\noindent
\begin{tabularx}{\linewidth}{l | X | X}
\toprule
Col1 & Col2 & Col3\\
\midrule
eMail & \tabitem aaaaaaaaaaaaaaaaaaaaaaaa
\tabitem bbbbbbbbbbbbbbbbbbbbbbbb
\tabitem cccccccccccccccccccccccc
&
\tabitem dddddddddddddddddddddd
\tabitem eeeeeeeeeeeeeeeeeeeeee
\tabitem ffffffffffffffffffffff
\tabitem gggggggggggggggggggggg\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}