Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] footnotes clip

Expand Messages
  • Don - HtmlFixIt.com
    Okay, start wherever you want ... ^!Jump Doc_End ^!SetDebug On ^!Set %Start%=^?{Start=} ;start at bottom and find last [1] ^!Find [^%Start%] TISB ^!IfError
    Message 1 of 9 , Nov 10, 2009
    View Source
    • 0 Attachment
      Okay, start wherever you want ...

      ^!Jump Doc_End

      ^!SetDebug On
      ^!Set %Start%=^?{Start=}

      ;start at bottom and find last [1]
      ^!Find "[^%Start%]" TISB
      ^!IfError End
      ;go before it and select to start
      ^!Jump Select_Start
      ^!SelectTo 1:1

      ;this works only on selection
      ^!Replace "\[(\d+)\]" >> "<a name="top$1" href="#v$1">[$1]</a>" RASH
      ;this works on the rest
      ^!Replace "\[(\d+)\]" >> "<a name="v$1" href="#top$1">[$1]</a>" RASW
      ^!IfError END


      Again I left the debug in there so you can watch it step through.

      Adrien Verlee wrote:
      > Op 10-nov-09, om 20:14 heeft Axel Berger het volgende geschreven:
      >
      >> Seeing your source, what exactly is it you want done to it?
      >
      > See my previous mail.
      > 950 footnotes is much to make without automatisation :-)
      > What I (mostly) always do is making one big file in Word. And
      > separate it later in chapters wich become html.
      > What I (mostly) always do, is making one big file in Word. Let then a
      > Word-macro the rough work already do, and separate it later in
      > chapters wich become html.
      > Therefore I'm thinking to have the option: either always start from
      > 1, or eg 79, etc.
    Your message has been successfully submitted and would be delivered to recipients shortly.