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
Second-level heading number appears as 0.
Re: Second-level heading number appears as 0.
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:
I think that should increment your numbering correctly in your H3.
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+}';
Eric S.
-
- Sr. Propeller Head
- Posts: 248
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: Second-level heading number appears as 0.
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:
See https://help.madcapsoftware.com/flare20 ... amples.htm
Hope that helps,
Rob
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+}';
See https://help.madcapsoftware.com/flare20 ... amples.htm
Hope that helps,
Rob
Re: Second-level heading number appears as 0.
Hi Rob,robdocsmith wrote:
[*]Try prefixing autonumber defintions with a "CH:" like this:
Prefixing "CH:" is working as expected. Thanks a lot for your help.