본문 바로가기
컴퓨터 & IT (Computer & IT)/LaTeX

[LaTeX] 테이블 만들기

by Physics 2021. 4. 8.
728x90

1. 기본적인 table의 형태

\begin{center}
\begin{tabular}{c c c}
  a11 & a12 & a13 \\
  a21 & a22 & a23 \\
\end{tabular}
\end{center}


1)tabular
  (a) LaTeX에서 Table을 만드는 기본적인 방법 
  (b) option: {c c c}
     - 작성할 테이블에는 3개의 컬럼이 존재함. 
     - 각각의 컬럼들은 텍스트들이 각 컬럼의 중앙에 존재 


LaTeX table의 예시들 

1. 예시 1 

\begin{table}[h]
    \caption{a list of physical constants}
    \begin{center}
        \begin{tabular}{|c|c|c|c|}
            \hline
                physical constant  & meaning           & value              & unit     \\
            \hline
                c                  & speed of light    & $2.998\times 10^8$ & $m/s^2$  \\
            \hline
                $\hbar$            & plank constant    & $6.582 \times 10^{-22}$ & eV s \\
            \hline
         \end{tabular}
    \end{center}
\end{table}

 

- 결과 

 

728x90

댓글