Second-level heading number appears as 0.

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
muralisk
Jr. Propeller Head
Posts: 2
Joined: Thu Jun 03, 2021 8:02 am

Second-level heading number appears as 0.

Post by muralisk »

When I am trying to generate PDF with heading numbers, the numbering sequence is not working as it must.
h1
{
mc-auto-number-offset: 8mm;
mc-auto-number-position: inside-head;
mc-auto-number-format: '{chapnum}.';
}

h2
{
mc-auto-number-offset: 10mm;
mc-auto-number-format: '{chapnum}.{n+}';
mc-auto-number-position: inside-head;
}
h3
{
mc-auto-number-offset: 12mm;
mc-auto-number-format: '{chapnum}.{n}.{n+}';
mc-auto-number-position: inside-head;
}
And the output appears as:
1.
1.1
1.0.1

Any clues what is that I am doing wrong here?

Thanks,
Muralisk
EricS
Propeller Head
Posts: 39
Joined: Tue Sep 01, 2015 12:00 pm

Re: Second-level heading number appears as 0.

Post by EricS »

Welcome to the forums Muralisk.

Am I right in assuming your H1 and H2 number correctly?

My guess (if I am wrong hopefully someone will correct me) is that in this section for H3:

h3
{
mc-auto-number-offset: 12mm;
mc-auto-number-format: '{chapnum}.{n}.{n+}';
mc-auto-number-position: inside-head;
}

the second line should read:

Code: Select all

mc-auto-number-format: '{chapnum}.{n+}.{n+}';
I think that should increment your numbering correctly in your H3.
Eric S.
Image
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Second-level heading number appears as 0.

Post by robdocsmith »

Hi Muralisk,

Your css as written works for me on a minimal project. The {n} variable outputs the existing level of heading and {n+} increments a new heading level number.
Some things to check:
  • Are there any other autonumber formats in your CSS that may be affecting the output?
  • Are there auto-numbers defined in the TOC entries?
  • Try prefixing autonumber defintions with a "CH:" like this:

    Code: Select all

    mc-auto-number-format: 'CH:{chapnum}.';
    mc-auto-number-format: 'CH:{chapnum}.{n+}';
    mc-auto-number-format: 'CH:{chapnum}.{n}.{n+}';
This might help clarify that this numbering sequence is specific to your headings.
See https://help.madcapsoftware.com/flare20 ... amples.htm

Hope that helps,

Rob
muralisk
Jr. Propeller Head
Posts: 2
Joined: Thu Jun 03, 2021 8:02 am

Re: Second-level heading number appears as 0.

Post by muralisk »

robdocsmith wrote:
[*]Try prefixing autonumber defintions with a "CH:" like this:
Hi Rob,

Prefixing "CH:" is working as expected. Thanks a lot for your help.
Post Reply