# labeling tables per chapter both in the body and in toc [duplicate]

How can I label the tables per chapter in document class report rather than the continuous numbering in both the body and in the list of tables. I am writing a thesis. I have tried a few tricks but they did not work. I have tried:

\usepackage{chngcntr}
\counterwithin{table}{section}


But it displyed 'chngcntr.sty' not found.

I also want to write 'chapter one' instead of 'chapter 1' using:

\renewcommand{\thechapter}{\Numberstring{chapter}} % for lowercase one, two, three, ...
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}


But it displayed 'fmtcount.sty' not found.

Are there other things I can do or where did I get it wrong? Please assist.

-

## marked as duplicate by lockstep, Joseph Wright♦Nov 30 '11 at 12:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Welcome to TeX.sx! A tip: If you indent lines by 4 spaces or enclose words in backticks , they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). –  doncherry Nov 2 '11 at 10:58
This site works best if you ask one question at a time. I'd suggest you remove of your question and post it as a separate question. –  N.N. Nov 2 '11 at 11:14

## 3 Answers

• You could install the chngcntr package either with your TeX distribution package manager or manually from CTAN.

• Or use amsmath instead, which is installed for sure, it provides also a command for numbering within chapters or sections etc.:

\usepackage{amsmath}
\numberwithin{table}{chapter}


I recommend to adjust also the numbering of other environments such as tables or equations, to get a consistent numbering style in your document.

-

The error message xxx.sty not found indicates that the package you're trying to load is not installed on your system. Depending on whether you're using MiKTeX or TeX Live, you'll find help on installing packages at http://docs.miktex.org/faq/packages.html or at http://www.tug.org/texlive/doc/tlmgr.html#install__option_____pkg___.

-

Tables are numbered after chapters in report. Try e.g. the following

\documentclass{report}

\begin{document}

\chapter{Chapter 1 title}

\begin{table}
\caption{Caption for table in chapter 1}
\end{table}

\chapter{Chapter 2 title}

\begin{table}
\caption{Caption for first table in chapter 2}
\end{table}

\begin{table}
\caption{Caption for second table in chapter 2}
\end{table}

\listoftables

\end{document}
`

which labels the first table as 1.1, the second as 2.1 and the third as 2.2.

-