2단 문서로 작업할 수 있는 롱테이블

2단 문서로 작업할 수 있는 롱테이블

내 (2열) 라텍스 문서에 긴 테이블이 있습니다. 이러한 이유로 나는 다음을 사용하고 있습니다.

\usepackage{longtable}

그래서 표를 두 페이지로 나눌 수 있습니다. 이것은 작동하는 것처럼 보였지만 테이블이 두 열에 걸쳐 있는 대신 하나의 열에 맞추려고 하는 것 같습니다. 테이블 형식을 사용할 때는 이 문제가 발생하지 않았습니다.

아래에 MWE를 포함했지만 몇 개의 행만 포함하도록 테이블을 잘랐습니다.

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

어떤 아이디어라도 좋을 것입니다.

MWE:

\documentclass{emulateapj}                                                                  
%% \documentclass[twocolumn]{aastex6}                                                                              
\newcommand{\vdag}{(v)^\dagger}
\newcommand\aastex{AAS\TeX}
\newcommand\latex{La\TeX}
\usepackage{amsmath,mathtools,etoolbox}
\usepackage{longtable}
\usepackage{float}
\usepackage{tabularx,colortbl}
\usepackage{adjustbox}\usepackage{mathtools}
\usepackage{array}
\usepackage{makecell}
\usepackage{stackengine}
\setstackEOL{\cr} %EOL is abbreviation for ``end of line.''                                                        
\usepackage[table]{xcolor}

\begin{document}
\begin{longtable}{ccccccccccccc}
\hline
\hline
\thead{Name} && \thead{col2} && \thead{col3} && \thead{col4} && \thead{col5} && \thead{col6} \\
\hline
\rowcolor{gray!50}
ROW 1 && 1400 && 8.83 && 281.00 && 0.95 && 8.68 \\
ROW 2 && 2030 && 3.61 && 6.15 && 0.09 && 3.66 \\
ROW 3 && 1500 && 2.37 && 5.47 && 0.19 && 2.35 \\
ROW 4 && 820 && 1.44 && 4.59 && 0.09 && 1.43 \\
\rowcolor{gray!50}
ROW 5 && 820 && 5.46 && 34.23 && 2.56 && 3.87 \\
ROW 6 && 1500 && 5.16 && 12.00 && 1.12 && 4.86 \\
ROW 7 && 1400 && 4.93 && 22.66 && 1.84 && 3.96 \\
ROW 8 && 2030 && 2.82 && 14.01 && 1.29 && 2.25 \\
\hline
\caption{Caption.}
\label{var_table}
\end{longtable}

\end{document}

답변1

대신 사용하세요 supertabular:

\documentclass[twocolumn,landscape]{scrartcl}
\usepackage{geometry}
\usepackage{supertabular}                                             
\usepackage[table]{xcolor} 
\begin{document}

\bottomcaption{Caption.\label{var_table}}
\tablefirsthead{%
    \hline
    \hline
        Name && col2 && col3 && col4 && col5 && col6 \\\hline}
\begin{supertabular}{ccccccccccccc}
    \rowcolor{gray!50}
    ROW 1 && 1400 && 8.83 && 281.00 && 0.95 && 8.68 \\
    ROW 2 && 2030 && 3.61 && 6.15 && 0.09 && 3.66 \\
    ROW 3 && 1500 && 2.37 && 5.47 && 0.19 && 2.35 \\
    ROW 4 && 820 && 1.44 && 4.59 && 0.09 && 1.43 \\
    \rowcolor{gray!50}
    ROW 5 && 820 && 5.46 && 34.23 && 2.56 && 3.87 \\
    ROW 6 && 1500 && 5.16 && 12.00 && 1.12 && 4.86 \\
    ROW 7 && 1400 && 4.93 && 22.66 && 1.84 && 3.96 \\
    ROW 8 && 2030 && 2.82 && 14.01 && 1.29 && 2.25 \\
    \hline
    \rowcolor{gray!50}
    ROW 1 && 1400 && 8.83 && 281.00 && 0.95 && 8.68 \\
    ROW 2 && 2030 && 3.61 && 6.15 && 0.09 && 3.66 \\
    ROW 3 && 1500 && 2.37 && 5.47 && 0.19 && 2.35 \\
    ROW 4 && 820 && 1.44 && 4.59 && 0.09 && 1.43 \\
    \rowcolor{gray!50}
    ROW 5 && 820 && 5.46 && 34.23 && 2.56 && 3.87 \\
    ROW 6 && 1500 && 5.16 && 12.00 && 1.12 && 4.86 \\
    ROW 7 && 1400 && 4.93 && 22.66 && 1.84 && 3.96 \\
    ROW 8 && 2030 && 2.82 && 14.01 && 1.29 && 2.25 \\
    \hline  \rowcolor{gray!50}
    ROW 1 && 1400 && 8.83 && 281.00 && 0.95 && 8.68 \\
    ROW 2 && 2030 && 3.61 && 6.15 && 0.09 && 3.66 \\
    ROW 3 && 1500 && 2.37 && 5.47 && 0.19 && 2.35 \\
    ROW 4 && 820 && 1.44 && 4.59 && 0.09 && 1.43 \\
    \rowcolor{gray!50}
    ROW 5 && 820 && 5.46 && 34.23 && 2.56 && 3.87 \\
    ROW 6 && 1500 && 5.16 && 12.00 && 1.12 && 4.86 \\
    ROW 7 && 1400 && 4.93 && 22.66 && 1.84 && 3.96 \\
    ROW 8 && 2030 && 2.82 && 14.01 && 1.29 && 2.25 \\
    \hline
    ROW 1 && 1400 && 8.83 && 281.00 && 0.95 && 8.68 \\
    ROW 2 && 2030 && 3.61 && 6.15 && 0.09 && 3.66 \\
    ROW 3 && 1500 && 2.37 && 5.47 && 0.19 && 2.35 \\
    ROW 4 && 820 && 1.44 && 4.59 && 0.09 && 1.43 \\
    \rowcolor{gray!50}
    ROW 5 && 820 && 5.46 && 34.23 && 2.56 && 3.87 \\
    ROW 6 && 1500 && 5.16 && 12.00 && 1.12 && 4.86 \\
    ROW 7 && 1400 && 4.93 && 22.66 && 1.84 && 3.96 \\
    ROW 8 && 2030 && 2.82 && 14.01 && 1.29 && 2.25 \\
    \hline
\end{supertabular}

\end{document}

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

답변2

그래서 분명히 나는 ​​단지 사용해야했습니다

\begin{longtable*}

그리고

\end{longtable*}

대신에

\begin{longtable}

그리고

\end{longtable}

이제 작동합니다!

관련 정보