Graphics, Figures & TablesChapter zero figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jill99
Posts: 1
Joined: Thu Aug 12, 2010 10:45 am

Chapter zero figures

Post by jill99 »

Hi everyone. I'm new to this forum, so let's hope you don't find my post inadequate.

I'm using LaTeX to write my thesis. I've been using it for some months, so I still consider myself a newbie. I like to write my documents with Kile, then compile them with pdflatex.

The thing is, this is the first time I've included a 'Zero' chapter, for using it as an introduction. I took this as example: http://einstein.drexel.edu/liki/index.p ... and_Tricks. I also needed to include some images. My code would resemble this (partial section):

Code: Select all

\setcounter{chapter}{-1}
\chapter{Introduction}
\pagestyle{headings}

Text paragraph.

	\section{Section name}

	Another paragraph.

		\subsection{Subsection name}

		Yep, another one.

		\begin{figure}[h!]
			\centering
			\includegraphics[width=100mm]{image1.png}
			\caption{First image}
		\end{figure}
Everything goes smooth, but I noticed that, when adding a figure index with:

Code: Select all

\listoffigures
the image's index entry looks like
1. First Image . . . . . . . . . . . . . . . . . (page)
, instead of
0.1. First image . . . . . . . . . . . . . . . . (page)
. The entries for other chapters' images are shown well, e.g.,
7.2. Second image from chapter 7 . . . (page)
.

Is this supposed to be OK? Have I missed something?

Thanks for your support.

Recommended reading 2024:

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

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

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

Chapter zero figures

Post by localghost »

jill99 wrote:[…] I'm new to this forum, so let's hope you don't find my post inadequate. […]
But unfortunately it is [1]. For the described problem it requires a minimal example to get some useful information, e. g. about the used document class.
jill99 wrote:[…] I'm using LaTeX to write my thesis. I've been using it for some months, so I still consider myself a newbie. I like to write my documents with Kile, then compile them with pdflatex. […]
You probably wouldn't ask here if you would use another software.
jill99 wrote:[…] Is this supposed to be OK? Have I missed something? […]
The behaviour is quite normal and caused by the definition of the figure counter in the used document class (see above).

It is suggestive to use the starred \chapter* command for things like introductions. For an appropriate figure caption you could use the caption package which provides a starred \caption* command that suppresses the figure numbering and the LoF entry. Since you don't set a label for reference this won't do any harm.

[1] View topic: Avoidable mistakes


Best regards and welcome to the board
Thorsten
Post Reply