Graphics, Figures & TablesSub-floats and their Captions

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sil_leu
Posts: 3
Joined: Thu Sep 01, 2011 8:17 pm

Sub-floats and their Captions

Post by sil_leu »

How can I decrease the vertical space between a sub-float and its caption?

I already tried this:

Code: Select all

\documentclass[fleqn,10pt,twoside,a4paper]{report}
\usepackage[small,sc,bf,nooneline]{caption}
\usepackage{subfig}
\captionsetup[subfloat]{captionskip=2pt};

\begin{document}
\begin{figure}
\centering
%%----start of first subfigure----
\subfloat[xxx]{
\label{lab:subfig:a}
\includegraphics[width=10cm]{fig1.eps}}\\[5pt]
%%----start of 2nd subfigure----
\subfloat[yyy]{
\label{lab:subfig:b} 
\includegraphics[width=10cm]{fig2.eps}}
\caption{Long Caption}
\label{labfig} 
\end{figure}
\end{document}
And it doesn't seem to work.
Last edited by localghost on Fri Sep 02, 2011 5:02 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Sub-floats and their Captions

Post by localghost »

It would be very kind if you mention when doing a crossposting [1]*. This is only fair because it prevents others from double efforts and waste of time.


* According to the rules you are obliged to do so.

[1] {TeX} SE – subfloats vspace between its subcaption


Thorsten
Post Reply