테이블 형식 문제를 도와주세요.

테이블 형식 문제를 도와주세요.

여기에 이미지 설명을 입력하세요

위 표의 출처는C. Bonatto 및 E. Bica: M 52 및 NGC 3960의 기본 매개변수

\documentclass[a4paper,oneside,12pt]{report}
\begin{document}
\begin{small}
%\begin{sidewaystable}[h]
\begin{table}[htp]
%\restylefloat{table}
 \centering\small\setlength\tabcolsep{3pt}

%\centering \footnotesize\setlength{\tabcolsep}{0.5pt}
%\toprule
\hspace*{0cm}\begin{tabular}{l@{\hspace{3pt}} *{15}{c}}

%\begin{tabular}{l@{\hspace{1pt}} *{12}{c}}
\hline
\hline

%\bfseries cluster&
\multicolumn{6}{c}{\bfseries previous study}&
\multicolumn{6}{c}{\bfseries present study}\\

         \hline
clusters & $RA_{J2000}$ &$DEc_{J2000}$& $r_{core}$& $r_{lim}$ & $\log(age)$&E$(B-V)$&d&$RA_{J2000}$&$DEc_{J2000}$& $r_{core}$& $r_{lim}$ &$\log(age)$&E$(B-V)$&d\\
          &        &(hms)&(dms)& (arcmin)&(arcmin)&(year)&(mag)&(Kpc)&(hms)&(dms)&(arcmin)&(arcmin)& (year)&(mag)&(Kpc)\\
         \hline
\bfseries Berkeley 53
         &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$
         &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\
\hline
\hline
%\toprule
\end{tabular}\hspace*{0cm}
\caption{astrophysical parameters obtained from ischrone fitting}\label{tab:comber}
%\end{sidewaystable}
\end{table}
\end{small}
\end{document}

여기에 이미지 설명을 입력하세요

사진과 같은 테이블을 원해요.

답변1

가로 모드로 넣는 방법은 많지만 다음 방법을 사용하면 최소한 페이지에 맞도록 만들 수 있습니다. (그런데 가로로 보기에는 너무 큽니다.)

\documentclass[a4paper,oneside,12pt]{report}
\usepackage{graphics}% for \resizebox

\begin{document}

%\begin{sidewaystable}[h]
\begin{table}[htp]
%\restylefloat{table}
 \centering\small\setlength\tabcolsep{3pt}

%\centering \footnotesize\setlength{\tabcolsep}{0.5pt}
%\toprule
\resizebox{\textwidth}{!}{% fit on page
\begin{tabular}{l@{\hspace{3pt}} *{15}{c}}

%\begin{tabular}{l@{\hspace{1pt}} *{12}{c}}
\hline
\hline

%\bfseries cluster&
& \multicolumn{7}{l}{\parbox{5in}%
  {\centering\textbf{previous study}\\
  \rule[.6\baselineskip]{5in}{.5pt}}}
& \multicolumn{7}{l}{\parbox{5in}%
  {\centering\textbf{present study}\\
  \rule[.6\baselineskip]{5in}{.5pt}}}
\vspace{-5pt}\\
clusters & $RA_{J2000}$ &$DEc_{J2000}$& $r_{core}$& $r_{lim}$ & $\log(age)$&E$(B-V)$&d&$RA_{J2000}$&$DEc_{J2000}$& $r_{core}$& $r_{lim}$ &$\log(age)$&E$(B-V)$&d\\
          &        &(hms)&(dms)& (arcmin)&(arcmin)&(year)&(mag)&(Kpc)&(hms)&(dms)&(arcmin)&(arcmin)& (year)&(mag)&(Kpc)\\
\hline
\bfseries Berkeley 53
         &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$
     &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\
\hline
\hline
%\toprule
\end{tabular}}
\caption{astrophysical parameters obtained from ischrone fitting}\label{tab:comber}
%\end{sidewaystable}
\end{table}
\end{document}

테이블

답변2

