1. this

\usepackage{chngcntr}
\counterwithout{figure}{chapter}

helped me to convert numbering from 1.1 , 1.2 to 1 , 2 that was useful thanks

• tom

Thanks for your comment. That’s a neat trick. Best, Tom.

• Ayomikun

Hi Tom, i have a challenge with my figure numbering, it is so discontinuous.

• Please provide a minimal working example for illustration. You may use these lines to simulate figures:

\begin{figure}[ht]
\centering
\rule{2cm}{2cm}
\caption{default1}
\end{figure}
2. Manuel

This was very useful, but how did you add “Chapter 1”, “Chapter 2” and so on?

• tom

Hi Manuel,

How to add the chapter to the list of figures and tables is explained in this post.

Cheers, Tom.

3. Antti

Is there away to use normal article type countering for main text, and then, in the appendices, to use section-wise equation counter (iike (A.1), (A.2), (A.3))

• Antti

This was easy. The amsmath command

\numberwithin{equation}{section}

in the middel of the text does it, ie this command does not need to be in the preample.

Hi my problem is very strange. My document is using the article class, but the section numbers are shown for the figures, figure 2.3, instead of figure 4.

chngcntr does not work for me, because \counterwithout{figure}{chapter} only works for book class, not for article class. Any suggestion? Thanks.

• tom

You would have to provide a minimal working example for me to reproduce the problem.

Thanks,
Tom

I may have to upload or email you my tex file. Anyway to do it? Thanks.

• tom

Please just reduce your code to the minimum such that I can reproduce the problem and paste it here. Make sure that if I run it I can see the problem you describe.

Best, tom

5. Figure 1.1 change 1.1 Figure?
help me

• Hi there,

Sorry for the late response. You could set \figurename to be empty and print “Figure” with the counter. An example is give below.

Best, Tom

\documentclass[11pt]{article}
\usepackage[figurename=]{caption}
\renewcommand{\thefigure}{\thesection.\arabic{figure} Figure}
\begin{document}
\section{First}
\begin{figure}[ht]\centering\rule{5cm}{5cm}\caption{default}\end{figure}
\end{document}
6. Timo Müller

Hey, my Problem is that the Figure counter starts with Figure 0.1 ; 0.2 ; 0.3 and so on in the first Section. How can i change it to 1.1 ; 1.2 … in the first Section

• Hi Timo,

Is your first section unnumbered? You can manually increase the section counter (see example below).

Best, Tom

\documentclass[11pt]{article}
\usepackage{blindtext}
\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}
\begin{document}
\listoffigures
\clearpage
\section*{First}
\stepcounter{section}
\blindtext
\begin{figure}[h]\caption{First figure}\end{figure}
\clearpage
\section{Second}
\blindtext
\begin{figure}[h]\caption{Second figure}\end{figure}
\end{document}