# Longtable: Doesn't respect respect \nopagebreak in conjunction with \hline or \cline. Fix? [duplicate]

I have some rows separated by \cline's. It's important for presentation that they appear on the same page. However the \nopagebreak doesn't work in conjunction with \hline or \cline. Is there any easy fix for this?

• – Ulrike Fischer Sep 16 '16 at 6:58
• it respects \nopagebreak in that it doesn't break where the \nopagebreak is, it's just that it breaks inside the \hline anyway. Not that that helps you it just means my documentation isn't wrong:-) The links Ulrike gave should fix the issue. – David Carlisle Sep 16 '16 at 7:05
• Thanks! Is there a corresponding fix for \cline? – RobertHannah89 Sep 16 '16 at 16:39