Autonumbering A Heading - Globally

This forum is for all Flare issues related to styles, stylesheets and XML.

Autonumbering A Heading - Globally

Postby MaxTraining on Mon Apr 23, 2018 10:22 am

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.
MaxTraining
Jr. Propeller Head
 
Posts: 3
Joined: Mon Apr 23, 2018 10:11 am

Re: Autonumbering A Heading - Globally

Postby SteveS on Mon Apr 23, 2018 3:15 pm

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.
SteveS
Propellus Maximus
 
Posts: 1923
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).

Re: Autonumbering A Heading - Globally

Postby MaxTraining on Wed Apr 25, 2018 8:45 pm

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
MaxTraining
Jr. Propeller Head
 
Posts: 3
Joined: Mon Apr 23, 2018 10:11 am

Re: Autonumbering A Heading - Globally

Postby SteveS on Thu Apr 26, 2018 3:14 pm

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.
SteveS
Propellus Maximus
 
Posts: 1923
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).

Re: Autonumbering A Heading - Globally

Postby MaxTraining on Thu Apr 26, 2018 3:47 pm

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
MaxTraining
Jr. Propeller Head
 
Posts: 3
Joined: Mon Apr 23, 2018 10:11 am


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 5 guests