Page 1 of 1

Figure numbering

Posted: Wed Oct 30, 2024 7:34 pm
by JeeWee
Hi,
I am trying to generate figure numbers in Webhelp output. Table numbers are generated, but figures only get a 'Figure" text in front of the title. I searched the forum and found similar questions, but the given solutions don't work anymore.
I don't understand why this is not enabled. For a PDF you could argue that restarting numbering in each topic for figures would be confusing, but on a web page referring to a figure in the same topic wouldn't hurt. Besides, the same applies to tables, and tables DO have a number (and are also generated starting with number 1 in each topic???.
The odd thing is that I can create a reference to a table formatted with a number ('Figure 1'), but there is no way to enter this text in the figure title...

Best regards,
Jan Willem Rouwendal

Re: Figure numbering

Posted: Thu Oct 31, 2024 11:39 am
by alin
Hello,

The figures numbers are present in the HTML page but they are hidden by default by the WebHelp's CSS styles.

If you want to override this behavior you must contribute a custom CSS to the WebHelp output containing the following rule:

Code: Select all

span.fig--title-label-number {
  display: initial;
}
For more details about contributing a custom CSS see this topic.


Regards,

Alin

Re: Figure numbering

Posted: Thu Oct 31, 2024 3:15 pm
by JeeWee
That indeed solved it. Thanks a lot!

Best regards,
Jan Willem Rouwendal