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 want the figures and tables to be numbered 1, 2, 3, ... until the end of the document instead of 1.1, 1.2, ... in chapter I, 2.1, 2.2, ... in chapter II and so on.

I know how to convert the "chapter" part of figure/table numbers from Roman to arabic:

\renewcommand \thefigure
    {\ifnum \c@chapter>\z@ \@arabic\c@chapter.\fi \@arabic\c@figure}
\renewcommand \thetable
    {\ifnum \c@chapter>\z@ \@arabic\c@chapter.\fi \@arabic\c@table}

One could modify the above code in order to remove the "chapter" part, but the figure/table counters would still be reset to 0 at the start of new chapters.

share|improve this question
add comment

1 Answer

up vote 10 down vote accepted

Use the chngcntr package for avoiding the counter reset per chapter:

\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}

It's very similar to @lockstep's answer here, and you can do it similarly regarding sections in classes which are not based on chapter, such as here also with LyX: How to control figure numbering in LyX.

share|improve this answer
 
From now on, this should be used as canonical answer. ;-) –  lockstep Sep 10 '11 at 13:24
 
sorry Stefan and Lockstep. my english is so bad (I'm Indonesian, so difficult to find some help about latex in my countri). Your answer is great. :-) –  Verly Sep 10 '11 at 13:44
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.
http://tex.stackexchange.com/questions/28019/continuous-numbering-of-figures-and-tables?answertab=votes
tex.stackexchange.com
crawl=CC-MAIN-2014-10
64537
application/http; msgtype=response
sha1:NILHL6SPEABLTPT6L2H2POA3YYHSIQ2O
<urn:uuid:29136650-267f-45be-ade6-bf6a204ff9b3>
2014-03-17T19:05:04Z
198.252.206.140
sha1:LQPQSADIUXS4YUWXY26NNOT67P33ZWK3
<urn:uuid:b0a8af80-9218-43fd-9014-6f72fe691edc>
http://tex.stackexchange.com/questions/28019/continuous-numbering-of-figures-and-tables?answertab=votes
response
<urn:uuid:b211f142-4e24-48cb-b770-2ffb1adda38a>
robots: classic
hostname: ip-10-183-142-35.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-10
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for March 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf