Numbering Weirdness - Losing Autonumbering
Numbering Weirdness - Losing Autonumbering
I've been working steadily on a project and things have been great so far, until the latest topic.
My H3 numbering has been working well, but suddenly broke mid document.
For example, my H3 numbering is now:
1.1.1.
1.1.2.
1.1.1.
1.1.1.
1.1.1.
1.1.1.
etc...
Nothing has changed with the style sheet and it works in all of the other topics. My H3 has this setting under Medium: Print:
mc-auto-number-format: CH:(chapnum).(n).(n+).
There are no section breaks or anything of that nature in the document.
Any thoughts or ideas?
My H3 numbering has been working well, but suddenly broke mid document.
For example, my H3 numbering is now:
1.1.1.
1.1.2.
1.1.1.
1.1.1.
1.1.1.
1.1.1.
etc...
Nothing has changed with the style sheet and it works in all of the other topics. My H3 has this setting under Medium: Print:
mc-auto-number-format: CH:(chapnum).(n).(n+).
There are no section breaks or anything of that nature in the document.
Any thoughts or ideas?
Re: Numbering Weirdness - Losing Autonumbering
A small update:
I looked at the Text Editor and everything looks the same for the h3 headings, but the numbers are all 1.1.1. after the 1.1.2. entry. I tried manually setting the h3 numbering after the 1.1.2. entry to 1.1.3. which it allows me to do as well as save it. When I look at the XML Editor, the number is still 1.1.1. and the Text Editor has reverted back to 1.1.1. instead of 1.1.3. as I manually configured it to be.
I looked at the Text Editor and everything looks the same for the h3 headings, but the numbers are all 1.1.1. after the 1.1.2. entry. I tried manually setting the h3 numbering after the 1.1.2. entry to 1.1.3. which it allows me to do as well as save it. When I look at the XML Editor, the number is still 1.1.1. and the Text Editor has reverted back to 1.1.1. instead of 1.1.3. as I manually configured it to be.
-
- Senior Propellus Maximus
- Posts: 3672
- Joined: Thu Feb 02, 2006 9:57 am
- Location: Pittsford, NY
Re: Numbering Weirdness - Losing Autonumbering
The important matter is how Flare calculates the numbers when it builds output, I assume a PDF. In the XML Editor and text editor, auto-numbers will always show their starting numbers in each level counter, e.g., Chapter 1, 1.1, or 1.1.1. I assume that the 1.1.2 you are seeing in a topic in the XML Editor is because you have more than one h3 in that topic, so Flare goes ahead and increments that second instance. And I’ll confirm that there is no point in manually editing an auto-number in the text editor. Flare is going to calculate the auto-numbers at build time.
Nita
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
-
- Propeller Head
- Posts: 37
- Joined: Thu Sep 15, 2022 7:40 am
Re: Numbering Weirdness - Losing Autonumbering
May I just continue in this topic instead of opening a new thread?
I have something similar. That is the situation.
I created a HTML output and for training we also have PDFs per level incl. References. The levels are numbered and the References have "Reference A - " in front of the topic header. Every level has its own TOC. Here all looks fine.
For reviewing and change requests we create also a PDF from the HTML. Here we use the TOC which is used for the HTML output. HTML output comes out as expected, but the numbering in the PDF is weird whenever H1 has a style added. It works fine in the individual PDFs, which we use for training, but not in the PDF with the full document.
1 Level 1 <-- H1
1.1 Topic 1 <-- H1
1.2 Topic 2 <-- H1
2 Level 2 <-- H1
2.1 Topic 3 <-- H1
2.2 Topic 4 <-- H1
3 References <-- H1.Reference
0.1 Topic 5 <-- H1.Reference
0.2 Topic 6 <-- H1.Reference
Please the screenshots, left is the online output and right the print output. The only difference is that the reference topic should have Reference ABC in front of the topic header.
The TOC shows nothing of that sort, but instead 0.1, 0.2 etc. The individual PDFs show the TOC correct. See the screenshots below. First is the TOC on the individual PDF and the second is the PDF of the full document.
Any idea what I am doing wrong here?
I have something similar. That is the situation.
I created a HTML output and for training we also have PDFs per level incl. References. The levels are numbered and the References have "Reference A - " in front of the topic header. Every level has its own TOC. Here all looks fine.
For reviewing and change requests we create also a PDF from the HTML. Here we use the TOC which is used for the HTML output. HTML output comes out as expected, but the numbering in the PDF is weird whenever H1 has a style added. It works fine in the individual PDFs, which we use for training, but not in the PDF with the full document.
1 Level 1 <-- H1
1.1 Topic 1 <-- H1
1.2 Topic 2 <-- H1
2 Level 2 <-- H1
2.1 Topic 3 <-- H1
2.2 Topic 4 <-- H1
3 References <-- H1.Reference
0.1 Topic 5 <-- H1.Reference
0.2 Topic 6 <-- H1.Reference
Please the screenshots, left is the online output and right the print output. The only difference is that the reference topic should have Reference ABC in front of the topic header.
The TOC shows nothing of that sort, but instead 0.1, 0.2 etc. The individual PDFs show the TOC correct. See the screenshots below. First is the TOC on the individual PDF and the second is the PDF of the full document.
Any idea what I am doing wrong here?
You do not have the required permissions to view the files attached to this post.
-
- Sr. Propeller Head
- Posts: 265
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: Numbering Weirdness - Losing Autonumbering
So the difference is in the TOC? The PDFs per level use a smaller TOC than the overall HTML output one?
My guess is that the smaller TOC has Auto-numbers defined for the topic containing H1.Reference along with Chapter breaks in the Printed Output tab. Compare the properties for reference topics in both TOCs and see if there are different defintions in the Auto-number and Printed Output tabs.
Rob
My guess is that the smaller TOC has Auto-numbers defined for the topic containing H1.Reference along with Chapter breaks in the Printed Output tab. Compare the properties for reference topics in both TOCs and see if there are different defintions in the Auto-number and Printed Output tabs.
Rob
-
- Propeller Head
- Posts: 37
- Joined: Thu Sep 15, 2022 7:40 am
Re: Numbering Weirdness - Losing Autonumbering
Here another issue with that autonumbering.
Is it connected to the depth?
Below I think that is as it should be...
Reference E
- E.1
- E.2
- E.3
-- E.3.1
-- E.3.2
- E.4
Any idea what I do wrong here?
Is it connected to the depth?
Below I think that is as it should be...
Reference E
- E.1
- E.2
- E.3
-- E.3.1
-- E.3.2
- E.4
Any idea what I do wrong here?
You do not have the required permissions to view the files attached to this post.
-
- Propeller Head
- Posts: 37
- Joined: Thu Sep 15, 2022 7:40 am
Re: Numbering Weirdness - Losing Autonumbering
Tried to edit my last post, but I get an error message. Therefore my addition here.
All topics which are listed under Reference or listed in Reference have the style H1.Reference.
All topics which are listed under Reference or listed in Reference have the style H1.Reference.
-
- Propeller Head
- Posts: 37
- Joined: Thu Sep 15, 2022 7:40 am
Re: Numbering Weirdness - Losing Autonumbering
Okay, I found the answer. It's hidden in the StyleSheet.
The header need to get an entry.
Example for my case would be:
h2.Reference
{
mc-auto-number-format: 'GA:{A}.{n+} ';
}
h3.Reference
{
page-break-before: avoid;
mc-auto-number-format: 'GA:{A}.{n}.{n+} ';
}
and so on, with every header level another {n}.
The header need to get an entry.
Example for my case would be:
h2.Reference
{
mc-auto-number-format: 'GA:{A}.{n+} ';
}
h3.Reference
{
page-break-before: avoid;
mc-auto-number-format: 'GA:{A}.{n}.{n+} ';
}
and so on, with every header level another {n}.
-
- Propeller Head
- Posts: 37
- Joined: Thu Sep 15, 2022 7:40 am
Re: Numbering Weirdness - Losing Autonumbering
Unfortunately, it was NOT the answer. I have a screenshot of the issue attached.
Can someone please give me some input?
Can someone please give me some input?
You do not have the required permissions to view the files attached to this post.
Re: Numbering Weirdness - Losing Autonumbering
Try using these autonumbering rules: https://gist.github.com/AlexJFox/96787d ... 1ccb5843dcZauberlehrling wrote: ↑Thu Nov 28, 2024 5:37 am Unfortunately, it was NOT the answer. I have a screenshot of the issue attached.
Can someone please give me some input?
TOC.PNG
-
- Propeller Head
- Posts: 37
- Joined: Thu Sep 15, 2022 7:40 am
Re: Numbering Weirdness - Losing Autonumbering
Thank you. I have noticed, that the points with the correct numbering aren't linked with a topic, and all the ones with the wrong numbering down from 9 are linked. All topic points before are correct, also their sub-topics.
Also I created another TOC with only part of the content and there all points are correct, as seen in the second last screenshot, where I thought the issue was resolved.
Also I created another TOC with only part of the content and there all points are correct, as seen in the second last screenshot, where I thought the issue was resolved.