I am a beginner and I would like to use a minipage to put a figure inside and some text above the figure to describe it and because they are both in the minipage, they will always be in the same page, that's what I want. Is using a minipage the correct way to do it?
The problem is that I noticed that inside a minipage the vertical spacing is much smaller than outside it. Is there a way to make the vertical spacing inside a minipage the same as elsewhere in the document.
Here is an example that show the problem below with the pdf in attachement :
Code: Select all
\documentclass[12pt]{article}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\setcounter{secnumdepth}{5}
\begin{document}
\paragraph{First paragraph}
\subparagraph {First sub paragraph }
Blablabla blablabla blablabla blablabla blablabla blablabla see the picture below :
{[}The picture{]}
\paragraph {Second paragraph }
\subparagraph {Second sub paragraph }
Blablabla blablabla blablabla blablabla blablabla blablabla see the picture below :
{[}The picture{]}
%
\begin{minipage}[t]{1\columnwidth}%
\paragraph {Third paragraph (inside the minipage)}
\subparagraph {Third sub paragraph (inside the minipage)}
Blablabla blablabla blablabla blablabla blablabla blablabla see the picture below :
{[}The picture{]}
\paragraph {Fourth paragraph (inside the minipage)}
\subparagraph {Fourth sub paragraph (inside the minipage)}
Blablabla blablabla blablabla blablabla blablabla blablabla see the picture below :
{[}The picture{]}%
\end{minipage}
\paragraph {Fifth paragraph }
\subparagraph {Fifth sub paragraph }
Blablabla blablabla blablabla blablabla blablabla blablabla see the picture below :
{[}The picture{]}
\paragraph {Sixth paragraph }
\subparagraph {Sixth sub paragraph }
Blablabla blablabla blablabla blablabla blablabla blablabla see the picture below :
{[}The picture{]}
\end{document}
Jonas