[LaTex] table length 조절하기
https://tex.stackexchange.com/questions/157389/how-to-center-column-values-in-a-table
How to center column values in a table?
How can I center the column values in this code? \documentclass[conference]{IEEEtran} \begin{document} \begin{table} \centering \begin{tabular}{|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline
tex.stackexchange.com
begin{tabular}{m{argument}...}, argument를 조절해서 길이를 조정할 수 있다.
아래는 예시코드
\begin{table}[]
\centering
\begin{tabular}{m{4cm} m{4cm} m{4cm} }\hline
& A & B \\ \hline\hline
a & X & X \\ \hline
b & X & O \\ \hline
c & O & X \\ \hline
d & O & O \\ \hline
\end{tabular}
\end{table}
혹시 글자를 중간정렬하고 싶다면
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
를 새로 정의하여 m대신 M을 사용하면 된다.