Figure Numbering placeholders

Hi all!

After your wonderful help with the heading numbering, I’m trying my luck here again for a figure numbering issue in my thesis. The figure number should have the format Figure 1.1 for the first figure in chapter one, increasing by one increment for each figure regardess of the section, but restarting on 2.1 in the next chapter. My current setup gives me 1.1, 2.2, 3.3 etc within the same Chapter. How can I fix it? Any help greatly appreciated!

Here’s my current placeholder setup

Figure <$n:chapter>.<$n:figure> - Taxonomy of Contemporary Practices

Best, Elisabeth

Hi.

[EDIT : There is a much cleaner answer in the next post.]

<$rst><$n:figure> at the begining of your chapters. You can put it in the title suffix (so if you have sub-documents for a single chapter, having no title it won’t reset, as intended).

. . . . . . .
As for the chapter number, it should be <$n#chapter> so that it doesn’t +1 each time.
→ # instead of :

. . . . . . .
P.S. I recall that the <$rst> placeholder is not quite acting as it should. So that might render my reply about <$rst><$n:figure> wrong. I don’t recall having it figured out.
@AmberV would know.

…And I just ran a test, and I now believe that you couldn’t use it in the title suffix anyways, as it will output “1” in this location. You likely will have to reset wherever your first use of <$n:figure> is, within each chapters. [My test also confirms that <$rst> isn’t doing so well (Windows version).]

(Apologies for the approximation.)

2 Likes

<$rst_FIGURE> in your title’s suffix.

Then:
Figure <$n#chapter>.<$n:figure> ← wherever you have a figure in a chapter.

[Editing my previous post would turn it into a mess, I’ll leave it as it is.]

. . . . . . . .
[EDIT] Of course, for <$n#chapter> to work, you have to use <$n:chapter> for your chapters’ numbering.

1 Like

This renders it Figure ?.1, Figure ?.2 etc. tried it with and without the <$rst_FIGURE>.

Whatever you use where I’ve put <$n#chapter> has to match your chapters’ auto-numbering placeholder.

<$rst_FIGURE> should already be working.
Have a test document with
<$n:figure>
<$n:figure>
<$n:figure>
in it.

Dupicate that document and then compile them both with <$rst_FIGURE> in your title’s suffix.
You should get
Title
1
2
3
Title
1
2
3

2 Likes

Thanks for your help! I will have to take a closer look at that tomorrow.

I think I got it to work. Thank you!

1 Like

is there a way to crossreference figure numbers in placeholders? With a result after compile like “see figure 2.3 below”…?