Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am having trouble formatting my list of figures and list of tables.

Currently, my tex document is printing the list in the following manner:

1 Foreign Key Constraint Problem Due to Improper Table Design. . . . 3

2 Application Flow of Territory Maintenance Tool. . . . . . . . . . . . . 4

But I want to number figures by their sections:

3.1.2 Foreign Key Constraint Problem Due to Improper Table Design

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Your question is the counterpart of this one. So: use the chngcntr package.

\documentclass{report}

\usepackage{chngcntr}
\counterwithin{figure}{section}

\begin{document}

\listoffigures

\chapter{foo}

\section{bar}

\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{A figure}
\end{figure}

\end{document}
share|improve this answer
    
awesome, your solution worked perfectly! –  Midnight Blue May 1 '11 at 22:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.