When I use the vspace command it won't work unless I put a new, empty line before and after the command. Is this normal? If it is, why is that? Why does it require spacing around the command?
[Tex/LaTex] Using vspace, with spacing
spacing
spacing
When I use the vspace command it won't work unless I put a new, empty line before and after the command. Is this normal? If it is, why is that? Why does it require spacing around the command?
Best Answer
\vspace
only takes effect when LaTeX creates a line break or a new paragraph. I think more technically,\vspace
only has effect when LaTeX is in vertical mode. If LaTeX is not currently in vertical mode, LaTeX saves the\vspace
until next time it enters vertical mode.So for example I can write:
which results in
If I want to force the
\vspace
at the point where I place it, I must start a newline there also:Alternatively you can start a new paragraph:
These last two examples may look very similar, but the effects could be different if you've set
\parskip
to a non-zero value, which is generally discouraged.