1

How can one create a table that spans multiple pages using the table environment in IEEEtran format? I'm currently using tabular inside a table environment. But my table is getting too long.

I've referred IEEEtran, longtable, switch to one column mode for the appendix, but it does not reside in a table environment and hence doesn't have captions or labels for reference.

longtable doesn't seem to work, nor does supertabular. May I have an minimum working exampl on how to do this?

  • The table takes up both columns of the page.
  • I require the features of the table environment: label, title, and caption.
2
  • Does your table take up one column or both columns?
    – hbaderts
    Commented Jul 29, 2016 at 6:51
  • Yes, @hbaderts; I've made the necessary edit to the question.
    – Ébe Isaac
    Commented Jul 29, 2016 at 7:17

1 Answer 1

4

"doesn't seem to work" is not very informative. What did you try and what error did you get?

This works, for example.

\documentclass{IEEEtran}
\usepackage{longtable}


\begin{document}


see table \ref{zzz}.

\clearpage
\onecolumn
\appendix

\begin{longtable}{c|c}
\textbf{A}&\textbf{B}\\
\caption{a long table\label{zzz}}
\endfirsthead
\textbf{A}&\textbf{B}\\
\caption*{a long table (continued)}
\endhead
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\
\end{longtable}

\end{document}
9
  • Thanks, Mr. Carlisle. Well, the point is that it works outside the table environment but only the first part of it's visible when its nested within table environment. The remaining part goes to oblivion. I really need the features provided by the table environment: caption, label, and title. Is there an alternative for a longtable?
    – Ébe Isaac
    Commented Jul 29, 2016 at 7:14
  • The example with longtable by David Carlisle does contain a caption and a label.
    – hbaderts
    Commented Jul 29, 2016 at 7:35
  • @ÉbeIsaac no you do not need table please look at the example above it uses a caption and label and a working \ref. Commented Jul 29, 2016 at 8:06
  • Sorry, Mr. Carlisle, I think I've overlooked it. Yes, you're right, it works well with caption and label-ref. Is there a way to do this without switching back and forth between \onecolumn and \twocolumn?
    – Ébe Isaac
    Commented Jul 29, 2016 at 8:13
  • not with longtable, it only does one column (but you said in your question that you want a single table to span both columns,so that is OK. Commented Jul 29, 2016 at 8:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .