2 Replies Latest reply: Sep 16, 2011 9:58 AM by Error7103 RSS

    Chapter/Page numbers in TOC are wonky

    farrelldoc Community Member

      I'm setting up a TOC in a new template, and I can't get the page numbers to behave. I have chapter-level page numbering in the template (1-1, 2-1, 3-1, etc.).

       

      This is how my reference page is set up:

       

       

      <ChapterNumber><$paranum>      <Default Para Font><$paratext>.......... <PageNumber><$paranumonly>-<$pagenum>
      <$paratext>..............  <PageNumber><$paranumonly>-<$pagenum>
      <$paratext>........  <PageNumber><$paranumonly>-<$pagenum>
      

       

       

      This is how it comes out:

       

      ScreenShot00054.jpg

       

      Note the second-to-last and last numbers in each section. I can't for the life of me figure out where it is picking up these symbols and the extra numbers. This is a brand-new template with no legacy styles or anything else imported into it.

       

      I'm using FM9.

       

      Thanks,

      Karen

        • 1. Re: Chapter/Page numbers in TOC are wonky
          Arnis Gubins CommunityMVP

          Karen,

           

          How are the the autonumber components defined in the source paratags for the <$paranum> ? Usually, one should be using the <$chapnum> building block instead of trying to pull the <$paranum> for a chapter-page style of TOC entry.

          • 2. Re: Chapter/Page numbers in TOC are wonky
            Error7103 Community Member

            What Reference Page is that?

             

            Typically, Reference Page "TOC" has text structure like:

            openObjectId <$relfilename>:<$ObjectType> <$ObjectId>
            <$paratext>{tab>}<$pagenum>
              <$paratext>{tab>}<$pagenum>
                <$paratext>{tab>}<$pagenum>

             

            The generated TOC entries take their formatting from the paragraph formats assigned to the RP lines, like Heading1TOC. Select each line below OpenObjectId and make sure it has the formats you want.

             

            If the source text in the BODY file has a Character Format applied, and that ChFmt is defined in the TOC file, the TOC's ChFmt format is also appled in the generated text.