This is probably a trivial question, but I can't find an answer: In some circumstances (large verbatim environments between paragraphs, many empty sections), LaTeX squeezes the line distance within paragraphs. How can I avoid this? It there a length with plus or minus tolerances I could redefine? I tried defining \baselineskip as suggested by https://tex.stackexchange.com/a/51447/239563, but using minus 0pt, but it didn't help.
Thanks a lot for your help!
Edit after the issue was resolved: Since it turned out to be a completely different effect (thanks a lot to David Carlisle who spotted this), here (belatedly) comes the example (may be helpful if someone has a similar problem):
This is a paragraph
with text.
%
\begin{footnotesize}
\begin{verbatim}
Here comes some code.
\end{verbatim}
\end{footnotesize}
Apperently, the problems are caused by the footnotesize environment, if there is no blank line beforehand.
\baselineskipso what you describe does not happen. If you show an example we can debug where the bad setting has been made. My guess is that you are not seeing stretch glue but rather large text on a small baseline due to incorrectly ending the size change without ending the paragraph. – David Carlisle Jun 01 '22 at 09:57%, followed by a\begin{verbatim}...\end{verbatim}environment over multiple lines. If I replace the%by an empty line, the squeezed paragraphs disappear. – Ralf Jun 01 '22 at 10:41\begin{footnotesize}and\end{footnotesize}, may that be the problem? Why would the font size leak through to the paragraph? – Ralf Jun 01 '22 at 13:12\foonotesizeisn't designed as an environment but if you do use it in that form you must leave a blank line before\beginand before\endotherwise the paragraph before the environment will be set with too small line spacing and the last paragraph of the environment will be set with too large line space. – David Carlisle Jun 01 '22 at 18:20alignenvironments, I also have%comment lines between paragraphs and equations instead of blank lines. Could that have some undesired consequences as well? Notfootnotesizeis used in this case. – Ralf Jun 02 '22 at 19:51footnotesize/verbatimenvironments sometimes followed by a%comment line (no blank line) and then analignenvironment - could that cause trouble? – Ralf Jun 02 '22 at 20:10