Page 1 of 1

Is it possible to add a variable in the auto-number format?

Posted: Mon Sep 09, 2019 8:49 am
by cdahlgren70
Hi, I'm using the following auto-number format:
GJ:Appendix {R+}
Is it possible to replace "Appendix" with a variable so that other language builds (non-English) would insert the appropriate translated word?
I would enter "Appendix" in my Variables file - which is translated.

Re: Is it possible to add a variable in the auto-number form

Posted: Wed Sep 11, 2019 12:02 am
by NorthEast
Edit the CSS file in text mode, and insert your variable in this format:

Code: Select all

mc-auto-number-format: '[%=VariableFile.VariableName%]';
I was actually surprised that this works, as Flare doesn't let you insert variables from the stylesheet editor.

Re: Is it possible to add a variable in the auto-number form

Posted: Wed Sep 11, 2019 6:39 am
by cdahlgren70
Dave Lee wrote:Edit the CSS file in text mode, and insert your variable in this format:

Code: Select all

mc-auto-number-format: '[%=VariableFile.VariableName%]';
I was actually surprised that this works, as Flare doesn't let you insert variables from the stylesheet editor.
Hi Dave, thanks! Unfortunately, this only seems to work for HTML5 outputs. I tried it with a PDF output and it doesn't work. I just heard back from MadCap Flare support and they said the PDF support for this feature might be available in a future patch or release.

Re: Is it possible to add a variable in the auto-number form

Posted: Thu Sep 12, 2019 1:45 am
by NorthEast
cdahlgren70 wrote:Hi Dave, thanks! Unfortunately, this only seems to work for HTML5 outputs. I tried it with a PDF output and it doesn't work. I just heard back from MadCap Flare support and they said the PDF support for this feature might be available in a future patch or release.
Ah, ok. I only checked with a HTML5.
I don't think MadCap officially support this for HTML5, as you can only do this with a manual hack, and it's not documented anywhere.

I know MadCap mentioned they might do this, but I'd still suggest putting in a feature request to support the use of variables in stylesheets - for use with auto numbers, or any other style property.