To list my figures, I used \listoffigures and the result looks like
1.1 xyza ......... 12
1.2 abc2 ......... 14
2.1 bacd ......... 17
2.2 bace ......... 18
.
.
.
6.1 xxxx ......... 40
However, I am trying to list my figures like
Figure 1 xyza ......... 12
Figure 2 abc2 ......... 14
Figure 3 bacd ......... 17
Figure 4 bace ......... 18
.
.
Figure n xxxx ......... 40
For this I tried the following:
\usepackage{tocloft}
\renewcommand{\cftfigfont}{Figure }
This adds ‘Figure ’ before 1.1, 1.2 2.1, 2.2, . . ., 6.1. To change (1.1, 1.2, 2.1, 2.2, . . ., 6.1) to (1, 2, 3, . . ., n) in the list of figures, I tried using
\renewcommand{\thefigure}{\arabic{figure}.}
and it do changes to 1, 2, 3, . . . But the numbering 1, 2, 3, . . . again starts when a new chapter starts and moreover the entries in the figure caption also changes which I don't want. So, how to get a continuous figure number, irrespective of chapter in the list of figures and without any changes in the figure caption.
Best Answer
The macro
\mycaption
uses\thefigure
for captions and\arabic{figure}
for thelof
(plus a few other formatting changes). Note that\@captype
can befigure
ortable
.If you don't want to rename all your
\caption
s to\mycaption
, just useinstead. However,
\caption*
will no longer work.Odds are the figure counter is being reset to 0 at the start of each chapter, in which case you will need to use a different counter.
Finally, I despise this programming style, as it is almost unreadable. So for my own peace of mind: