Hi all,
I'm single sourcing two PDF documents from the one Flare project. These two documents share a TOC. Everything in the TOC should appear in document 1, while not all topics should appear in document 2. As a result, I condition tagged certain topics in the TOC not to appear in document 2. This seems to be causing a problem with my numbering - when I generate the PDF output for document 2, the numbering on my H2 headers starts at 1.4. I condition tagged 1.1, 1.2 and 1.3 not to appear in document 2, but the numbering doesn't seem pick up on this.
I've messed around with Printed Output and Auto-numbers in the Properties but had no luck. Here is what the current settings look like:
Any help on the matter would be greatly appreciated.
Kind regards,
Louise
Condition tags in TOC causing numbering problem
Condition tags in TOC causing numbering problem
You do not have the required permissions to view the files attached to this post.
-
Rene Severens
- Sr. Propeller Head
- Posts: 210
- Joined: Mon Sep 19, 2011 2:06 am
- Location: Netherlands - Zoetermeer
- Contact:
Re: Condition tags in TOC causing numbering problem
Hi,
This information is to less to figure out what is causing the problem.
I am working with a project that only generates PDF output, with multiple targets using multiple and shared TOCs.
To keep the heading numbering correct, I use the next technique (if you can call it that):
In the used stylesheet, define the headings. Use a global number format like this:
h1 {
..... // left out some
mc-auto-number-offset: 32mm;
mc-auto-number-position: outside-head;
mc-auto-number-format: 'GH:{n+} ';
}
h1 {
..... // left out some
mc-auto-number-offset: 32mm;
mc-auto-number-position: outside-head;
mc-auto-number-format: 'GH:{n}.{n+} ';
page-break-after: avoid;
}
h3 {
..... // left out some
mc-auto-number-offset: 32mm;
mc-auto-number-position: outside-head;
mc-auto-number-format: 'GH:{n}.{n}.{n+} ';
page-break-after: avoid;
mc-heading-level: 0; //note: this heading should not show up in the table of contents //
}
On the Target - tab Advanced - Generated TOC: Check Use TOC depth for heading levels
In the TOC each topic is positioned at that level, the heading should be used, so
a topic that starts a chapter and should get a heading1 is positioned in the root.
a topic that is inside this chapter and should get a heading2 is positioned inside the above topic (so the first chapter topic now is shown as a book inside the TOC)
a topic that is inside this chapter and should get a heading3 is positioned inside the above topic (so the second topic is shown as a book inside a book inside the TOC)
etc.
topics at the same level inside a "book" will get the same heading level.
ONLY for each topic (can be a book or a topic inside the TOC) at the root level, THAT STARTS A NEW CHAPTER (so showing heading1)
Right-click this topic and set the properties for Printer output as follows:
-Break type: Chapter break
-page number: Increment number
- section break: clear this option (it is not used for PDF output anyway but this way I avoid any interference that might be caused by this option checked)
On tab Autonumbers:
- Chapter Number: select Increment number
- Volume number: Select Same as Previous (this option is not used anyway)
- Section number: select Increment number
==> For all these sections: at Reset to: clear these fields.
FOR ANY OTHER topic (topic or book in the TOC) - NOT AT ROOT level: No properties should be changed for printed output;
-> Select Break Type = None. (all other sections will be read only)
Each topic that is positioned inside the TOC should be written all using a heading1 for title. The position inside the TOC will take care of replacing the correct heading level, so you don't need to worry anymore about what headinglevel to use inside a topic. Even if using the same topic inside 2 different TOC's at a different level, the positioning inside the TOC will take care of replacing the H1 used in the topic by the correct Hx level that must be shown.
To not show a topic used in a TOC, you now can right-click that topic inside the TOC and use a condition to exclude this topic form the output. If excluded the topic that is shown as a book inside the TOC, all topics inside that book will be excluded also.
The TOC (adjusted for copyright reasons) looks like this:
I hope this is somehow helpful to you.
Greetings,
Rene Severens
This information is to less to figure out what is causing the problem.
I am working with a project that only generates PDF output, with multiple targets using multiple and shared TOCs.
To keep the heading numbering correct, I use the next technique (if you can call it that):
In the used stylesheet, define the headings. Use a global number format like this:
h1 {
..... // left out some
mc-auto-number-offset: 32mm;
mc-auto-number-position: outside-head;
mc-auto-number-format: 'GH:{n+} ';
}
h1 {
..... // left out some
mc-auto-number-offset: 32mm;
mc-auto-number-position: outside-head;
mc-auto-number-format: 'GH:{n}.{n+} ';
page-break-after: avoid;
}
h3 {
..... // left out some
mc-auto-number-offset: 32mm;
mc-auto-number-position: outside-head;
mc-auto-number-format: 'GH:{n}.{n}.{n+} ';
page-break-after: avoid;
mc-heading-level: 0; //note: this heading should not show up in the table of contents //
}
On the Target - tab Advanced - Generated TOC: Check Use TOC depth for heading levels
In the TOC each topic is positioned at that level, the heading should be used, so
a topic that starts a chapter and should get a heading1 is positioned in the root.
a topic that is inside this chapter and should get a heading2 is positioned inside the above topic (so the first chapter topic now is shown as a book inside the TOC)
a topic that is inside this chapter and should get a heading3 is positioned inside the above topic (so the second topic is shown as a book inside a book inside the TOC)
etc.
topics at the same level inside a "book" will get the same heading level.
ONLY for each topic (can be a book or a topic inside the TOC) at the root level, THAT STARTS A NEW CHAPTER (so showing heading1)
Right-click this topic and set the properties for Printer output as follows:
-Break type: Chapter break
-page number: Increment number
- section break: clear this option (it is not used for PDF output anyway but this way I avoid any interference that might be caused by this option checked)
On tab Autonumbers:
- Chapter Number: select Increment number
- Volume number: Select Same as Previous (this option is not used anyway)
- Section number: select Increment number
==> For all these sections: at Reset to: clear these fields.
FOR ANY OTHER topic (topic or book in the TOC) - NOT AT ROOT level: No properties should be changed for printed output;
-> Select Break Type = None. (all other sections will be read only)
Each topic that is positioned inside the TOC should be written all using a heading1 for title. The position inside the TOC will take care of replacing the correct heading level, so you don't need to worry anymore about what headinglevel to use inside a topic. Even if using the same topic inside 2 different TOC's at a different level, the positioning inside the TOC will take care of replacing the H1 used in the topic by the correct Hx level that must be shown.
To not show a topic used in a TOC, you now can right-click that topic inside the TOC and use a condition to exclude this topic form the output. If excluded the topic that is shown as a book inside the TOC, all topics inside that book will be excluded also.
The TOC (adjusted for copyright reasons) looks like this:
I hope this is somehow helpful to you.
Greetings,
Rene Severens
You do not have the required permissions to view the files attached to this post.
"The numbers are strange today; they somehow do not seem to add up."