28 Replies Latest reply on May 10, 2017 12:48 PM by RaizelDesign

    Manually Change Footnote Numbering

    RaizelDesign Level 1

      Hi all,

      I have a document with multiple stories on a spread. i would like some of the footnotes to be numbered consecutively. I know that InDesign won't flow the numbers from one story to another, but is there any way to manually change the numbers? I would only have to do this one or two times.

      Thanks!

        • 1. Re: Manually Change Footnote Numbering
          jane-e Adobe Community Professional

          Do the controls in Footnote Options work?

           

          • 2. Re: Manually Change Footnote Numbering
            RaizelDesign Level 1

            The controls work, they just didn't help in that case. The footnotes stayed the same. The only way I was able to achieve the consecutive numbering was by threading the text boxes - something that I had been trying to avoid, but, oh, well.

            • 3. Re: Manually Change Footnote Numbering
              Obi-wan Kenobi Adobe Community Professional

              Hi,

               

              Imho, the true question could be: What is the footnote numbering?

               

              Real footnotes into unthreaded text frames simple to update! …

               

              Capture d’écran 2017-01-12 à 00.17.34.png

               

              … if, e.g., we change the first number from 5 to 8!

               

              Capture d’écran 2017-01-12 à 00.20.51.png

               

              (^/)  Just for fun!

              • 4. Re: Manually Change Footnote Numbering
                vinny38 Level 4

                Hi Obi

                Can you explain the trick?

                cheers

                • 5. Re: Manually Change Footnote Numbering
                  Steve Werner Adobe Community Professional & MVP

                  The problem is that Obi-wan wants to be a digital magician, but it's not helpful for the person who asked the question because he doesn't like to explain how he did it.

                  • 6. Re: Manually Change Footnote Numbering
                    Sandee Cohen Adobe Community Professional

                    Vinny,

                     

                    Obi-wan is a very clever guy and definitely has pushed ID into doing something that ordinarily can't be done.

                     

                    I tried, this morning, to replicate his solution so I could share it with you. (Something Obi-wan doesn't do much.)

                     

                    I'm sorry if you're as frustrated as I am with this nonsense. And I'm VERY frustrated.

                    • 7. Re: Manually Change Footnote Numbering
                      vinny38 Level 4

                      Hahaha french arrogance... I know that

                       

                      Of course I'd be glad you share your solution Sandee.

                      I am now twice frustrated because you didn't...

                      • 8. Re: Manually Change Footnote Numbering
                        Obi-wan Kenobi Adobe Community Professional

                        Don't say I don't give Answers!

                        Sandee, you're on Adobe forums since ten years and, proportionally, I've given 10 times more good answers than you for only 3 years of presence! [and I don't count my good answers not indicated as correct!]

                        2nd point: My present answer was just a quick test that lets me think RaizelDesign's question could be fixed! … The op doesn't seem to be interested because no comment! …

                        3rd point: If you have an answer, show it to us! … by curiosity!

                        Last point: Thanks for your first comment! But I don't need it and don't play for this! I only want to learn Adobe users to be really more curious!

                         

                        Bwaaaah! …

                        • 9. Re: Manually Change Footnote Numbering
                          davidblatner Adobe Community Professional

                          I would love to see how you did this. It is a great mystery!!

                           

                          I thought perhaps you did it with paragraph numbering. But you would have to remove the original footnote number, and I do not see any way to do that.

                          • 10. Re: Manually Change Footnote Numbering
                            Sandee Cohen Adobe Community Professional

                            I'm sorry, I wasn't clear. I was unable to replicate his solution, so I COULDN'T show you how he did it.

                             

                            And his answer below STILL doesn't show it.

                             

                            I'm sorry that an ACP should be that way.

                            • 11. Re: Manually Change Footnote Numbering
                              Vamitul Level 4

                              Numbered lists.

                              • 12. Re: Manually Change Footnote Numbering
                                Sandee Cohen Adobe Community Professional

                                You only want Adobe forum visitors to be more curious. And try to figure it out themselves?

                                 

                                THAT'S NOT THE REASON THEY ARE HERE!

                                 

                                They come to these boards for the answers. Not to be teased.

                                 

                                Maybe your foreign background and lack of English skills has confused you.

                                 

                                Let me be clear.

                                 

                                Don't show that you've solved a problem if you don't show others how it's done.

                                • 13. Re: Manually Change Footnote Numbering
                                  Sandee Cohen Adobe Community Professional

                                  Vamitul,

                                   

                                  Care to elaborate? This isn't a game of twenty questions.

                                  • 14. Re: Manually Change Footnote Numbering
                                    Vamitul Level 4

                                    Sorry:

                                    Apply a numbered list to the footnote paragraph, and a "hidden" (no fill, 0.1pt) character style to the footnote marker.

                                    • 15. Re: Manually Change Footnote Numbering
                                      davidblatner Adobe Community Professional

                                      Vamitul: Yes, I had the same thought, but… how do you apply a character style to the footnote marker? OH! A nested style will do it!

                                       

                                      Yes, that makes sense. (I was looking through the Type > Document Footnote Options dialog box for a method of applying a character style to the footnote character to make it disappear… it is not there… but a nested style will do it easily.)

                                       

                                      So you apply automatic numbering and a nested style… the auto numbers "replace" the normal footnotes.

                                      • 16. Re: Manually Change Footnote Numbering
                                        vinny38 Level 4

                                        Interesting but...

                                        how do yo change the footnote reference marker?

                                        As far as I know, as soon as you modify it, related footnote is deleted.

                                        Besides, the idea is to keep the all thing flowing, not manually change every fn reference marker (assuming it is possible).

                                        • 17. Re: Manually Change Footnote Numbering
                                          Sandee Cohen Adobe Community Professional

                                          Thank you Vamitul,

                                           

                                          I was somewhere on that plain, but didn't have the patience to go through it all.

                                           

                                          Too bad Obi Wan didn't just explain it when he posted his original illustrations.

                                          • 18. Re: Manually Change Footnote Numbering
                                            davidblatner Adobe Community Professional

                                            Actually, this still does not work. The automatic numbers do not increase… for me, they always begin at 1. (Yes, I have the numbers set to a List. The numbers increase in normal paragraphs, but not in footnotes.)

                                             

                                            Has anyone gotten this to work except Obi-wan?

                                            • 19. Re: Manually Change Footnote Numbering
                                              Sandee Cohen Adobe Community Professional

                                              Didn't have the time to go into it. I trusted Vamitul.

                                               

                                              Sorry I didn't get it to work.

                                              • 20. Re: Manually Change Footnote Numbering
                                                Vamitul Level 4

                                                Indeed the list always restarts in each footnote. I was so convinced that would work that I did not actually tested .

                                                I can get the effect Obi-wan created (and more) via scripting, but I'm honestly at lost on how it can be achieved without:

                                                Screen Shot 2017-01-24 at 7.28.00 PM.png

                                                • 21. Re: Manually Change Footnote Numbering
                                                  Obi-wan Kenobi Adobe Community Professional

                                                  Hi,

                                                   

                                                  Just use Cross-references and you could do it basically …

                                                  But do it manually! … I'm not sure it's the answer everybody expects!

                                                   

                                                  (^/)

                                                  • 22. Re: Manually Change Footnote Numbering
                                                    Vamitul Level 4

                                                    Do explain more, please. How do you control the numbering?

                                                    • 23. Re: Manually Change Footnote Numbering
                                                      Sandee Cohen Adobe Community Professional

                                                      Perhaps it's your limited English or a warped sense of humor, but you still haven't explained it.

                                                       

                                                      And it's starting to look like you didn't really do it automatically.

                                                       

                                                      Boo! Bad boy!

                                                      • 24. Re: Manually Change Footnote Numbering
                                                        Obi-wan Kenobi Adobe Community Professional

                                                        Vlad,

                                                         

                                                        Here, It's a funny game because the text frames are unthreaded!

                                                        That's why each first "true" footnote [Automatic footnote call and footnote] begins to "1"!

                                                         

                                                        So, we need to "think different" and play in another way!

                                                         

                                                        What I'm going to explain can be done easily by the op. Manually!

                                                        … But a script will do it in 1 click!

                                                         

                                                        The deal is to have a continuous numbering of the footnotes even if the text frames aren't threaded!

                                                        [To do it, the script will need a chronological order of the frames! Not the op!]

                                                         

                                                        That's the scenario I've imagined for a script!

                                                         

                                                        About the Footnote call:

                                                         

                                                        The op searches each footnote call and inserts after* it a small anchor text box [placed as "superscript" (para style, auto-resizing text frame) –– para style and object style to be defined by the user (or the script)]. (* I use a script to do it because I prefer it "after" but this could be played "before"!)

                                                        The insertion of this anchored text frame triggers a grep style that will automatically "make invisible" the footnote call!

                                                         

                                                         

                                                        Capture d’écran 2017-01-24 à 21.35.30.png

                                                         

                                                         

                                                        Capture d’écran 2017-01-24 à 21.35.42.png

                                                         

                                                        Easy to plan with a simple grep F/R [search: .(?=~F)  Replace by: $0~C]

                                                        With that code, the anchoring will be "before"!

                                                         

                                                        About the Footnote:

                                                         

                                                        A similar way: a grep style will be triggered by the insertion of the cross-reference [including into its format a "non-joiner"!] to our "false" footnote call to make invisible the real footnote numbering!

                                                         

                                                         

                                                         

                                                        Capture d’écran 2017-01-24 à 21.36.10.png

                                                         

                                                         

                                                        Capture d’écran 2017-01-24 à 21.36.27.png

                                                         

                                                        About the Cross-reference:

                                                         

                                                        Capture d’écran 2017-01-24 à 21.36.48.png

                                                         

                                                        About the Footnote call numbering:

                                                         

                                                        Capture d’écran 2017-01-24 à 21.49.21.png

                                                        How does it work?

                                                         

                                                        The op will have to change the numbers manually! … But a script does it simply counting the footnotes when it'll create the text frames and insert the numbering into them! Just inserting in the text frame the incrementation defined by the number of footnotes: Fn 1 (= First Fn = 0) => 1, Fn 2 (= second Fn = 1) => 2, …

                                                         

                                                        When done, we'll have this [after generation, I've chosen to begin the numbering to "5", for test]:

                                                         

                                                        Capture d’écran 2017-01-12 à 00.17.34.png

                                                         

                                                        … if, as I said in post@3 two weeks ago without interesting somebody, if you want to update the numbering, changing the first footnote number from "5" to "8", as:

                                                         

                                                        Capture d’écran 2017-01-12 à 00.20.51.png

                                                         

                                                        … you'll do it simply with this code:

                                                         

                                                         

                                                        /*
                                                            Script written by Michel Allio [2017/01/12]
                                                            see: https://forums.adobe.com/thread/2261885
                                                        */
                                                        
                                                        
                                                        app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "Update Footnotes! …");
                                                        
                                                        
                                                        function main()     
                                                        {
                                                            var myDoc = app.activeDocument,
                                                            myParaStyle = "Num",
                                                            myValue = +3;
                                                            
                                                            app.findGrepPreferences = app.changeGrepPreferences = null;
                                                            app.findGrepPreferences.findWhat = "\\d+$";
                                                            app.findGrepPreferences.appliedParagraphStyle = myParaStyle;
                                                            myDoc.findGrep();
                                                            myFound = myDoc.findGrep();
                                                            var F = myFound.length;
                                                            for ( var f = 0 ; f < F ; f++) myFound[f].contents = String(Number(myFound[f].contents) + myValue);   
                                                            myDoc.updateCrossReferences();
                                                            app.findGrepPreferences = app.changeGrepPreferences = null;
                                                        }
                                                        

                                                         

                                                         

                                                        Edit the script with ESTK, just change "myValue" number [line 14 ; actually: "+3"] and launch the script!

                                                        For fun, you could play negative number!

                                                         

                                                        The 2 first parts of the script [text frames creation + cross-references creation] has been written in another contexts. To be adapted if time … and less annoyed!

                                                        Script 1 (adaptation) written 15/01/2017: How can I make a new text frame for selected text?

                                                        Script 2 written 07/08/2016: Cross-reference paragraph number! …

                                                         

                                                        (^/)

                                                         

                                                        Just for fun!  Dropbox - Test_ID-Files.zip

                                                        1 person found this helpful
                                                        • 25. Re: Manually Change Footnote Numbering
                                                          davidblatner Adobe Community Professional

                                                          Wow. That seems pretty complex. If we're going down the route of using scripts, I would probably choose one of Peter K's:

                                                          Footnotes in columns | Peter Kahrel

                                                          Convert footnotes to endnotes | Peter Kahrel

                                                          Hm…

                                                          • 26. Re: Manually Change Footnote Numbering
                                                            Vamitul Level 4

                                                            The theory behind this is quite intriguing. And, to one-up it:

                                                            • for the fake footnote reference number (the one in the anchored frame) you can set up a numbered paragraph style with a global list. Then, instead of inserting the actual footnote number, you can just add a 0-width space.
                                                            • for the crossreference, instead of using the <fullPara> format, use <paraNumber> and suddenly you have dynamic numbered paragraphs that don't require any script.

                                                             

                                                            At the end of the day I still feel it is a overly complex setup, so unless you have to update the numbers many times over, just changing them by hand would be faster.

                                                            • 27. Re: Manually Change Footnote Numbering
                                                              Obi-wan Kenobi Adobe Community Professional

                                                              When I've imagined this process, I've not seen a real interest to have an auto-numbering! In this case:

                                                              • no real interest: as unthreaded blocks, the numbering will start anyway at 1 in each block;

                                                              • need to add something else [for you, a 0-wish space] in the block to trigger the auto-numbering;

                                                              • If I need to play with such a layout, I know I'll use personally a script!

                                                               

                                                              When you read the code I posted, Its idea is simplistic! … So, personally, why more?

                                                               

                                                              I've never said it was the better way to play this kind of situation! Using threaded text frames would be much so simple: nothing else to do than playing with "standard" footnotes!

                                                               

                                                              (^/)

                                                              • 28. Re: Manually Change Footnote Numbering
                                                                RaizelDesign Level 1

                                                                Uh... Thanks? But the reason I haven't checked back on this question is that it was way faster (and easier) to thread the stories.