I know there are similar questions, but using \\* did not work for me.

What I want to achieve is that the last two rows of my table will be on the same page (and therefore no page break between them).

Please see the following example


        a & \lipsum[1] & c & d\\\hline
        a & \lipsum[1] & c & d\\\hline
        a & \lipsum[1] & c & d\\\hline

        \multicolumn{1}{|l}{\textbf{Total}} & \multicolumn{3}{r|}{\bf 0} \\* \hline
        \multicolumn{4}{l}{\small I need to be just below Total}        

which results in a page break between the last two rows.

Do you know why \\* isn't working? Am I using it in a wrong way?


\hline introduces an allowed breakpoint. It is possible to drop into internals and stop that but the easiest thing to do is put the last two rows in the last foot, ie put them at the start, marked with \endlastfoot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.