Is there a way I can have LaTeX insert a pagebreak, if the last line of the page is a certain string? e.g.
\noindent \textsl{Solution}:
thanks very much!
|
Is there a way I can have LaTeX insert a pagebreak, if the last line of the page is a certain string? e.g.
thanks very much! |
|||||
|
|
For such cases I like to use the You could define a macro:
This will have the effect, that a page break would be inserted before "Solution" if this would be the last line on the page, like you desired. You may increase the value in the argument of The package defines further command variants In every case I recommend to create a macro |
|||||||
|