Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

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?

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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 Feb 27 '13 at 7:36
1  
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
7  
Please include a minimal working example (MWE)... –  Werner Feb 27 '13 at 8:00
2  
am i right: you're worried about the space between the bottom of the figure float and the following text? -- that may not be anything to do with the caption itself (caption package’s \belowcaptionskip is zero by default, iirc). between the bottom of the float and the following text \intextsep is added, which is 12pt by default: try setting that to 0pt and see whether that helps. –  wasteofspace Feb 27 '13 at 9:53
2  
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

1 Answer 1

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

share|improve this answer
6  
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.