Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to add a long table of figures into latex. I am able to successfully add in \documentclass[12pt]{article}.

But when I try adding it in the following document class, I get error:

\documentclass[letterpaper, 10 pt, conference]{ieeeconf}  


Error:

**Package longtable error: longtable not in 1-column mode \begin{longtable}**

The code for table I created is:

\begin{center}
 \begin{adjustwidth}{-10cm}{}
\begin{longtable}{ccp{5cm}|}
\caption{results}\label{tab:support}\\
%Row1 __________________________________________________________________________
Image & result &My comments \\

\raisebox{-.5\height}{\includegraphics[width=140px,height=120px]
{Images/support/rgb_000938.eps}}
&\raisebox{-.5\height}{\includegraphics[width=200px,height=150px]
{Images/support/region_000938_1.eps}} & xxxx \\
\newline

\end{longtable}
\end{adjustwidth}
\end{center}
share|improve this question
2  
In two column longtable doesn't work as of now. You may use supertabular instead. –  Harish Kumar Jan 20 '13 at 7:08
    
ok...I will try. thanks :) –  Swagatika Jan 20 '13 at 10:19
1  
Please have mercy to your readers and don't use tables on a conference paper that lasts more than one column or a page. –  percusse Jan 20 '13 at 10:56
    
thanks for the feedback :) –  Swagatika Jan 20 '13 at 11:04
add comment

1 Answer 1

longtable works in two columns if you use the code from

multi-page two column table in a single column document

Note I used

\documentclass[letterpaper, 10pt,]{IEEEconf}  

as that appears to be the class name with uppercase IEEE and 10pt should have no space, and the version I have in TeXLive 2012 complained about the conference option.

enter image description here

\documentclass[letterpaper, 10pt,]{IEEEconf}  

\usepackage{longtable}


\makeatletter
\let\saved@longtable\longtable
\long\def\foo#1\LT@err#2#3#4!!{\def\longtable{#1#4}}
\expandafter\foo\longtable!!

\long\def\foo#1\@outputpage#2\@outputpage#3!!{%
\def\LT@output{#1\@opcol#2\@opcol#3}}
\expandafter\foo\LT@output!!
\makeatother

\begin{document}




\twocolumn[\section{List}]



\begin{longtable}{| l || c |}
\caption{Some square numbers\label{tab:xxx}}\\
$n$&$n$-squared\\
\hline
\endfirsthead
$n$&$n$-squared\\
\hline
\endhead
a&b\\\relax
\input{squares.tex}
\end{longtable}
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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