17

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?

10
  • 3
    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
    Commented Feb 27, 2013 at 7:36
  • 4
    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.
    – user2574
    Commented Feb 27, 2013 at 7:53
  • 8
    Please include a minimal working example (MWE)...
    – Werner
    Commented Feb 27, 2013 at 8:00
  • 2
    Does \raggedbottom help? (put it in your preamble)
    – JLDiaz
    Commented Feb 27, 2013 at 8:18
  • 3
    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'
    Commented Feb 27, 2013 at 12:58

1 Answer 1

25

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: without vspace

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.

with vpsace

3
  • 11
    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
    Commented Feb 27, 2013 at 10:00
  • Thanks @lockstep. I realize that this may not be the right way to solve the problem.
    – Umar Kalim
    Commented Feb 27, 2013 at 20:29
  • If ` \begin{figure*}` is used vspace only deletes space from one column not the both
    – alper
    Commented Dec 12, 2022 at 19:06

Not the answer you're looking for? Browse other questions tagged .