Is there ever a difference between \vspace{...}
and \vspace*{...}
if a negative argument is supplied?
Most importantly, does the choice of which macro to use have an influence on page breaking behavior?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIs there ever a difference between \vspace{...}
and \vspace*{...}
if a negative argument is supplied?
Most importantly, does the choice of which macro to use have an influence on page breaking behavior?
I don't think the sign of the argument matters, Without the *
the skip is always discarded at the start of the page, and with the *
it is not discarded.
To answer the second question added later, it shouldn't affect the page before the break (although it may be possible to generate edge cases where it does) but it will of course affect the positioning of the first box on the page after the break and so will affect all subsequent breaks.
\newpage\vspace{-2cm}Hello
will print Hello
inside the page frame, whereas \newpage\vspace*{-2cm}Hello
will print it somewhere probably inside the page header?
\vspace
vs \vspace*
has any influence on page breaking behavior when the page break is automatically calculated and not manually given. (I've edited the question text to reflect this.)
Oct 10, 2012 at 8:25
*
Oct 10, 2012 at 8:32
*
form. The man use of the *
form is for special layouts like titles or chapter heads where you are after a forced break and you may want to have negative spacing to insert a graphic or some such that overlaps the head area as you know the pagestyle has an empty headline or you may want positive spacing, it all depends.
Oct 10, 2012 at 8:58