Forum Discussion
I am able to get the incremental numbering when I insert external content with chapter and section. However, I want to insert external content only at section level which I am not able to do. Is it possible (or) is it something unrealistic? Please clarify
It definitely should be possible. The standard Aras samples use chapters and sections. I don´t use the chapters, just sections only. When you mention that numbering for external content is correct when you use chapters, have you looked at the CSS used for the chapters already? You should be able to reuse the settings for the sections elements.
- pnataraj036 years agoIdeator III
Thanks for your response. The problem I face is, after inserting as external content; if I want to go and insert any section underneath chapter, I am not able to do. Below is the CSS used by me.
Appreciate your help here.
Can you explain me with your CSS how you are able to achieve just for the sections only? I can draw some comparison with that.
/* Counter reset for Section and Figure Numbering used inside the technical document */
body {
counter-reset: sectionNum; /* Counter used for Chapter / Section numbering */
counter-reset: figNum; /* Counter used for Graphic Label numbering */
text-align: left;
font-size: 11px;
color: #005eb8;
}/* Configures the counters used for Chapters and Sections */
.Chapter, .Section, .Sub-Section {
counter-increment: sectionNum;
}.Chapter > .Title::before, .Section > .Title::before, .Sub-Section > .Title::before {
content: counters(sectionNum, '.') ' ';
}.Chapter .Chapter, .Chapter .Section, .Section .Section, .Sub-Section .Sub-Section, .Section .Sub-Section, .Section .Chapter, .Sub-Section .Section {
counter-reset: sectionNum;
}.XmlSchemaElement[by-reference="external"] > .Chapter, .XmlSchemaElement[by-reference="external"] > .Section,
.XmlSchemaElement[by-reference="external"] > .Sub-Section {
counter-reset: none;
}.Chapter .XmlSchemaElement[by-reference="external"] ~ .XmlSchemaElement[by-reference="external"],
.Section .XmlSchemaElement[by-reference="external"] ~ .XmlSchemaElement[by-reference="external"],
.Sub-Section .XmlSchemaElement[by-reference="external"] ~ .XmlSchemaElement[by-reference="external"] {
counter-reset: none;
}/* This work-around is required to reset the counter in sub Sections and Chapters */
.Chapter .Chapter ~ .Chapter, .Section .Section ~ .Section, .Chapter .Section ~ .Section, .Chapter .Section ~ .Chapter, .Chapter .Chapter ~ .Section, .Sub-Section .Sub-Section ~ .Sub-Section, .Section .Sub-Section ~ .Sub-Section, .Chapter .Section ~ .Sub-Section,
.Chapter .ArasBlockXmlSchemaElement .Chapter, .Chapter .ArasBlockXmlSchemaElement .Section, .Section .ArasBlockXmlSchemaElement .Sub-Section, .Sub-Section .ArasBlockXmlSchemaElement .Sub-Section {
counter-reset: none;
}- angela6 years agoCatalyst II
Some questions first:
1. Can you quick describe the final structure you use in your final document? What structure are users supposed to use? Chapter --> Section --> Sub-Section --> Sub-Section?
2. Or do you use Chapters and Sections on parallel levels?
3. Do you use a TOC or something else? In certain cases these often block renumbering.
- pnataraj036 years agoIdeator III
Thank you once again.
1. Yes, my document structure consists of Chapter -> Section -> Sub-Section -> Sub-Section.
2. In addition to above, I use Chapters and sections on parallel levels as well (Ex: please see below)
3. Yes, I use TOC only and I have no problem with that.
Please note that here, I am saving Chapter 1 as separate external content, Chapter 2 as separate, Section 2.1 as separate, Sub-Section 2.2.1 as separate content and so on.
When I try to build my document by using add-> External content with all these individual chapter, section and sub-section contents, first I insert chapter 1.It comes by default as Chapter 1.
Next I go and add->External content and insert Chapter 2, this time am getting numbering as 1 again.
After this I want to add Section 2.1 underneath it which I am not able to do (since when I add external content for Section 2.1, it again goes with numbering 1).