表の問題を教えてください

表の問題を教えてください

ここに画像の説明を入力してください

上記の表はC. ボナットと E. ビカ: 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

横向きにする方法はたくさんありますが、次の方法なら少なくとも 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) を追加する 1 つの可能な解決策です。この解決策では、cfr と torbjorn の仲間のユーザーが正しい指示を与えていると考えられており、さらに、2 つの研究カテゴリ間のギャップ (ここでは (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}

関連情報