Graphics, Figures & TablesAdd word "Figure" to number in List of Figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
spindal
Posts: 3
Joined: Mon Feb 09, 2009 7:41 pm

Add word "Figure" to number in List of Figures

Post by spindal »

I am writing my thesis in LaTex and the thesis formatting requires the word "Figure" and "Table" to be present in each line

i.e.
Figure 2.1: Test Problem 1 ...................................... 34
Figure 2.2: Test Problem 2 ...................................... 35

Currently, I have
2.1 Test Problem 1 ...................................... 34
2.2 Test Problem 2 ...................................... 35

Using the following code:

Code: Select all

% LIST OF FIGURES
%
% Single-space list of figures, add it to the table of contents.
\def\listoffigures{\@restonecolfalse
  \if@twocolumn\@restonecoltrue\onecolumn\fi

\begin{center}
    {\large \bfseries  \listfigurename}
\end{center}

   \addcontentsline{toc}{chapter}{\listfigurename}
   {\ssp\@starttoc{lof}}\if@restonecol
    \twocolumn\fi}

\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}

% LIST OF TABLES
%
\def\listoftables{\@restonecolfalse
  \if@twocolumn\@restonecoltrue\onecolumn\fi
   \@starttoc{lot}\if@restonecol
  \twocolumn\fi}
\def\listoftables{\@restonecolfalse
  \if@twocolumn\@restonecoltrue\onecolumn\fi

\begin{center}
    {\large \bfseries  \listtablename}
\end{center}

   \addcontentsline{toc}{chapter}{\listtablename}
   {\ssp\@starttoc{lot}}\if@restonecol
  \twocolumn\fi}


\let\l@table\l@figure
I have limited knowledge when it come to LaTex formatting. The code above is part of larger cls file past down through my department and I'm not sure how to edit it to get what I want.

-any ideas?

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

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

Add word "Figure" to number in List of Figures

Post by localghost »

Search the forum for the tocloft package. There already exist some solutions for your problem.


Best regards and welcome to the board
Thorsten¹
Post Reply