2 Replies Latest reply on Dec 19, 2014 8:59 AM by Nibus

    Index section header format

    Nibus

      Hello - I have a client that requests the index section headers in their document to be in the format <A>, <B> etc., rather than just plain A, B... - how do I do that?

        • 1. Re: Index section header format
          vinny38 Level 4

          Hi!

          I can't figure out how you could do that automatically... Maybe someone else could...

           

          All I can suggest would be a text replacement, using GREP :

          search (?<!<)[\l\u](?!>) with index section headers paragraph style, and replace by <$0>. (Assuming your index section are just letters, otherwise, adjust your GREP query)

           

          But, this is definitely not a perfect solution, since you'll have to think about doing it after each index update...

           

          I would be also interested about an automatic solution...

          • 2. Re: Index section header format
            Nibus Level 1

            Hi Vinny - that's brilliant, works perfectly - thank you. I had started to look at it this way but my grep skills aren't great :/ Will leave this open for a bit in case anyone knows how to automate it.