Stylesheets icon indicating copy to clipboard operation
Stylesheets copied to clipboard

Figure numbering does not match across various Guidelines builds

Open martindholmes opened this issue 9 years ago • 3 comments

If you look at the current version of the PDF, p.202, 5.7.2 Figure 3, you'll see that the caption shows as:

Figure 3: Detail from p.62 of...

(ignoring for the moment the missing Japanese characters, which is the subject of Issue 148.)

In the web version, this is not Figure 3; it's Figure 5.2:

Figure 5.2. Detail from p.62 of ...

Even more puzzling, in the ePub it's Figure 2:

Figure 2. Detail from p.62 of ...

I don't know whether this is expected for some reason, but it's mighty confusing. I suggest that figure numbering should be aligned across all versions.

martindholmes avatar Apr 24 '16 21:04 martindholmes

The only way I can see of doing that would be to add explicit numbering in the source, presumably using the @n attribute. And then modify all the style sheets to use that number in preference to their own. And then remember to change the number when figures are added or removed. It might be less work to see why the numbering is currently coming out different...

lb42 avatar Dec 21 '16 16:12 lb42

A pre-processing step on the XML could assign the @n attributes automatically; then all the various output builds could use them. But we still need to figure out how it is that they're counting differently in the first place.

martindholmes avatar Dec 21 '16 16:12 martindholmes

Can we reproduce the problem now, or should we close this ticket?

ebeshero avatar Aug 15 '25 02:08 ebeshero