16 Comments

      • 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}
  1. 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.

  2. adam

    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

      Hi Adam,

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

      Thanks,
      Tom

      • 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

    • 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}
  3. 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}

Leave a Reply