LaTeX ignores \setstretch or changing \baselinestretch in one paragraph

I have a LaTeX document that looks like this:

...
\usepackage{setspace}
\setstretch{1.5}
...
\begin{document}
...
some text\\
\begin{minipage}{\textwidth}
% some TIKZ image
\end{minipage}
some text

new paragraph\\
\begin{minipage}{\textwidth}
% some TIKZ image
\end{minipage}
...
\end{document}


The text before the "new paragraph" appears correctly spaced, however the text under "new paragraph" and some of the paragraphs following it appear with a very small space between the lines.

Any idea why it happens and how to fix it?

• also, don´t use \\ to create new lines, outside of math- and tableenvironments. Use a empty line instead. Sep 22, 2016 at 11:49
• @RunarTrollet -- the blank line, while often the best approach, also starts a new paragraph, and thus indents the first line of what follows. since what folllows here is a minipage, it would be indented, and result in a report of an overfull box. Sep 22, 2016 at 12:21
• @cfr -- yes, a \noindent before the minipage would avoid an underfull box, but it wouldn't really get rid of the problem that the space between the preceding text and the minipages wouldn't necessarily always be the same size. i think that adding a strut at the end of the preceding text, and applying a [t] to the minipage would do what's wanted, but i'm not sure enough without testing, and i don't want to assume that \documentclass{article} is what's being used. Sep 23, 2016 at 1:59
the minipage is treated as a single line, with the baseline through its center. therefore, the height between the line preceding the minipage will almost always be too close to the first line of the minipage. this is especially apparent when the preceding line contains no descenders.
you will need to manually add more space between the preceding line and the minipage. the exact amount will depend on the type size of the font being used.