Graphics, Figures & TablesHow not to number selected figures?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jeffsrad
Posts: 2
Joined: Thu Jan 10, 2013 9:32 pm

How not to number selected figures?

Post by jeffsrad »

Following the finishing of Chapter 5, the part III of my thesis starts with an Overview that is followed by the start of Chapter 6. The Overview (which is neither part of Chapter 5 nor part of Chapter 6) is composed of some text and two figures. The two figures in the Overview of Part III are automatically (and unwantedly) numbered as 5.5 and 5.6, simply because the figure number of my last figure in Chapter 5 is 5.4.

My question is: how tell Latex not assign any number to the two Figures in the Overview in Part III?

My failed attempts:
I tried the following based on a tutorial online, but it stopped the compile process.

I put this in my main.tex:

Code: Select all

\usepackage{caption}
I put this in my Overview.tex

Code: Select all

\captionsetup[figure]{labelformat=empty, labelsep=none}
\begin{figure}[h]
  \centerline{\includegraphics[width=6in]{images/fig_IIIa.PNG}}
  \caption{un-numbered sample figure} \label{IIIa}
\end{figure}
Any ideas? Thanks!
Last edited by Stefan Kottwitz on Thu Jan 10, 2013 11:53 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

How not to number selected figures?

Post by sommerfee »

jeffsrad wrote:My question is: how tell Latex not assign any number to the two Figures in the Overview in Part III?
You could do the description of the pictures with ordinary text instead of using \caption.
I tried the following based on a tutorial online
This should work, too.
but it stopped the compile process.
Could you please tell us the error message? Or even better: Try to build a small but complete example document which shows us the problem.
jeffsrad
Posts: 2
Joined: Thu Jan 10, 2013 9:32 pm

How not to number selected figures?

Post by jeffsrad »

Thanks for the reply.

(1) Regarding your first suggestion, do you mean I can add an un-numbered figure with a caption right below it without using the \begin{figure}...\caption{...} end{figure} code?
If yes, please give me a sample code that shows how this could be done?

(2) Here is the error message that I get from the compiler as soon as I add \usepackage{caption} at the end of all my other packages in my main.tex file.

Code: Select all

! Undefined control sequence.
\setstretch ...ef \baselinestretch {#1}\@currsize
l.108 ...ite{2011:YunYe_Cao:StatisticalModeling}.}
Is this helpful deciphering the issue?
Thanks.
Last edited by Stefan Kottwitz on Thu Jan 10, 2013 11:54 pm, edited 2 times in total.
Post Reply