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.

here is my LaTeX: (how does one format it nicely?): [Edit:] Reducing the example

\documentclass{article}
\usepackage{longtable}
\usepackage{lscape}
\begin{document}
\begin{landscape}
\noindent 
\begin{longtable}{ll}
\caption[]{Decomposition } \\ 
  &   \\ \endhead\hline
 & 
$ \begin{array}{l}
1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ 
\end{array}$
\end{longtable}
\end{landscape}
\end{document}

And here is what I get: latest reduced example

original example .pdf

Thanks for your help in advance!

share|improve this question
    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). Your example is also rather long: it would be best to construction a minimal working example (MWE). –  Joseph Wright Jun 28 '12 at 9:07
    
I have something closer to a MWE now. Don't know whether the landscape environment is an issue or not. –  Todor Milev Jun 28 '12 at 9:39
1  
A longtable can have a page break only after a tabular line and this is before your long array which is for longtable one tabular line. You have to insert a manually page break. –  Herbert Jun 28 '12 at 9:45
add comment

1 Answer

It's clear that there is an error in the title of your question (my packages only have undocumented features never bugs:-)

You can use array package to make the longtable column math mode, then get rid of the inner array so that the table can break as you wish:

\documentclass{article}
\usepackage{longtable,array}
\usepackage{lscape}
\begin{document}
\begin{landscape}

\begin{longtable}{l>{$}l<{$}}
\caption[]{Decomposition } \\ 
  &   \\ \endhead\hline
&1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1
\end{longtable}
\end{landscape}
\end{document}
share|improve this answer
    
Thanks a lot! "It's clear that there is an error in the title of your question" >:) it was attention-seeking :) - glad it worked and sorry if it was too provocative :) –  Todor Milev Jun 28 '12 at 11:16
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.