4 Replies Latest reply on Feb 15, 2010 10:02 AM by jay fresno

    index problem

    jay fresno Level 1

      Posting on the scripting forum because InDesign CS4 doesn't seem to be able to do this out of the box.

       

      Need to have an index with listings, for example:

       

      ANIMALS

        cats 3

        dogs  6

        penguins  4

        see also zebras

       

      The problem is with the 'see also' listing. InDesign keeps putting it in the wrong place, and doesn't seem to be able to add it as a level 2 index entry.

      Can any of you gurus suggest a workaround?

        • 1. Re: index problem
          Peter Kahrel Adobe Community Professional & MVP

          What you can do is rather than real cross-references, create sub-topics and call them "z_see_ abc" and "z_see also_ xyz". They're then generated as separate level-2 entries with a page number. The "z" in "z_see_ abc" ensures that they're sorted after the subtopics. The underscores are just a way to find "see" and "see also" so that you can apply a character style to them. The page numbers can be removed with this Grep:

           

          Find: (^_see( also)?_.+?)[\s\d]+$

          Change to: $1

           

          but do this before adding the character styles.

           

          Peter

          • 2. Re: index problem
            jay fresno Level 1

            Peter,

             

            I very much appreciate your suggestion. It seems like it should work -- what am I doing wrong?

             

            I get the following message:

             

            Untitled-3.png

            The sample index looks like this:

             

            Untitled-1.png

            The Find/Change looks like this:

             

            Untitled-2.png

            • 3. Re: index problem
              Peter Kahrel Adobe Community Professional & MVP

              Sorry Jay, that should have been this (forgot about the z):

               

              ^z(_see( also)?_.+?)[\s\d]+$

               

              To add italics to _see_ and _see also_, do this:

               

              Find what: _([^_]+)_

              Change to: $1

              (and set italics in the "Change format" pane.

               

              Peter

              • 4. Re: index problem
                jay fresno Level 1

                Peter,

                Thank you so much for your solution and for taking the time to help. This time it is working perfectly.