MiKTeX and proTeXtvertical distance

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

vertical distance

Post by me_here_me »

Hi,
I want to increase the distance between a subfigure and its caption. The following is the code that i use:

Code: Select all

Code, edit and compile here:
\begin{figure}[h]
\begin{center}
\mbox{
\subfigure[]{\includegraphics[width=1.7in]{Images/part1}}
\subfigure[]{\includegraphics[width=1.7in]{Images/part2}}
}
\caption{caption goes here.}
\label{fig:parts}
\end{center}
\end{figure}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
the image of part1 has "a" written below it. I want to increase the distance between the image of part1 and the "a" written below it.

is there some method of doing that?

regards

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: vertical distance

Post by balf »

Two remarks: 1) you should use \centering, and not \begin{center}, as this environment adds some supplementary vertical space wrt the surrounding text ; 2) do you use the subfig or the the subfigure package? The last one is considered more or less obsolete. With the first one, you have the \captionskip length (sees the doc for subfig), which you may change in your preamble.

Regards,
B.A.
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

vertical distance

Post by me_here_me »

Hi,
I have changed the latex code to use subfig package as i was using the subfigure package earlier.

can you please tell me where i should insert the command captionskip = 10pt command. I am not able to find any quick help on the google

I want to increase the caption for the first sub figure only and am short of time

Code: Select all

Code, edit and compile here:
\begin{figure}[h]
\centering
\subfloat[]{\includegraphics[width=1.7in]{Images/part1}}
\subfloat[]{\includegraphics[width=1.7in]{Images/part2}}
\caption{cation goes here}
\label{fig:parts}
\end{figure}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
regards
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

vertical distance

Post by localghost »

Use the caption package to customize all kind of captions and refer to its documentation. For quick help on such issues you can take a look at lshort and l2tabu. In this case the documentation of subfig should give you the answer. All packages and their documentations can be found on CTAN.

Supplement the list of parameters for placing your float. The [h] makes no sense, because it's overwritten by the compiler (mostly with [ht]). I suggest to give at least [!ht] for placing the figure. The exclamation mark is explained in every basic LaTeX documentation.


Best regards
Thorsten¹
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

Re: vertical distance

Post by me_here_me »

thanks for the help :)
Post Reply