%EC%9D%B4%20%EC%98%B5%EB%8B%88%EB%8B%A4..png)
답변1
\multicolum{2}{c}{...}
두 개의 열에 걸쳐 있는 중앙 셀을 만드는 데 사용합니다 .
\documentclass{article}
\usepackage{booktabs} % provides the \toprule, \midrule and \bottomrule macros
\begin{document}
\begin{tabular}{l *{4}{c}}
\toprule
& \multicolumn{2}{c}{\textbf{Non-taxed}} & \multicolumn{2}{c}{\textbf{Taxed}} \\ \midrule
Store type & Dec 2014 & Jun 2015 & Dec 2014 & Jun 2015 \\ \midrule
1 \\
3 \\
\bottomrule
\end{tabular}
\end{document}
답변2
여기에 변형이 있습니다.TorbjørnT의 답변. (가장 큰 차이점은 지시문 \cmidrule
대신 두 개의 지시문을 사용한다는 점입니다 \midrule
.)
\documentclass{article} % or some other suitable document class
\usepackage{booktabs} % for well-spaced horizontal rules
\begin{document}
\begin{center}
\begin{tabular}{@{} l *{4}{c} @{}}
\toprule
& \multicolumn{2}{c}{\textbf{Non-taxed}} & \multicolumn{2}{c@{}}{\textbf{Taxed}} \\
\cmidrule(lr){2-3} \cmidrule(l){4-5}
Store type & Dec 2014 & Jun 2015 & Dec 2014 & Jun 2015 \\
\midrule
1 \\
3 \\
\bottomrule
\end{tabular}
\end{center}
\end{document}