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

closed as unclear what you're asking by Paul Gessler, Papiro, Svend Tveskæg, percusse, Masroor Aug 19 at 2:52

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the 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

Browse other questions tagged or ask your own question.