lscape and supertabular in Latex

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-04-02T02:08:02Z Indexed on 2010/04/02 2:13 UTC
Read the original article Hit count: 567

Filed under:
|
|

Hi,

I would like to put pictures into a supertabular table within lscape enviroment. The code is:

  \newcounter{themenumber}  
  \newcounter{classnumber}  
  \newcounter{imagenumber}          
  \tablefirsthead{  
    \hline  
    \backslashbox{Concept}{Class} &\multicolumn{3}{|c|}{Class 0} & \multicolumn{3}{|c|}{Class 1} \\ %\textbf{A} & \textbf{B}\\  
    \hline}  
  \tablehead{  
    \hline  
    \multicolumn{7}{|l|}{\small\sl continued from previous page}\\  
    \hline  
    \backslashbox{Concept}{Class} &\multicolumn{3}{|c|}{Class 0} & \multicolumn{3}{|c|}{Class 1} \\ %\textbf{A} & \textbf{B}\\  
    \hline}  
  \tabletail{  
    %\hline  
    \multicolumn{7}{|l|}{\small\sl continued on next page}\\  
    \hline}  
  \tablelasttail{} %\tablelasttail{\hline}  
  \begin{landscape}  
  \begin{supertabular}{| c || c | c | c || c | c | c |}  
  \topcaption{Examples of All the Concepts. \label{tab:conceptsimgs}}          
    \forloop{themenumber}{1}{\value{themenumber} < 24}{  
        \arabic{themenumber}  
        \forloop{classnumber}{0}{\value{classnumber} < 2}{  
            \forloop{imagenumber}{1}{\value{imagenumber} < 4}{  
               & \includegraphics[scale=0.5]{../\arabic{themenumber}/\arabic{classnumber}_\arabic{imagenumber}.eps}  
            }  
        }  
        \\  
        \hline  
    }          
  \end{supertabular}  
  \end{landscape}

However there is something wrong with the result: no caption is shown, the height of the part of table in each page exceeds the page height and there is something extra unwanted at the last page. See images below:

page1 page2 page3 page4

How to fix the problems? Thanks and regards!

© Stack Overflow or respective owner

Related posts about latex

Related posts about lscape