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
- angela6 years agoCatalyst 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.
- 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.