Sometimes, there is need to adjust the spacing between the caption and the figure in figwindow environment by picinpar package in LaTeX. So, how to complete this action?
For example:
\documentclass{article}
\usepackage{picinpar,graphicx}
\begin{document}
\begin{figwindow}[3,r,{\includegraphics[width=0.4\textwidth]{example-image-a}},{hello}\label{fig:title}]
The figure environment takes care of the numbering and positioning of the image within the document. In order to include a figure, you must use the includegraphics command. It takes the image width as an option in brackets and the path to your image file. As you can see, I put linewidth into the brackets, which means the picture will be scaled to fit the width of the document. As a result smaller pictures are upscaled and larger pictures downscaled respectively. As I mentioned before the brackets contain the path to the image. In this case the image is stored in the same directory as my .tex file, so I simply put boat.jpg here to include it. For large documents, you probably want to store image files in a different folder, say we created a folder images, then we would simply write images/boat.jpg into the braces. In the next command we set a caption, which is the text shown below the image and a label which is invisible, but useful if we want to refer to our figure in our document. You can use the ef command to refer to the figure (marked by label) in your text and it will then be replaced by the correct number. LaTeX is smart enough to retrieve the correct numbers for all your images automatically. Note that you will need to include the graphicx package in order to use this code.
\end{figwindow}
\end{document}
When change \begin{figwindow}[3,r,{\includegraphics[width=0.4\textwidth]{example-image-a}},{hello}\label{fig:title}] to \begin{figwindow}[3,r,{\includegraphics[width=0.4\textwidth]{example-image-a}},{\vspace{1cm}hello}\label{fig:title}], the output is the same.
Thanks.


\vspace{1cm}by, say,\vphantom{\begin{tabular}[t]{c} \vspace{1cm} \end{tabular}}you will create additional space. – Apr 09 '23 at 02:07\begin{tabular}[b]{c} .... (Needless to say that this is not a proper solution but at best a workaround.) – Apr 09 '23 at 04:25\begin{figwindow}[3,r,{\includegraphics[width=0.4\textwidth]{example-image-a}},{% \vphantom{\begin{tabular}[b]{c} \vspace{1cm} \end{tabular}}% hello}\label{fig:title}]. This is a way but not very clean nor illuminating. – Apr 09 '23 at 04:30\begin{figwindow}[3,r,{\vphantom{\begin{tabular}[t]{c} \vspace{1cm} \end{tabular}}\includegraphics[width=0.4\textwidth]{example-image-a}},{hello}\label{fig:title}]. However, only\vspace{acm}works ifais bigger than 0. If it is a negative number, it wouldn't work. – Y. zeng Apr 09 '23 at 04:37