Results 1 to 15 of 15
  1. #1
    3 Star Lounger
    Join Date
    Jan 2003
    Location
    Den Haag, Netherlands
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Footnotes (2002 NL)

    Good morning,

    Can anybody tell me why the following happens?
    I have a document from one of my colleagues which has a strange thing with footnotes.
    When I enter a new footnote on for instance page 14, this footnote is displayed on page 7 under the second footnote.
    That's not all:
    When I enter this new footnote it's number is 5, while I only have TWO footnotes inserted before?

    Can somebody help me?

    Many thanks in advance!
    Daphne <img src=/S/bow.gif border=0 alt=bow width=15 height=15>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Footnotes (2002 NL)

    Hello Daphne,

    It sounds like the document is corrupt. Perhaps you could post a (zipped?) copy of the document, with the text replaced by dummy text, so that others can investigate. We have several experts on this kind of thing, but they won't be online until later.

  3. #3
    3 Star Lounger
    Join Date
    Jan 2003
    Location
    Den Haag, Netherlands
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Footnotes (2002 NL)

    Hello Hans,

    I try to add a zipped doc. but it's still too large...
    I don't know how to change the doc without losing the crucial point concerning this problem.

    Any suggestions?
    Daphne

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Footnotes (2002 NL)

    Does the document contain graphics, for example an institute logo, or things like that? If so, remove them.

    Also, see if you can delete some pages from the document without removing the problem. Make a copy before experimenting.

  5. #5
    3 Star Lounger
    Join Date
    Jan 2003
    Location
    Den Haag, Netherlands
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Footnotes (2002 NL)

    Hello Hans,

    The document was so F-d up that I just cut it and pasted as plain text. This was way quicker than removing all the strange formatprofiles they've created!
    (why do users think they can do this without being punished! <img src=/S/tongue.gif border=0 alt=tongue width=15 height=15> )

    But although I don't really know what went wrong, thanks for reacting so quickly again!

    Have a nice weekend!
    Daphne <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Footnotes (2002 NL)

    > I don't know how to change the doc without losing the crucial point concerning this problem.

    If you need to do this before posting a document to the lounge then it is usually good enough to do a Replace All of each letter of the alphabet with a different one. Not good enough for secret documents but fine for ordinary stuff. Here for example is this message treated like that...

    StuartR

    > Jaeao xaeo jeo oe ojpagq ojq aeo omojeuo pemmag ojq oguompp pemao oeaoqgamag ojmm pgegpqm.

    Mg yeu aqqa oe ae ojmm gqgegq pemomag p aeoumqao oe ojq peuagq ojqa mo mm umupppy geea qaeugj oe ae p Gqpppoq Ppp eg qpoj pqooqg eg ojq pppjpgqo omoj p amggqgqao eaq. Aeo geea qaeugj geg mqogqo aeoumqaom guo gmaq geg egamapgy mougg. Jqgq geg qxpmppq mm ojmm mqmmpgq ogqpoqa pmxq ojpo...

    MoupgoG

  7. #7
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Footnotes (2002 NL)

    Just in case something like that happens again, you could try to fix the footnote numbering with the macro below (which cuts, then re-inserts all footnotes).
    <pre>Sub RepairFootnotes()
    ' Disclaimer: Make a backup of the file!
    ' This macro will remove any manually applied
    ' footnote numbering.
    Dim myFootnote As Footnote
    Dim i
    For i = ActiveDocument.Footnotes.Count To 1 Step -1
    Set myFootnote = ActiveDocument.Footnotes(i)
    myFootnote.Range.Copy
    myFootnote.Reference.Select
    myFootnote.Delete
    ActiveDocument.Footnotes.Add Selection.Range
    Selection.Footnotes(1).Range.Paste
    Next i
    End Sub
    </pre>

    It worked pretty well in the few cases I needed it.
    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  8. #8
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Footnotes (2002 NL)

    Hi Klaus,

    I've added your macro to my bag of goodies bcs...well, you wrote it.

    I just didn't understand the problem and how it was being fixed. Maybe I've not footnoted enough stuff (but I do use them on occasion).

    First, I do understand that one opinion is that Daphne's document got corrupted. So the numbers were messed up. How does stepping thru the footnotes backwards (I understand the reason for going backwards) necessarily help? However, I'd have to give it a little why going forward wouldn't also work (you delete a footnote and add it back within an iteration of the loop and count stays the same as you loop, so "i" should increase towards the final count).

    It almost seems, from Daphne's description, that a different solution might be needed. She mentions inserting a footnote on page 14 (i.e., adding a footnote reference to text) and having it show on page 7. Let's assume, for the general case, that there is footnoted text after page 14 (and not worry about where the footnote shows up). So when you step thru the footnotes, which order are you getting them - physical location of footnote reference or location of the footnote? I'd assume the former by what I think would be a logical definition of the footnote collection. Hence, I can understand the approach of looping thru the collection in reference-order. But is there an assumption that deleting the footnote reference after copying the footnote text and then reinserting at the same location will correct the kind of thing that Daphne observed?

    Another approach might be to build an array of locations for the references and the associated text, delete all the footnotes in 1 pass, and then reinsert them using the saved locations. Not sure that would work much better.

    Your macro mentions in a comment (see, someone does read comments) about "manually applied footnote numbering". While I can imagine what this could be (manual superscripts and somehow faking something at the bottom of the page), I'm not sure what you mean by the phrase and, certainly, how your macro would catch what I suggested.

    And lastly, you indicated it worked pretty well in a few cases. But what kind of document were you testing with? If it wasn't corrupt or exhibiting the kind of problems that Daphne wrote about, how is it known that the macro would solve her problems? As I see it, and no offense intended, the macro should work on a non-corrupted document.

    As a final footnote-happy to see you're still on the Lounge. I've not been very active lately.

    Fred

  9. #9
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Footnotes (2002 NL)

    > But is there an assumption that deleting the footnote reference after copying the footnote text and then reinserting at
    > the same location will correct the kind of thing that Daphne observed?

    Sometimes people manually number footnotes, causing automatically inserted footnote numbers to get out of whack. The macro appears intended to correct any of that kind of mess. If it doesn't work, then you would know the problems run deeper. (Obviously having the footnote appear 9 pages before it should appear indicates a very serious problem!)

  10. #10
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Footnotes (2002 NL)

    Hi Fred,

    The macro steps through the footnotes from bottom to top so that the footnotes collection doesn't get messed up.
    It's a trick that is often used, if you need to go through any collection and delete some members of the collection.

    If you would do it top to bottom, you would miss some members of the collection: Once you delete, say, the first item, the old second item will become the first item.
    The "For/Each" loop will then continue with the new second item (previously third item), missing the second one.

    Since the macro re-creates the footnotes from scratch (only reusing the text that was in the footnotes), it should be able to deal with most kinds of corruption or manually messed up footnotes. I have sometimes used it to get some consistency when text from different sources, with different footnote or endnote schemes had been combined. It also worked pretty well when users had manually deleted or messed up some footnote references in the footnote pane (happens pretty often... In that case, you would likely still have to check each footnote to remove any superscripted number and the like that was typed in to "fix" the "corrupted" footnotes).

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  11. #11
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Footnotes (2002 NL)

    Hi Klaus,

    >If you would do it top to bottom, you would miss some members of the collection: Once you delete, say, the first item, the old second item will become the first item.
    >The "For/Each" loop will then continue with the new second item (previously third item), missing the second one.

    Understood. But in this case, if you're going top to bottom, within the loop:
    - you delete footnote 1 and footnote 2 becomes 1 - understood
    - you re-insert what was 1 to become 1 again. So what was 2 and became 1 now becomes 2 again. You shouldn't miss it.
    These 2 steps are done within the loop. So by the time "i" increases to 2, it should be pointing to what was originally 2. Anyway, not worth belaboring since I'd step thru it backwards also. I was just wondering in this case if backwards was required.

    Fred

  12. #12
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Footnotes (2002 NL)

    The first thing I would check is whether the document has been using tracked revisions. This is often a cause of skips in numbering as the document may have some deleted numbers hidden from view but still contained in the document.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  13. #13
    3 Star Lounger
    Join Date
    Jan 2003
    Location
    Den Haag, Netherlands
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Footnotes (2002 NL)

    Wow! I'm just back from my weekend and I'm being overwhelmed by all these possible solutions!

    Thanks all for your answers!!!

    I have a lot to find out, fun!

    Have a nice week (hoping to be seeing friday soon again <img src=/S/tongue.gif border=0 alt=tongue width=15 height=15> )
    Daphne

  14. #14
    3 Star Lounger
    Join Date
    Jun 2001
    Location
    Lawrence, Kansas, USA
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Footnotes (2002 NL)

    I was having footnote numbering problems. My footnotes skipped from 1, 3, 5 then they were consecutive. I changed them to endnotes. That didn't work. Then I turned off the tracked revisions and converted back to footnotes. That worked! Thanks for the tip!

  15. #15
    Lounger
    Join Date
    Feb 2006
    Location
    Washington, District Of Columbia
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Footnotes (2002 NL)

    I know this was posted way back when... but I just wanted to thank you for saving me from a lot of manual editting.

    THANKS!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •