Graphics, Figures & Tables ⇒ LoF numbers starting with "Figure x"
-
- Posts: 2
- Joined: Fri Jul 01, 2011 8:57 pm
LoF numbers starting with "Figure x"
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?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
LoF numbers starting with "Figure x"
- The tocloft package (for use with the standard classes).
Code: Select all
\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
\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
\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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10