
ocicolumntype은 array 패키지의 기능 중 하나로, column의 정렬을 위한 옵션입니다.
이 옵션을 사용하려면 array 패키지를 사용하고, tabular 환경 내에서 ocicolumntype을 사용할 수 있습니다.
다음은 예시입니다.
#hostingforum.kr
latex
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{|>{\centering}m{2cm}|>{\centering}m{2cm}|>{\centering}m{2cm}|}
\hline
\textbf{Column 1} & \textbf{Column 2} & \textbf{Column 3} \\
\hline
\textbf{A} & \textbf{B} & \textbf{C} \\
\hline
\textbf{D} & \textbf{E} & \textbf{F} \\
\hline
\end{tabular}
\end{document}
위의 예시에서, m{2cm}은 column의 너비를 2cm로 지정하고, >{\\centering}은 column의 내용을 중앙 정렬하도록 지정합니다.
이러한 방법으로 ocicolumntype을 사용하여 column의 정렬을 할 수 있습니다.
2025-06-05 04:17