# How to remove space after image caption? [duplicate]

I am writing one article in which i need to write one image and its caption. I found space after caption seems to be more than normal.

\begin{figure}[!ht]
\centering
\includegraphics[width=0.7\linewidth]{image1.jpg}
\caption{\textcolor{gray}{\footnotesize \textit{ImageCaption}}}
\end{figure}
This is first text after caption.

How can i reduce the space between caption and text?

## marked as duplicate by Marco Daniel, Andrew Swann, yo', Claudio Fiandrino, ThorstenMar 1 '13 at 14:02

• What other packages are you loading? If you're using caption, perhaps setting \aftercaptionskip would work. Otherwise, \intextsep or \textfloatsep (see the layouts package documentation; section 6.1 Float and text page layout, p 25). – Werner Feb 27 '13 at 7:36
• If you use the caption package the correct command is \captionsetup{belowskip=0pt}. But since this is the default value something is going wrong at your document. But to find out we need an MWE from you. – Axel Sommerfeldt Feb 27 '13 at 7:53
• Please include a minimal working example (MWE)... – Werner Feb 27 '13 at 8:00
• Does \raggedbottom help? (put it in your preamble) – JLDiaz Feb 27 '13 at 8:18
• I would really suppose that someone who has asked 25 questions before would know how a question should look like and what MWE means. Just a comment: IMHO putting \textcolor, \footnotesize and \textit manually into the caption text shows a lack of concept. The package caption that you claimed you use provides a lot of \caption customization on the document level, so that it applies consistently to all captions. – yo' Feb 27 '13 at 12:58

A quick way would be to use \vspace{} with negative length as input. However, this is not the right approach and is not recommended for use.

Without using vspace the output would look like:

Here is a MWE with vspace and negative length as input followed by the output.

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{xcolor}

\begin{document}

\begin{figure}[!ht]
\centering
\includegraphics[width=0.5\textwidth]{image}
\vspace{-1em}
\caption{\textcolor{gray}{\footnotesize \textit{ImageCaption}}}
\vspace{-1.5em}
\end{figure}
This is first text after caption.

\end{document}

Note how the use of vspace after the figure and after the caption shrinks the space.

• The OP gave no working example, but stated that the problematic extra space was "after [the] caption". Also, it seems bad practice to manually (and possibly multiple times) correct the spacing in the document body instead of looking for a solution applicable (once) in the document's preamble. – lockstep Feb 27 '13 at 10:00
• Thanks @lockstep. I realize that this may not be the right way to solve the problem. – Umar Kalim Feb 27 '13 at 20:29