이는 정리를 위해 라벨 (1) ~ (15)를 추가하는 가능한 솔루션 중 하나입니다. 이 솔루션은 cfr 및 torbjorn 동료 사용자가 올바른 방향을 제시하고 있으며 더 나아가 두 연구 범주 간의 격차(여기서는 (A),B,C로 표시)에 문제가 있다고 생각합니다. 총 16개의 열이 있는데 multicolumn그룹화도 오류의 원인이 됩니다.

참고: (A),B,C를 제거하면 올바른 간격이 제공됩니다. 여기서는 참조용 비콘 역할을 합니다.

여기에 이미지 설명을 입력하세요

암호

\begin{document}

%\begin{sidewaystable}[h]
\begin{table}[!htp]
%\restylefloat{table}
 \centering\small\setlength\tabcolsep{3pt}

%\centering \footnotesize\setlength{\tabcolsep}{0.5pt}
%\toprule
\hspace*{0cm}
\caption{astrophysical parameters obtained from ischrone fitting}\label{tab:comber}
\begin{tabular}{l@{\hspace{3pt}} *{15}{c}}
%\begin{tabular}{l@{\hspace{1pt}} *{12}{c}}
\hline
\hline
%\bfseries cluster
&
\multicolumn{7}{c}{\bfseries Previous study}&&
\multicolumn{7}{c}{\bfseries Present study}\\
\cline{2-8}\cline{10-16}
clusters & $RA_{J2000}$ &$DEc_{J2000}$& $r_{core}$& $r_{lim}$ & $\log(age)$&E$(B-V)$&d&&$RA_{J2000}$&$DEc_{J2000}$& $r_{core}$& $r_{lim}$ &$\log(age)$&E$(B-V)$&d\\
        &(hms)&(dms)& (arcmin)&(arcmin)&(year)&(mag)&(Kpc)&&(hms)&(dms)&(arcmin)&(arcmin)& (year)&(mag)&(Kpc)\\
(1)&(2)&(3)&(4)&(5)&(6)&(7)&(8)&(A) &(9)&(10)&(11)&(12)&(13)&(14)&(15)\\
         \hline
\bfseries Berkeley 53
         &$20 55 56$ &$+51 02.8$ & $2.5\pm0.1$    &$\simeq 20$ &$9.09\pm0.02$  &$1.52\pm0.01$ &$3.1\pm0.1$&B
         &                  &                  & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$ &$3240\pm440$\\
         \hline
\bfseries Berkeley 53
         &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$         &C
         &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\
\hline
\hline
%\toprule
\end{tabular}\hspace*{0cm}
%\end{sidewaystable}
\end{table}
\end{document}

답변3

압착된 표

당신은 이것을 할 수 있습니다. 권장하지는 않지만 가능합니다.

\documentclass[a4paper,oneside,10pt]{report}
\usepackage{booktabs}
\usepackage[hscale=.925]{geometry}
\begin{document}

\begin{table}[htp]

 \centering\scriptsize\setlength\tabcolsep{.25pt}

\noindent\begin{tabular}{l*{15}{c}}
\toprule
\multicolumn{6}{c}{\bfseries previous study} & \multicolumn{6}{c}{\bfseries present study}\\\midrule
clusters & $RA_{J2000}$ &$DEc_{J2000}$& $r_{core}$& $r_{lim}$ & $\log(age)$&E$(B-V)$&d&$RA_{J2000}$&$DEc_{J2000}$& $r_{core}$& $r_{lim}$ &$\log(age)$&E$(B-V)$&d\\
          &        &(hms)&(dms)& (arcmin)&(arcmin)&(year)&(mag)&(Kpc)&(hms)&(dms)&(arcmin)&(arcmin)& (year)&(mag)&(Kpc)\\\midrule
\bfseries Berkeley 53
         &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$
         &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\
\bottomrule
\end{tabular}
\caption{astrophysical parameters obtained from ischrone fitting}\label{tab:comber}
\end{table}

\end{document}

관련 정보