Autonumbering A Heading - Globally

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
MaxTraining
Jr. Propeller Head
Posts: 3
Joined: Mon Apr 23, 2018 10:11 am

Autonumbering A Heading - Globally

Post by MaxTraining »

I am doing a training guide and I need to number the exercises sequentially through the entire project.
How do I make a heading that will do this?
What are the settings? IS there a tutorial on this?
Thanks for any help you can offer.

Sincerely,
You do not have the required permissions to view the files attached to this post.
SteveS
Senior Propellus Maximus
Posts: 2087
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Autonumbering A Heading - Globally

Post by SteveS »

Hi Max,

Welcome to the forums :D

You've answered your own question in the title, you need to use autonumbering.

There are lots of threads on autonumber, or you can use Flare's help function. A Google search for

Code: Select all

autonumber site:forums.madcapsoftware.com
will bring up a heap of useful information. Or you can use Dave lee's search plugin if you prefer.
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
MaxTraining
Jr. Propeller Head
Posts: 3
Joined: Mon Apr 23, 2018 10:11 am

Re: Autonumbering A Heading - Globally

Post by MaxTraining »

Thank you for your reply.

I found this to be the most helpful post.
viewtopic.php?f=6&t=12866&p=72101

I added a chapter number to the main heading.

Code: Select all

GH:Chapter {Gn+} - 
And then I used this code to get the exercises autonumber in each chapter with a special style:

Code: Select all

[code]GH:Exercise {Gn}-{n+} 
[/code]

Chapter 1
Exercise 1-1
Exercise 1-2

Chapter 2
Exercise 2-1
Exercise 2-2

And so on.

The one issue that I was very surprise about was that the editor did not preview correctly.
Everything was chapter 1. But when I output to PDF was correct, all the proper number was used.
So don't believe the preview, it may just be working! Surprise!

Sincerely,
Mary Ann Fugier
SteveS
Senior Propellus Maximus
Posts: 2087
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Autonumbering A Heading - Globally

Post by SteveS »

Hi Mary Ann,

The thing to remember with autonumbering is that it is 'calculated' when the project is built. In essence as the build adds another topic it applies the autonumber.

When you preview the topic within the Flare environment the topic is built and sent to a browser (within Flare) but it does not take into account other topics using the autonumber sequence.
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
MaxTraining
Jr. Propeller Head
Posts: 3
Joined: Mon Apr 23, 2018 10:11 am

Re: Autonumbering A Heading - Globally

Post by MaxTraining »

Hi Steven,
The thing to remember with autonumbering is that it is 'calculated' when the project is built. In essence as the build adds another topic it applies the autonumber.
Yes - that is what I found out after a few attempts.
But you described it much better than I. 8)

Thanks,
Mary Ann Fugier
Post Reply