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.

Possible Duplicate:
Continuous v. per-chapter/section numbering of figures, tables, and other document elements

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.

share|improve this question

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 3

  • 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.

share|improve this answer

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___.

share|improve this answer

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.

share|improve this answer

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