Forum Discussion
11 Replies
- pnataraj03Ideator III
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
- angelaCatalyst II
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.
- pnataraj03Ideator 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;
}