Fun times, I'm making a (manual) index of the lecture slides for class (which are nowhere near latex, ppt files yay) and of course Latex insists on placing pagebreaks willie nillie through my items. Why isn't there a "keep (paragraph) with next (paragraph)" option like there is in Word 2007 (and all others I think). Is Word really more powerful than Latex [when it comes to this specific attribute of paragraph flow]?
*full page before here*
Knowledge in the \nopagebreak\\
\nopagebreak
\nopagebreak - Head
Results in
*full page*
Knowledge in the
---8<--- Next page
- Head ...
Yes, I know I can place a \newpage
before the line to push it to the next page, but there has to [HAS TO] be a way to make Latex understand that this isn't what I want, these two lines are supposed to stick together!
Edit: Full context:
*empty line*
Knowledge in the \\
- Head \slid{44, 69}
- World \slid{5, \textbf{44}, 66, 69, 84}
*empty line*
With slid being:
\newcommand{\slid}[1]{\dotfill #1 \nopagebreak\\}
It seems to be to be that the -World line is pulling down the -Head line, if I add an empty line between them, both Knowledge.. and -Head stay on the same page, with -World on the next one. But when I combine the two, only -Head gets pulled to a new page, and Knowledge… stays on the previous page.
Best Answer
If "- Head -" is a normal text line
\\*
should work. If not we need to know what it is. In a lot of case solutions with\@afterheading
can be used, e.g.: