附录中的表格未放置在页面顶部

附录中的表格未放置在页面顶部

我在下面的附录中有一个长表格,它延伸了两页。
表格没有放在这些页面的顶部。
这样放置是否正常?
我怎样才能将它放在页面顶部?如果您发现这方面存在问题,请提出建议。

在此处输入图片描述

\documentclass[journal]{IEEEtran}
\usepackage{lipsum}                      
\usepackage{newtxtext, newtxmath}
\usepackage[export]{adjustbox}  
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\usepackage{caption} 


\begin{document}
\lipsum
\appendix
    \begin{table*}[b]
\caption{Table with images}
  \label{tab:image}
    \adjustboxset{width=\linewidth, valign=M}
\begin{tblr}{hlines, vlines,
             colsep=3pt,
             colspec= {c *{3}{X[c,m]} },
             row{1} = {font=\bfseries},
             rowsep = 3pt,
             }
No  &   C1  &   C3  &   C4  \\
1   & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
2   & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
3   & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
4  & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
\end{tblr}
    \end{table*}
    \begin{table*}[t]
    \ContinuedFloat
\caption{Table with images}
  \label{tab:image}
    \adjustboxset{width=\linewidth, valign=M}
\begin{tblr}{hlines, vlines,
             colsep=3pt,
             colspec= {c *{3}{X[c,m]} },
             row{1} = {font=\bfseries},
             rowsep = 3pt,
             }
No  &   C1  &   C3  &   C4  \\
5   & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
6   & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
7   & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
8   & \adjincludegraphics{example-image-a}
            & \adjincludegraphics{example-image-b}
                    & \adjincludegraphics{example-image-c}  \\
\end{tblr}
    \end{table*}

\end{document}

答案1

这个答案实际上是我的评论的延伸,其中我将两个表合并为一个

第 1 页 第2页 第 3 页
在此处输入图片描述 在此处输入图片描述 在此处输入图片描述
\documentclass[journal]{IEEEtran}
\usepackage{lipsum}
\usepackage{newtxtext, newtxmath}
\usepackage[export]{adjustbox}
\usepackage{tabularray}
    \UseTblrLibrary{booktabs}

\DefTblrTemplate{caption-text}{default}{\scshape \InsertTblrText{caption}}
\DefTblrTemplate{contfoot-text}{default}{\scshape Continued on next page}
\DefTblrTemplate{caption}{default}{
  \centering
  \UseTblrTemplate{caption-tag}{default}\par
  \UseTblrTemplate{caption-text}{default}\par
}
\DefTblrTemplate{capcont}{default}{
  \centering
  \UseTblrTemplate{caption-tag}{default}\par
  \UseTblrTemplate{caption-text}{default}
  \UseTblrTemplate{conthead-text}{default}\par
}
\DefTblrTemplate{conthead-text}{default}{({\scshape Continued})}


\begin{document}
\lipsum

\begin{table}
  \centering
  \caption{Example}\label{tab:example}
  \begin{tabular}{ccc}
    \hline
    Column 1 & Column 2 & Column 3 \\
    \hline
    X & Y & Z \\
    X & Y & Z \\
    X & Y & Z \\
    \hline
  \end{tabular}
\end{table}

\appendix
\adjustboxset{width=\linewidth, valign=M}

\onecolumn
\begin{longtblr}[
  caption = {Table with images},
  label = {tab:image},
]{
  hlines, vlines,
  colsep=3pt,
  colspec= {c *{3}{X[c,m]} },
  row{1} = {font=\bfseries},
  rowsep = 3pt,
  rowhead = 1,
}

  No &   C1  &   C3  &   C4  \\
  1  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
  2  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
  3  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
  4  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
  5  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
  6  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
  7  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
  8  & \adjincludegraphics{example-image-a}
     & \adjincludegraphics{example-image-b}
     & \adjincludegraphics{example-image-c}  \\
\end{longtblr}

\end{document}

更新。
如果长桌不是一个选择,这里有另一个解决方案,即使用普通桌

\documentclass[journal]{IEEEtran}
\usepackage{lipsum}
\usepackage{newtxtext, newtxmath}
\usepackage[export]{adjustbox}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\usepackage{caption}


\begin{document}
\lipsum
\appendix
\begin{table*}
  \begin{minipage}[t][\textheight]{\linewidth}
    \ContinuedFloat
    \caption{Table with images}
    \label{tab:image}
    \adjustboxset{width=\linewidth, valign=M}
    \begin{tblr}{hlines, vlines,
      colsep=3pt,
      colspec= {c *{3}{X[c,m]} },
      row{1} = {font=\bfseries},
      rowsep = 3pt,
    }
      No  &   C1  &   C3  &   C4  \\
      5   & \adjincludegraphics{example-image-a}
      & \adjincludegraphics{example-image-b}
      & \adjincludegraphics{example-image-c}  \\
      6   & \adjincludegraphics{example-image-a}
      & \adjincludegraphics{example-image-b}
      & \adjincludegraphics{example-image-c}  \\
      7   & \adjincludegraphics{example-image-a}
      & \adjincludegraphics{example-image-b}
      & \adjincludegraphics{example-image-c}  \\
      8   & \adjincludegraphics{example-image-a}
      & \adjincludegraphics{example-image-b}
      & \adjincludegraphics{example-image-c}  \\
    \end{tblr}
  \end{minipage}
\end{table*}

\end{document}

相关内容