
아래 표는 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}