<%HMFIGCOUNTER%> variable

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

<%HMFIGCOUNTER%> variable

Unread post by Ga Bowen »

Sorry, I seem to be posting on here all the time at the moment.

The <%HMFIGCOUNTER%> variable just outputs a blank space in pdf/html/anything.

The <%HMFIGCOUNTER-%> and <%HMFIGCOUNTER+%> variables seem to work though. :?
User avatar
Tim Green
Site Admin
Posts: 23181
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: <%HMFIGCOUNTER%> variable

Unread post by Tim Green »

Hi Gareth,

The problem here is that you are using the new figure counter variables on their own, and they are explicitly NOT incremented when you do that. They only increment when you use them in figure or table or toggle captions, or if you use them in the new Caption tool, which can also include them for incrementation. When they are used outside those places they don't increment, which makes it much easier to use them for references. See this page in the current help:

https://www.helpandmanual.com/help/hm_w ... rsref.html
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Re: <%HMFIGCOUNTER%> variable

Unread post by Ga Bowen »

OK, cheers.

It took me a while to get my head around counter tags initially, so the adjustment threw me a little.

Cheers, Tim.
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Re: <%HMFIGCOUNTER%> variable

Unread post by Ga Bowen »

What is the best practice for replacing table counters then?

Do I have to create a caption for each one?
User avatar
Tim Green
Site Admin
Posts: 23181
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: <%HMFIGCOUNTER%> variable

Unread post by Tim Green »

Ga Bowen wrote: Wed Feb 19, 2020 4:12 pm What is the best practice for replacing table counters then?
Do I have to create a caption for each one?
Yes, table counters require a caption. That can be inserted anywhere, including inside the table itself if you wish.

Note that the older, deprecated counter variables from HM7 will still work in the old way. However, we'd recommend updating them sooner rather than later as support for them will probably be removed eventually.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply