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

This forum is for all Flare issues not related to any of the other categories.

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

Postby cdahlgren70 on Mon Sep 09, 2019 8:49 am

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.
cdahlgren70
Jr. Propeller Head
 
Posts: 2
Joined: Mon Sep 09, 2019 8:16 am

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

Postby Dave Lee on Wed Sep 11, 2019 12:02 am

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.
Dave Lee
Master Propellus Maximus
 
Posts: 5641
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

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

Postby cdahlgren70 on Wed Sep 11, 2019 6:39 am

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.
cdahlgren70
Jr. Propeller Head
 
Posts: 2
Joined: Mon Sep 09, 2019 8:16 am

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

Postby Dave Lee on Thu Sep 12, 2019 1:45 am

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.
Dave Lee
Master Propellus Maximus
 
Posts: 5641
Joined: Mon Mar 05, 2007 8:33 am
Location: UK


Return to Flare's General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests