Chapter-related figure - numbers

Issue #10 closed
Former user created an issue

``` I am using the classicthesis template to write my PhD thesis and observed that figures are numbered continously through all chapters (Fig. 1 ... Fig xxx).

Is there an option to allow chapter-wise figure numbering like:

Chapter 1 Fig. 1.1 Fig. 1.2

Chapter 2 Fig. 2.1 ...

Thank you for your help (I am not sure if thi is an issue ith the template of just me who did not find the apropriate option ...) -Mike ```

Original issue reported on code.google.com by `michael.m.kraemer` on 2010-08-12 08:37:36

Comments (7)

  1. Former user Account Deleted

    ``` I had the similar problem, and I resolved it including the chngcntr package.

    Then, after \begin{document} I inserted \counterwithin{figure}{chapter}. It also works for listings \counterwithin{lstlisting}{chapter}, and I suppose that it'll work for tables too. ```

    Original issue reported on code.google.com by `francesc.vila` on 2010-08-21 15:36:22

  2. Former user Account Deleted

    ``` Thanks for your answer, that solves the problem. As you supposed it works equally well for tables. I think it would be a good idea to include this package to ClassicThesis, because in my opinion figure and table numbering per chapter are quite frequently used. -Mike ```

    Original issue reported on code.google.com by `michael.m.kraemer` on 2010-08-22 11:27:16

  3. André Miede repo owner

    ``` Thanks for the feedback and the solution outline.

    I'll try to put a new option for this issue into the next version of classicthesis.

    Cheers,

    André ```

    Original issue reported on code.google.com by `amiede` on 2010-08-22 13:31:24

  4. Former user Account Deleted

    ``` There's a part of the code that prevents resetting table and figure numbers, it's in classicthesis-ldpkg.sty: \RequirePackage{remreset} \makeatletter \ifthenelse{\boolean{cld@nochapters}}% {\relax}{% \@removefromreset{table}{chapter} % requires remreset package } \renewcommand{\thetable}{\arabic{table}} \makeatother \makeatletter \ifthenelse{\boolean{cld@nochapters}}% {\relax}{% \@removefromreset{figure}{chapter} % requires remreset package } \renewcommand{\thefigure}{\arabic{figure}} \makeatother

    ```

    Original issue reported on code.google.com by `ivo.pletikosic` on 2010-09-27 08:06:32

  5. André Miede repo owner

    ``` Happy New Year!

    v2.9 has a new option for that: floatperchapter This takes also care of listings (if the listings package is used).

    I'll run some tests and fix some other things, but v2.9 will be released soon, I hope :-)

    Cheers,

    André ```

    Original issue reported on code.google.com by `amiede` on 2011-01-01 13:15:01 - Labels added: Type-Enhancement - Labels removed: Type-Defect

  6. André Miede repo owner

    ``` (No text was entered with this change) ```

    Original issue reported on code.google.com by `amiede` on 2011-01-01 18:48:13

  7. Log in to comment