
테이블의 헤더 제목을 어떻게 구분하나요?
\begin{table}[H]
\begin{tabular}[h]{|p{2cm}||p{2cm}}
\hline
{title one} & {title two} \\ \hline\hline
\end{tabular}
\caption{title}
\end{table}
감사합니다.
답변1
\parbox
줄 변경 명령과 함께 es를 사용할 수 있습니다 . 상자 안에서 \centering을 사용하여 내용을 중앙에 배치할 수 있습니다.
\documentclass{article}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|p{2cm}|p{2cm}|}
\hline
\parbox[t]{2cm}{\centering title \\ one} & \parbox[t]{2cm}{\centering title \\ two} \\[3ex]
some text & some text \\
some text & some text \\
\hline
\end{tabular}
\caption{title}
\end{table}
\end{document}
나는 수직선을 시각적 참조점으로 사용했습니다. 참고로 이렇게 좁은 열이 있으면 불규칙하게 오른쪽으로 설정하는 것을 고려할 수 있습니다.