Forum Discussion

pnataraj03's avatar
pnataraj03
Ideator III
6 years ago

Technical Documentation - Adding External content to another document with automatic renumbering of chapters and Sections

Dear all,

I have created many chapters and sections and stored them as External document. These chapter and section documents have numbering which starts with 1.

Finally I am using these chapters and sections in another document by using add->External option.

I wanted the chapter and section numbering to get aligned and renumbered based on the destination document.

Currently, when I insert the content (add->External), in the destination document, I am seeing each document getting inserted with Chapter and Section numbering as 1 and 1.1.

I want 1, 1.1 and 2, 2.1, etc.....

I don't know how to achieve this.

Please help.

11 Replies

  • 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

    • angela's avatar
      angela
      Catalyst 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.

      • pnataraj03's avatar
        pnataraj03
        Ideator 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;
        }