Document Classesskipping a sub figure

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

skipping a sub figure

Post by me_here_me »

Hi,
I am adding four sub-figures in a single figure using the following code:

Code: Select all

\begin{figure*}
	\centering
		\subfloat[Test-part-2 (distance analysis)]{\includegraphics[width=2.2in]{Images/dist-analysis-part2-3}}
		\subfloat{\includegraphics[width=0.25in]{Images/dist-analysis-spectrum3}}
		\subfloat[Test-part-3 (distance analysis)]{\includegraphics[width=2.2in]{Images/dist-analysis-part3}}
		\subfloat[Test-part-4 (distance analysis)]{\includegraphics[width=2.2in]{Images/dist-analysis-part4}}
		\caption{caption goes here}
\label{fig:dist-analysis}
\end{figure*}	
I want the first sub-figure to have an "a" under it. Nothing below the second sub-figure and a 'b' under the third sub-figure.

But I am getting an 'a' under the first sub-figure, nothing under the second sub-figure, but then a 'c' under the third sub-figure.

Is there some way, I can totally skip the second sub-figure from counting?

regards

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

skipping a sub figure

Post by Juanjo »

Put this between the second and third \subfloat:

Code: Select all

\addtocounter{subfigure}{-1}
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

Re: skipping a sub figure

Post by me_here_me »

thanksssss a lot :)

works koool
Post Reply