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 input a file in my main latex file but the table (inputfiles contains a table) is too long to be on apage. How can I break it on two or main pages.

\usepackage{longtable} %%


\IfFileExists{file}{%
\begin{table}
\begin{center}
\caption{Grenzwertverletzung [st]}
\begin{tabular}{ll}
st&  \input{file} \\
\end{tabular}
\end{center}
\end{table}
}{} 

enter image description here

share|improve this question
3  
\usepackage{longtable} –  Eddy_Em Jan 11 '13 at 7:29
    
@ Eddy_Em, please see edited question –  user31177 Jan 11 '13 at 7:44
    
\begin{longtable} … Just read its documentation! –  Eddy_Em Jan 11 '13 at 9:35
    
    
What should I change????????? –  user31177 Jan 11 '13 at 14:39
show 1 more comment

1 Answer

As mentioned in comments, using the longtable package looks like the way forward here. Standard LaTeX tables are box-like objects that cannot be spit across pages, so you need something like

\documentclass{article}
\usepackage{longtable}

\begin{document}

\begin{longtable}{ll}
 Entry & Value \\
 1     & 123 \\
 2     & 456 \\
\end{longtable}

\end{document}

To deal with formatting, etc., we will need a full example of what you want and probably some demo data too. (The use of \input shouldn't make any difference to the situation.)

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.