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.

Usually figures 1,2,3 of chapter n appears as "n.1, n.2, n.3" in main text and in List of Figures (lof) but this format is not respected if n <= 0, in this case figures appear simply as "1, 2, 3" and the correct format "n.x" show up again only when n > 0.

share|improve this question
    
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. –  Andrew Uzzell Oct 12 '12 at 15:53
    
This is true in the standard book class, but scrbook gives the "expected" nubbering Figure -1.1 etc. Not sure why you would want that though. –  Andrew Swann Oct 12 '12 at 16:06

1 Answer 1

In book.cls you can find the following code:

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

This sets the behavior you see. If you want to change it, just redefine \thefigure, deleting the check for positive chapter number:

\makeatletter
\renewcommand \thefigure
         {\thechapter.\@arabic\c@figure}
\makeatother

You need the \makeatletter-\makeatother pair because the code uses @.

Note that neither the standard behavior nor the one you want is, strictly speaking, "better": this is the question of taste. For me "Figure 0.4" or "Figure -1.5" look strange - but if these are your requirements, go ahead and implement them.

share|improve this answer
    
Works! many thanks (btw: I needed Figure 0.4 for the prologue...) –  Marco Budinich Oct 13 '12 at 10:32

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.