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.
  • Does your table take up one column or both columns? – hbaderts Jul 29 '16 at 6:51
  • Yes, @hbaderts; I've made the necessary edit to the question. – Ébe Isaac Jul 29 '16 at 7:17
2

"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}
  • 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 Jul 29 '16 at 7:14
  • The example with longtable by David Carlisle does contain a caption and a label. – hbaderts Jul 29 '16 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. – David Carlisle Jul 29 '16 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 Jul 29 '16 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. – David Carlisle Jul 29 '16 at 8:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.