Autonumbering on topics not incrementing

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
netwrk219
Propeller Head
Posts: 26
Joined: Mon Nov 28, 2016 8:58 am
Location: Fort Mill, SC

Autonumbering on topics not incrementing

Post by netwrk219 »

Hi everyone!

I have another issue we are experiencing with Flare 12. We set up our different sections as topics, for example:
1. Overview
1.1 Machine Specs
1.2 Workspace
1.3 Definitions
2. Safety
2.1 Safety Gear Required
2.2 Safety Rules
3. Pre-operational Setup
3.1 Blah
3.2 Blah Blah
4. Operation
5. Shutdown

And so on...

Section 1 (including 1.1, 1.2, etc...) is one topic and the others follow that logic. When one of the other writers we work with set up the style sheets, the idea was that the h1 heading of each topic would display the correct section number. Instead, every topic is stuck on 1.

Here is the code used to try and get us what we need:

Code: Select all

h1
{
	font-weight: bold;
	margin-left: 0pt;
	font-size: 14pt;
	margin-top: 14pt;
	mc-heading-level: 1;
	mc-auto-number-class: Heading1;
	mc-auto-number-offset: .25in;
	/* mc-auto-number-format: 'H:{chapnum} '; */
	mc-auto-number-position: inside-head;
	mc-auto-number-format: 'H:{n+}  ';
}

h2
{
	font-weight: bold;
	font-size: 12pt;
	color: #000000;
	margin-top: 12pt;
	mc-heading-level: 2;
	mc-auto-number-offset: .5in;
	margin-left: 20pt;
	mc-auto-number-class: Heading2;
	mc-auto-number-format: 'H:{n}.{n+}  ';
	/* mc-auto-number-format: 'H:{chapnum}.{n+} '; */
	mc-auto-number-position: inside-head;
}

h3
{
	font-weight: bold;
	font-size: 12pt;
	color: #000000;
	margin-top: 12pt;
	mc-heading-level: 3;
	mc-auto-number-offset: .5in;
	margin-left: 20pt;
	mc-auto-number-class: Heading3;
	mc-auto-number-format: 'H:{n}.{n}.{n+}  ';
	/* mc-auto-number-format: 'H:{chapnum}.{n}.{n+}  '; */
	mc-auto-number-position: inside-head;
}

h4
{
	font-weight: bold;
	font-size: 12pt;
	color: #000000;
	font-style: italic;
	margin-top: 12pt;
	mc-heading-level: 4;
	mc-auto-number-offset: .5in;
	margin-left: 20pt;
	mc-auto-number-class: Heading4;
	mc-auto-number-format: 'H:{n}.{n}.{n}.{n+}  ';
	/* mc-auto-number-format: 'H:{chapnum}.{n}.{n}.{n+}  '; */
	mc-auto-number-position: inside-head;
}
We left some settings in, but commented them out so that if we ever wanted to play with them, they were still available to us.

I've been through the forums, looking at Autonumbering issues and even when I found some that resembled my own, the topic was 6-8 years old and the solution didn't apply any longer to Flare 12. I tried working with chapter numbers, global numbers, section, etc. and I haven't found a solution that works yet. I appreciate your time reading this and any guidance you may have.
Keith S.

“Most of us find our own voices only after we’ve sounded like a lot of other people.” –Neil Gaiman
SteveS
Senior Propellus Maximus
Posts: 2090
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 on topics not incrementing

Post by SteveS »

My first thought is mc-auto-number-class.

You don't need that for autonumbering to work, and if you have a class Heading1 defined in your style sheet you might see some funkiness, depending on where it is declared in relation to the autonumbering.
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
netwrk219
Propeller Head
Posts: 26
Joined: Mon Nov 28, 2016 8:58 am
Location: Fort Mill, SC

Re: Autonumbering on topics not incrementing

Post by netwrk219 »

SteveS wrote:My first thought is mc-auto-number-class.

You don't need that for autonumbering to work, and if you have a class Heading1 defined in your style sheet you might see some funkiness, depending on where it is declared in relation to the autonumbering.
Steve,

Thanks for your reply. Would you be able to expand on your explanation? We use the h1 tag to name the topic, so the h1 tag is only used once per topic at the top of the topic. If we don't need to use autonumbering, then how would we make that work? Sorry, I know these are newbie style questions, but the training we received didn't go into some of these issues we are having. The forums are a godsend.
Keith S.

“Most of us find our own voices only after we’ve sounded like a lot of other people.” –Neil Gaiman
SteveS
Senior Propellus Maximus
Posts: 2090
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 on topics not incrementing

Post by SteveS »

netwrk219 wrote:...Would you be able to expand on your explanation? ...
In each of your style declarations you are declaring a class, corresponding to the tag. For example H1 and heading 1; H2 and heading 2, etc

I don't think you need to make these declarations, I haven't in cases where I've used autonumbering, and if the class is defined elsewhere in your stylesheet it can change the way items are formatted.

Try commenting them out (or make a backup and delete them) to see what difference it makes.

And, if it works, backup and delete in the production environment. Commenting out declarations should only be used in an experiment, if its not needed delete it so other people don't get confused.

HTH
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
netwrk219
Propeller Head
Posts: 26
Joined: Mon Nov 28, 2016 8:58 am
Location: Fort Mill, SC

Re: Autonumbering on topics not incrementing

Post by netwrk219 »

Thank you. I get it now. I will try that.

Cheers!
Keith S.

“Most of us find our own voices only after we’ve sounded like a lot of other people.” –Neil Gaiman
Post Reply