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.

How to make \Needspace work inside \multline? \displaybreak would be ok, but it doesn't support arbitrary lengths.

For example:

\documentclass{article}
\usepackage{amsmath}
\usepackage{needspace}

\begin{document}
\begin{multline}
a\\
b\\
c\\
d\\
%e\Needspace{10cm}\\   % this doesn't work
f\\
g\\
h\\
i
\end{multline}
\end{document}
share|improve this question
    
Why not just use the \needspace{} before the multiline`? –  Peter Grill Jun 26 '12 at 1:10
    
@Peter. Because it will produce unwanted result. –  Ivan Bychkov Jun 26 '12 at 11:22
    
Only second part of equations should go to the second page. –  Ivan Bychkov Jun 26 '12 at 11:31
    
Use \displaybreak[4] where you want the display is split. Defer these kind of adjustments to the final revision of the document, when you'll know that the text is in final form. –  egreg Jun 27 '12 at 12:25
    
That's not a deal. The document must be built correctly in all cases. I'm sure Latex provides the possibility to insert conditional \displaybreak[4]. Ultimately, it provides the possibility to insert conditional \pagebreak. Why can't this be conditional \displaybreak[4]? –  Ivan Bychkov Jun 27 '12 at 14:50
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.