Hi, I need the numbers of figures, tables etc on my List of Figures, List of Tables etc to look like this:
List of Figures
Figure 1 - Caption of fig 1 .... x
Figure 2 - Caption of fig 2 .... y
Figure 3 - Caption of fig 3 .... z
====
List of Tables
Table 1 - Caption of tab 1 .... a
Table 2 - Caption of tab 2 .... b
How do I insert "Figure" and "Table" before the numbers?
Graphics, Figures & Tables ⇒ LoF numbers starting with "Figure x"
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
LoF numbers starting with "Figure x"
I always wonder what else the reader would expect than figures in the LoF and tables in the LoT that makes this prefix necessary. However, I See three possible solutions depending on the used document class.
Thorsten
- The tocloft package (for use with the standard classes).
Code: Select all
Code, edit and compile here:\documentclass[11pt,a4paper]{report}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{tocloft}\addtolength{\cftfignumwidth}{3em}\renewcommand{\cftfigpresnum}{\figurename\ }\addtolength{\cfttabnumwidth}{3em}\renewcommand{\cfttabpresnum}{\tablename\ }\begin{document}\listoffigures\listoftables\chapter{Foo}\begin{figure}[!ht]\centering\rule{6.4cm}{3.6cm}\caption{Dummy figure}\label{fig:dummy}\end{figure}\begin{table}[!ht]\centering\rule{6.4cm}{3.6cm}\caption{Dummy table}\label{tab:dummy}\end{table}\end{document} - The classes of KOMA Script have a built-in feature.
Code: Select all
Code, edit and compile here:\documentclass[%listof=entryprefix,captions=tableabove]{scrreprt}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\begin{document}\listoffigures\listoftables\chapter{Foo}\begin{figure}[!ht]\centering\rule{6.4cm}{3.6cm}\caption{Dummy figure}\label{fig:dummy}\end{figure}\begin{table}[!ht]\centering\caption{Dummy table}\label{tab:dummy}\rule{6.4cm}{3.6cm}\end{table}\end{document} - The memoir class has built-in features very similar to those of the tocloft package.
Code: Select all
Code, edit and compile here:\documentclass[11pt,a4paper]{memoir}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\addtolength{\cftfigurenumwidth}{3em}\renewcommand{\cftfigurepresnum}{\figurename\ }\addtolength{\cfttablenumwidth}{3em}\renewcommand{\cfttablepresnum}{\tablename\ }\begin{document}\listoffigures\listoftables\chapter{Foo}\begin{figure}[!ht]\centering\rule{6.4cm}{3.6cm}\caption{Dummy figure}\label{fig:dummy}\end{figure}\begin{table}[!ht]\centering\rule{6.4cm}{3.6cm}\caption{Dummy table}\label{tab:dummy}\end{table}\end{document}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10