
ocicolumntype을 사용하여 column을 정렬할 때, column의 너비를 지정하는 방법은 다음과 같습니다.
1. ocicolumntype의 세 번째 인자 {30%}를 사용하여 column의 너비를 30%로 지정할 수 있습니다. 예를 들어, 다음 코드는 3개의 column을 정렬하고 각 column의 너비를 30%, 40%, 30%로 지정합니다.
latex
\begin{ocicolumntype}{c}{30%}column1\end{ocicolumntype}
\begin{ocicolumntype}{c}{40%}column2\end{ocicolumntype}
\begin{ocicolumntype}{c}{30%}column3\end{ocicolumntype}
2. ocicolumntype의 세 번째 인자 {30%}를 사용하여 column의 너비를 30%로 지정할 수 있습니다. 예를 들어, 다음 코드는 3개의 column을 정렬하고 각 column의 너비를 30%, 40%, 30%로 지정합니다.
latex
\begin{table}
\begin{tabular}{|c|c|c|}
\hline
\begin{ocicolumntype}{c}{30%}column1\end{ocicolumntype} &
\begin{ocicolumntype}{c}{40%}column2\end{ocicolumntype} &
\begin{ocicolumntype}{c}{30%}column3\end{ocicolumntype} \\hline
\end{tabular}
\end{table}
ocicolumntype을 사용하여 column을 정렬하는 데 사용되는 다른 옵션은 다음과 같습니다.
- c: center 정렬
- l: left 정렬
- r: right 정렬
- p{width}: width 너비로 지정
예를 들어, 다음 코드는 3개의 column을 정렬하고 각 column의 너비를 30%, 40%, 30%로 지정합니다.
latex
\begin{table}
\begin{tabular}{|c|c|c|}
\hline
\begin{ocicolumntype}{c}{30%}column1\end{ocicolumntype} &
\begin{ocicolumntype}{c}{40%}column2\end{ocicolumntype} &
\begin{ocicolumntype}{c}{30%}column3\end{ocicolumntype} \\hline
\end{tabular}
\end{table}
위 예시 코드를 사용하여 column을 정렬하는 방법을 알려면, ocicolumntype의 세 번째 인자 {30%}를 사용하여 column의 너비를 30%로 지정하고, c, l, r, p{width} 옵션을 사용하여 column을 정렬할 수 있습니다.
2025-06-10 16:37