Figure numbering

Are you missing a feature? Request its implementation here.
JeeWee
Posts: 8
Joined: Mon Jan 29, 2024 4:25 pm

Figure numbering

Post 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
alin
Site Admin
Posts: 273
Joined: Thu Dec 24, 2009 11:21 am

Re: Figure numbering

Post 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
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
JeeWee
Posts: 8
Joined: Mon Jan 29, 2024 4:25 pm

Re: Figure numbering

Post by JeeWee »

That indeed solved it. Thanks a lot!

Best regards,
Jan Willem Rouwendal
Post Reply