Possible Duplicate:
How to reduce space between image and its caption?
I am working on one example in which i need to draw one table and its caption. How can i control the space between Title, Table and caption. I want to minimize the spacing.
\usepackage{transparent}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{hyphenat}
\usepackage{xstring}
\usepackage{forloop}
\usepackage{collcell}
\usepackage{longtable}
\usepackage{makecell}
\usepackage{varwidth}
\usepackage{fancyhdr}
\usepackage{array,multirow,colortbl}
\usepackage{caption}
\usepackage{subfig}
\usepackage[table]{xcolor}
\pagestyle{fancy}
\fancyhf{} % sets both header and footer to nothing
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
\begin{document}
\arrayrulecolor{white}
\definecolor{maincol}{rgb}{.118, .565, 1.00}
\definecolor{textcol}{rgb}{.118, .565, 1.00}
\newcolumntype{P}[1]{>{\collectcell\AddBreakableChars}p{#1}<{\endcollectcell}}
\captionsetup[table]{aboveskip=0pt}
\captionsetup[table]{belowskip=10pt}
\textcolor{textcol}{\textbf{ XYZ }}
\scriptsize
\arrayrulecolor{white}
\begin{longtable}{|M{1.4cm}|M{1.4cm}|M{1cm}|M{3.7cm}|M{1.8cm}|M{1.4cm}|}
\rowcolor{maincol} \textbf{ \textcolor{white}{A}} &\textbf{ \textcolor{white}{B}} &\textbf{ \textcolor{white}{C}} &\textbf{ \textcolor{white}{D}} &\textbf{ \textcolor{white}{E}} &\textbf{ \textcolor{white}{F} }\\
\hline
\rowcolor{rowcol}
AA
& AA& A& DDD & [1, 2] & TTT \\
\hline
\rowcolor{rowcol}
& & & & Total & TTT \\
\end{longtable}
\scriptsize
\textit{This is Caption}
\end{document}


font=large,font=smallpr in generalfont=[fontsize](note that note all sizes are useable). – rtzll Jan 16 '13 at 09:07\captionsetup{skip=0pt,font=small}. – rtzll Jan 16 '13 at 09:17