[texhax] In Latex longtable - page break in between the record.
Pierre MacKay
pierre.mackay at comcast.net
Thu Feb 24 17:32:38 CET 2011
On 02/24/2011 01:44 AM, gpn return0 wrote:
>
> Hi,
>
> I use longtable in my latex. I have a set of records in my table and I
> don’t want any page break in between the record.
>
> Check my sample code attached. Each set of record has data (from A to
> E). The each record (data from A to E) should print in the same page
> (i.e. it should not split due to page break as it happens in teh
> sttached PDF).
>
> Any option is available in longtable to do this?
>
>
Given the length of the page you have already, I would insert a forced
page break in place of \\ before the entry that is split undesirably. I
can't say how you di that in LaTeX, because I don't know what
quasi-primitive commands are allowed.
Automating that is likely to be more difficult. You would need to get
an accurate reading on \pagesofar, or to limit breaks after \\ except on
blank lines. I am lazy about such things. Once I have otherwise stable
paging, I just go in and insert the needed break.
Pierre MacKay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110224/be570958/attachment.html>
More information about the texhax
mailing list