I have seen a lot of posts like this one \parskip stretches more than expected that use some glue inside \vspace
. I wonder if it is good idea to define a new \vspace
command with some glue to replace the normal one in all the cases. Something like
\newcommand{\vspacewithglue}[3]{\vspace{#1\baselineskip plus #2\baselineskip minus #3\baselineskip }}
I tried to persuade myself for the usefulness of such a command for simple cases but without success. For example, I used
some test line ffppp \vspacewithglue{2}{0}{0}\\
some test line ffppp \vspacewithglue{2}{-1}{1}\\
some test line ffppp \vspacewithglue{2}{1}{1}\\
without any difference. So I am somewhat confused. Maybe there are some "special" cases (like the above post) where one actually needs to have such a command, but generally there is no need. Maybe it is better to use the well known command \\[...ex]
and leave TeX to place some glue, if it is realy needed.
I know this question is a bit vague or maybe already answered. Feel free to edit it/suggest something in the comments.
\vskip
) plus an optional stretch and/or shrink component. I would suspect in you example that TeX has decided not to exercise its option (i.e., because there is no need to). As an aside, I hope you are not using\\
in the above code to "make" a new paragraph. – jon Feb 17 '16 at 5:25\parskip
) between paragraphs, which is usually a lot more reasonable than adding stretchable glue between lines of a paragraph, as here. – David Carlisle Feb 17 '16 at 11:25