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.

For a cooperative latex document with a lot of authors, it was decided to use tables for certain structures. Therefore, I have to cope with the problem of automatic page breaks of tables that only consist of 1 column and several rows. The column often contain different lists. The attached example shows the problem: The table does not break within a list. Is there a way to work around this issue?

\documentclass{book}
\usepackage{longtable}
\usepackage{blindtext}
\usepackage{paralist}

\begin{document}
\begin{longtable}{|p{\textwidth}|}
\hline
\blindtext[1]\\
\blindtext[2]\\\hline
\begin{compactenum}
\item test
\item test
\item test
\item test
\item test
\item test
\item test
\item test
\item test
\item test
\item test
\item test
\item test
\end{compactenum}\\
\blindtext[2]
\hline
\end{longtable}
\end{document}
share|improve this question
 
What's the purpose of having a one column longtable? –  egreg Jan 4 '12 at 20:33
 
Not very useful, I know. But decided by the coordinator and everyone is working with it now. –  ChrisP Jan 4 '12 at 22:16
1  
No single longtable cell can be split across pages. –  egreg Jan 4 '12 at 22:23
 
This is what I experienced an described in the example above. Any other ideas to work around this problem? –  ChrisP Jan 5 '12 at 7:29
 
Rather than longtable, I'd suggest mdframed. –  egreg Jan 5 '12 at 9:18
show 1 more comment

1 Answer

A table cell cannot be split across pages; there might be some magic trick, but a one column longtable seems inappropriate. In order to get a frame the package mdframed seems to be a better choice.

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.
http://tex.stackexchange.com/questions/40074/table-and-page-break-inside-list
tex.stackexchange.com
crawl=CC-MAIN-2014-10
64446
application/http; msgtype=response
sha1:3HRSSHSNVQVPH2WYSTU6CYHMXSDW7VFN
<urn:uuid:b3c468fb-3546-4cff-ada4-2c2777cb0995>
2014-03-14T21:41:16Z
198.252.206.140
sha1:HSZ62LXM44EXQGPOYEADQGYOOUFLW42H
<urn:uuid:80ad320c-4f94-4948-905d-6dc614701f44>
http://tex.stackexchange.com/questions/40074/table-and-page-break-inside-list
response
<urn:uuid:077e47c0-d06a-4819-a323-66a0d4b46d76>
robots: classic
hostname: ip-10-183-142-35.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-10
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for March 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf