4 Replies Latest reply: Aug 26, 2014 5:30 AM by Bob Niland (Error 7103) RSS

    Generated list with section numbers


      I'm using Frame 11 to format book chapters. Headings use an autonumber format to indicate successive sections throughout the chapter (i.e., 5.0, 5.1, 5.2, etc.). So headings have section numbers, but there may be multiple paragraphs beneath a heading that are not numbered (e.g., section 5.1 might have 3 paragraphs of text beneath it). I'm using markers to highlight citations within the text paragraphs in order to generate an alphabetical list of citations. But I want the citations in the list to reference section numbers instead of page numbers. Is this possible if every paragraph does not have a corresponding section number? In other words, will a citation in the second paragraph of section 5.1 show § 5.1 (i.e., defaulting to the most recent prior section number if the paragraph in which the citation appears does not have its own section number)? If this is possible, can someone tell me how to set that up? Thanks so much.

        • 1. Re: Generated list with section numbers
          Bob Niland (Error 7103) Community Member

          There may be more elegant suggestions, but hack this works ...

          • Create a named color named, say, Invisible (which can be white, or a visible color set to Invisible by Color Views at rendering time).
          • Create a Character Format named, say, Invisible:
            All details blank or As-Is except:
            Size: [2.0 pt] (see further remarks)
            Color: [Invisible]
          • Have all your body paragraph formats be auto-numbered (AN) as follows.
            Autonumber Format [<n>.<n>] (i.e. use the current subsection number)
            Character Format: [Invisible]
            Position [End of Paragraph]


          The point of the point size 2 is to reduce (but, alas, not eliminate, the chances that the paragraph will end up with an extra blank line due to wrapping of the AN). Using the Color Views technique, it will be visible to the author as a tiny greeked artifact.


          Cross-References by <$paranum> pick up the current subsection for every such paragraph.


          A generated LOP (List of Paragraphs) does as well, although you might have to edit the LOP file's Reference Page APL and change all <$pagenum> to <$paranum>.

          • 2. Re: Generated list with section numbers
            editor712 Community Member

            Thank you! I'll give that a try.

            • 3. Re: Generated list with section numbers
              Bob Niland (Error 7103) Community Member

              An alternative to using point size 2 is to set Stretch to [ 0.0% ] in Character Format.


              This makes the AN invisible and have zero effect on paragraph formatting (if somewhat harder to see when authoring). So you wouldn't need to use the End of Paragraph positioning with 0 Stretch.


              Either approach makes any Paragraph Format using this trick actually be an auto-numbered para for cross-reference and generated list purposes, but not look like one.

              • 4. Re: Generated list with section numbers
                Bob Niland (Error 7103) Community Member

                It turns out, on testing, that Stretch 0.0% doesn't work. FM silently resets it to 10.0%.


                So the autonumbered paragraph with invisible autonumbering solution probably needs to be:

                1. Create a named color for use as invisible text, for example:
                  Name: HiddenAN
                  Color: CMYK Magenta 100%
                2. In whatever Color View you use for publishing (default is CV #1),
                  move color HiddenAN to the Invisible column [Set].
                  Use another CV for edit, in which this color is visible.
                3. Create a Character Format named, say, HiddenText, that has
                  all fields set to blank or As-Is except:
                  Color: HiddenAN
                  Spread: 0.0%
                  Stretch: 10.0%
                4. In the para tag that needs hidden autonumbering, say Heading1, set Numbering to:
                  [*] Autonumber Format:
                  [ <n+> ]
                  Character Format:
                  [ HiddenText ]
                  [ End of Paragraph ]