Table counter variable

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
John Johann
Posts: 305
Joined: Mon Aug 21, 2017 7:35 pm

Table counter variable

Unread post by John Johann »

Hi,
I have a caption in the paragraph above my tables which uses a language specific variable for Table/Tabelle/etc. and the HMTBLCOUNTER variable for the number.
That looks fine in PDF output, but I'd like to also have the captions above the tables in CHM output.

Code: Select all

(from memory, it looks something like this)
<para style="TableCaption"><%TABCAP%> <%HMTBLCOUNTER%>: <tab/>I am a table caption</para>
Is it possible to automatically replace the <%HMTBLCOUNTER%> variable on publishing the CHM, e.g. with a space or nothing?

The caption editor doesn't like an IF condition around the variables and I don't want to do that anyway as I am trying to reduce complexity and have a lot of tables. I also don' want an IF condition around the whole paragraph (again due to complexity, translation, maintenance, ...)
User avatar
Tim Green
Site Admin
Posts: 7819
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Table counter variable

Unread post by Tim Green »

John Johann wrote: Thu May 16, 2024 7:24 pm Is it possible to automatically replace the <%HMTBLCOUNTER%> variable on publishing the CHM, e.g. with a space or nothing?
No, because that's a special variable that is only handled by HM on publishing. You can't intervene in what it does. And since IfDefs aren't supported in captions your only option here is really to have two versions of the caption with IfDefs to choose which one to use in CHM and PDF publishing. 8)
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