change footnotes to endnotes, but allow some old footnotes











up vote
0
down vote

favorite
1












My question is similar to How can I get two sequences of "footnotes" in one LaTeX document, one as footnotes, the other as endnotes? and also to Is there a way to move all footnotes to the end of the document?



I have a book project that uses footnote{} for all notes, but it is proposed to change all such notes that are just references or scholarly notes to endnotes, while also leaving notes that amplify the discussion as footnotes. I estimate that ~ 90% of notes will become endnotes.




  • change in the text those that should remain footnotes to use a new command FN{}


  • redefine footnote{} to pagenote{} using the pagenote package (this seems more capable than endnotes).



But I'm not sure how to accomplish this. What I'm thinking is to use the following:



usepackage{pagenote}
makepagenote
renewcommand*{notedivision}{chapter*{notesname}}
letoldfootnotefootnote
letfootnotepagenote
newcommand{FN}[1]{oldfootnote{#1}}


Will this work? That is,




  • can one actually have footnotes and endnotes in the same document?


  • will my method of defining FN{} in terms of a saved oldfootnote work?



Edit:
What I proposed above does work, at least partially. That is, notes coded as FN{} do appear as footnotes in the text, while all others, coded as footnote{} are translated to endnotes, and appear in a final Notes chapter*{Notes}.
However, they are all shown in the text with sequential superscript numbers.



If I am to make this work, I need to distinguish the footnotes from the endnotes in the text, say, by using superscript letters for the footnote symbols. I tried reordering the commands and re-defining the footnote symbol as follows, but this doesn't make the FN{}s appear as superscript letters.



usepackage{pagenote}
letoldfootnotefootnote
newcommand{FN}[1]{oldfootnote{#1}}
makeatletter
let@fnsymbol@alph
makeatother

makepagenote
letfootnotepagenote
renewcommand*{notedivision}{chapter*{notesname}}









share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 2




    I'd find/replace the existing footnote commands (easy in any respectable editor) rather than unnecessarily redefining the command
    – Chris H
    Nov 3 '17 at 19:19










  • i've seen enotez used in a book that had both (a lot of) endnotes and (just a few) footnotes. (unfortunately, i haven't got time right now to dig up the archive.)
    – barbara beeton
    Nov 3 '17 at 19:20










  • @ChrisH There would be far too many footnotes to change to endnotes. My idea, if it can be made to work, requires changing only a small number to FN{}
    – user101089
    Nov 3 '17 at 19:23










  • If you've ever used a decent editor with a replace all (across multiple files if necessary) you could do it in less time than it took to type the question.
    – Chris H
    Nov 3 '17 at 20:06










  • You've missed the point, which I tried to clarify in an edit. Changing all manually, or even with a tool like perl is a one-way operation. No way to revert. Redefining the command leaves only the real footnotes to deal with.
    – user101089
    Nov 3 '17 at 21:38















up vote
0
down vote

favorite
1












My question is similar to How can I get two sequences of "footnotes" in one LaTeX document, one as footnotes, the other as endnotes? and also to Is there a way to move all footnotes to the end of the document?



I have a book project that uses footnote{} for all notes, but it is proposed to change all such notes that are just references or scholarly notes to endnotes, while also leaving notes that amplify the discussion as footnotes. I estimate that ~ 90% of notes will become endnotes.




  • change in the text those that should remain footnotes to use a new command FN{}


  • redefine footnote{} to pagenote{} using the pagenote package (this seems more capable than endnotes).



But I'm not sure how to accomplish this. What I'm thinking is to use the following:



usepackage{pagenote}
makepagenote
renewcommand*{notedivision}{chapter*{notesname}}
letoldfootnotefootnote
letfootnotepagenote
newcommand{FN}[1]{oldfootnote{#1}}


Will this work? That is,




  • can one actually have footnotes and endnotes in the same document?


  • will my method of defining FN{} in terms of a saved oldfootnote work?



Edit:
What I proposed above does work, at least partially. That is, notes coded as FN{} do appear as footnotes in the text, while all others, coded as footnote{} are translated to endnotes, and appear in a final Notes chapter*{Notes}.
However, they are all shown in the text with sequential superscript numbers.



If I am to make this work, I need to distinguish the footnotes from the endnotes in the text, say, by using superscript letters for the footnote symbols. I tried reordering the commands and re-defining the footnote symbol as follows, but this doesn't make the FN{}s appear as superscript letters.



usepackage{pagenote}
letoldfootnotefootnote
newcommand{FN}[1]{oldfootnote{#1}}
makeatletter
let@fnsymbol@alph
makeatother

makepagenote
letfootnotepagenote
renewcommand*{notedivision}{chapter*{notesname}}









share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 2




    I'd find/replace the existing footnote commands (easy in any respectable editor) rather than unnecessarily redefining the command
    – Chris H
    Nov 3 '17 at 19:19










  • i've seen enotez used in a book that had both (a lot of) endnotes and (just a few) footnotes. (unfortunately, i haven't got time right now to dig up the archive.)
    – barbara beeton
    Nov 3 '17 at 19:20










  • @ChrisH There would be far too many footnotes to change to endnotes. My idea, if it can be made to work, requires changing only a small number to FN{}
    – user101089
    Nov 3 '17 at 19:23










  • If you've ever used a decent editor with a replace all (across multiple files if necessary) you could do it in less time than it took to type the question.
    – Chris H
    Nov 3 '17 at 20:06










  • You've missed the point, which I tried to clarify in an edit. Changing all manually, or even with a tool like perl is a one-way operation. No way to revert. Redefining the command leaves only the real footnotes to deal with.
    – user101089
    Nov 3 '17 at 21:38













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





My question is similar to How can I get two sequences of "footnotes" in one LaTeX document, one as footnotes, the other as endnotes? and also to Is there a way to move all footnotes to the end of the document?



I have a book project that uses footnote{} for all notes, but it is proposed to change all such notes that are just references or scholarly notes to endnotes, while also leaving notes that amplify the discussion as footnotes. I estimate that ~ 90% of notes will become endnotes.




  • change in the text those that should remain footnotes to use a new command FN{}


  • redefine footnote{} to pagenote{} using the pagenote package (this seems more capable than endnotes).



But I'm not sure how to accomplish this. What I'm thinking is to use the following:



usepackage{pagenote}
makepagenote
renewcommand*{notedivision}{chapter*{notesname}}
letoldfootnotefootnote
letfootnotepagenote
newcommand{FN}[1]{oldfootnote{#1}}


Will this work? That is,




  • can one actually have footnotes and endnotes in the same document?


  • will my method of defining FN{} in terms of a saved oldfootnote work?



Edit:
What I proposed above does work, at least partially. That is, notes coded as FN{} do appear as footnotes in the text, while all others, coded as footnote{} are translated to endnotes, and appear in a final Notes chapter*{Notes}.
However, they are all shown in the text with sequential superscript numbers.



If I am to make this work, I need to distinguish the footnotes from the endnotes in the text, say, by using superscript letters for the footnote symbols. I tried reordering the commands and re-defining the footnote symbol as follows, but this doesn't make the FN{}s appear as superscript letters.



usepackage{pagenote}
letoldfootnotefootnote
newcommand{FN}[1]{oldfootnote{#1}}
makeatletter
let@fnsymbol@alph
makeatother

makepagenote
letfootnotepagenote
renewcommand*{notedivision}{chapter*{notesname}}









share|improve this question















My question is similar to How can I get two sequences of "footnotes" in one LaTeX document, one as footnotes, the other as endnotes? and also to Is there a way to move all footnotes to the end of the document?



I have a book project that uses footnote{} for all notes, but it is proposed to change all such notes that are just references or scholarly notes to endnotes, while also leaving notes that amplify the discussion as footnotes. I estimate that ~ 90% of notes will become endnotes.




  • change in the text those that should remain footnotes to use a new command FN{}


  • redefine footnote{} to pagenote{} using the pagenote package (this seems more capable than endnotes).



But I'm not sure how to accomplish this. What I'm thinking is to use the following:



usepackage{pagenote}
makepagenote
renewcommand*{notedivision}{chapter*{notesname}}
letoldfootnotefootnote
letfootnotepagenote
newcommand{FN}[1]{oldfootnote{#1}}


Will this work? That is,




  • can one actually have footnotes and endnotes in the same document?


  • will my method of defining FN{} in terms of a saved oldfootnote work?



Edit:
What I proposed above does work, at least partially. That is, notes coded as FN{} do appear as footnotes in the text, while all others, coded as footnote{} are translated to endnotes, and appear in a final Notes chapter*{Notes}.
However, they are all shown in the text with sequential superscript numbers.



If I am to make this work, I need to distinguish the footnotes from the endnotes in the text, say, by using superscript letters for the footnote symbols. I tried reordering the commands and re-defining the footnote symbol as follows, but this doesn't make the FN{}s appear as superscript letters.



usepackage{pagenote}
letoldfootnotefootnote
newcommand{FN}[1]{oldfootnote{#1}}
makeatletter
let@fnsymbol@alph
makeatother

makepagenote
letfootnotepagenote
renewcommand*{notedivision}{chapter*{notesname}}






footnotes endnotes






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 7 '17 at 15:41

























asked Nov 3 '17 at 18:42









user101089

535311




535311





bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 2




    I'd find/replace the existing footnote commands (easy in any respectable editor) rather than unnecessarily redefining the command
    – Chris H
    Nov 3 '17 at 19:19










  • i've seen enotez used in a book that had both (a lot of) endnotes and (just a few) footnotes. (unfortunately, i haven't got time right now to dig up the archive.)
    – barbara beeton
    Nov 3 '17 at 19:20










  • @ChrisH There would be far too many footnotes to change to endnotes. My idea, if it can be made to work, requires changing only a small number to FN{}
    – user101089
    Nov 3 '17 at 19:23










  • If you've ever used a decent editor with a replace all (across multiple files if necessary) you could do it in less time than it took to type the question.
    – Chris H
    Nov 3 '17 at 20:06










  • You've missed the point, which I tried to clarify in an edit. Changing all manually, or even with a tool like perl is a one-way operation. No way to revert. Redefining the command leaves only the real footnotes to deal with.
    – user101089
    Nov 3 '17 at 21:38














  • 2




    I'd find/replace the existing footnote commands (easy in any respectable editor) rather than unnecessarily redefining the command
    – Chris H
    Nov 3 '17 at 19:19










  • i've seen enotez used in a book that had both (a lot of) endnotes and (just a few) footnotes. (unfortunately, i haven't got time right now to dig up the archive.)
    – barbara beeton
    Nov 3 '17 at 19:20










  • @ChrisH There would be far too many footnotes to change to endnotes. My idea, if it can be made to work, requires changing only a small number to FN{}
    – user101089
    Nov 3 '17 at 19:23










  • If you've ever used a decent editor with a replace all (across multiple files if necessary) you could do it in less time than it took to type the question.
    – Chris H
    Nov 3 '17 at 20:06










  • You've missed the point, which I tried to clarify in an edit. Changing all manually, or even with a tool like perl is a one-way operation. No way to revert. Redefining the command leaves only the real footnotes to deal with.
    – user101089
    Nov 3 '17 at 21:38








2




2




I'd find/replace the existing footnote commands (easy in any respectable editor) rather than unnecessarily redefining the command
– Chris H
Nov 3 '17 at 19:19




I'd find/replace the existing footnote commands (easy in any respectable editor) rather than unnecessarily redefining the command
– Chris H
Nov 3 '17 at 19:19












i've seen enotez used in a book that had both (a lot of) endnotes and (just a few) footnotes. (unfortunately, i haven't got time right now to dig up the archive.)
– barbara beeton
Nov 3 '17 at 19:20




i've seen enotez used in a book that had both (a lot of) endnotes and (just a few) footnotes. (unfortunately, i haven't got time right now to dig up the archive.)
– barbara beeton
Nov 3 '17 at 19:20












@ChrisH There would be far too many footnotes to change to endnotes. My idea, if it can be made to work, requires changing only a small number to FN{}
– user101089
Nov 3 '17 at 19:23




@ChrisH There would be far too many footnotes to change to endnotes. My idea, if it can be made to work, requires changing only a small number to FN{}
– user101089
Nov 3 '17 at 19:23












If you've ever used a decent editor with a replace all (across multiple files if necessary) you could do it in less time than it took to type the question.
– Chris H
Nov 3 '17 at 20:06




If you've ever used a decent editor with a replace all (across multiple files if necessary) you could do it in less time than it took to type the question.
– Chris H
Nov 3 '17 at 20:06












You've missed the point, which I tried to clarify in an edit. Changing all manually, or even with a tool like perl is a one-way operation. No way to revert. Redefining the command leaves only the real footnotes to deal with.
– user101089
Nov 3 '17 at 21:38




You've missed the point, which I tried to clarify in an edit. Changing all manually, or even with a tool like perl is a one-way operation. No way to revert. Redefining the command leaves only the real footnotes to deal with.
– user101089
Nov 3 '17 at 21:38










1 Answer
1






active

oldest

votes

















up vote
0
down vote













For the context explained above, the following solution works, and more importantly, can be easily reverted to the standard behavior of footnote, while maintaining the distinction visually in the text.



That is, all footnote{}s in the text are changed to numbered endnotes that appear in a final chapter*{Notes} and have numeric superscripts. All FN{}s appear as footnotes in the text and have alphabetic superscripts. Assume that the following commands are contained in a file inputs/endnotes.tex and included in the main file via input{inputs/endnotes}.



usepackage{pagenote}
letoldfootnotefootnote
newcommand{FN}[1]{oldfootnote{#1}}
renewcommand{thefootnote}{alph{footnote}}

makepagenote
letfootnotepagenote
renewcommand*{notedivision}{chapter*{notesname}}


For this to work, the original footnote definition has to be captured first and assigned to FN, and the footnote symbol changed, before changing to pagenote.



This, of course, requires that the Notes be printed. Here, it is printed just after the Bibliography, using



bibliography{timeref,graphics}

% Endnotes
chapter*{Notes}
printnotes
...


To revert to the usual, inline printing of footnotes, but still distinguish those from endnotes, use the following, which prints the true footnotes in blue, and just comments out the inclusion of the file that changes the definition of footnote to endnote.



newcommand{FN}[1]{{footnote{color{blue}#1}}}
%input{inputs/endnotes}


and also comment out the lines to print the endnotes



% Endnotes
%chapter*{Notes}
%printnotes





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f399527%2fchange-footnotes-to-endnotes-but-allow-some-old-footnotes%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    For the context explained above, the following solution works, and more importantly, can be easily reverted to the standard behavior of footnote, while maintaining the distinction visually in the text.



    That is, all footnote{}s in the text are changed to numbered endnotes that appear in a final chapter*{Notes} and have numeric superscripts. All FN{}s appear as footnotes in the text and have alphabetic superscripts. Assume that the following commands are contained in a file inputs/endnotes.tex and included in the main file via input{inputs/endnotes}.



    usepackage{pagenote}
    letoldfootnotefootnote
    newcommand{FN}[1]{oldfootnote{#1}}
    renewcommand{thefootnote}{alph{footnote}}

    makepagenote
    letfootnotepagenote
    renewcommand*{notedivision}{chapter*{notesname}}


    For this to work, the original footnote definition has to be captured first and assigned to FN, and the footnote symbol changed, before changing to pagenote.



    This, of course, requires that the Notes be printed. Here, it is printed just after the Bibliography, using



    bibliography{timeref,graphics}

    % Endnotes
    chapter*{Notes}
    printnotes
    ...


    To revert to the usual, inline printing of footnotes, but still distinguish those from endnotes, use the following, which prints the true footnotes in blue, and just comments out the inclusion of the file that changes the definition of footnote to endnote.



    newcommand{FN}[1]{{footnote{color{blue}#1}}}
    %input{inputs/endnotes}


    and also comment out the lines to print the endnotes



    % Endnotes
    %chapter*{Notes}
    %printnotes





    share|improve this answer



























      up vote
      0
      down vote













      For the context explained above, the following solution works, and more importantly, can be easily reverted to the standard behavior of footnote, while maintaining the distinction visually in the text.



      That is, all footnote{}s in the text are changed to numbered endnotes that appear in a final chapter*{Notes} and have numeric superscripts. All FN{}s appear as footnotes in the text and have alphabetic superscripts. Assume that the following commands are contained in a file inputs/endnotes.tex and included in the main file via input{inputs/endnotes}.



      usepackage{pagenote}
      letoldfootnotefootnote
      newcommand{FN}[1]{oldfootnote{#1}}
      renewcommand{thefootnote}{alph{footnote}}

      makepagenote
      letfootnotepagenote
      renewcommand*{notedivision}{chapter*{notesname}}


      For this to work, the original footnote definition has to be captured first and assigned to FN, and the footnote symbol changed, before changing to pagenote.



      This, of course, requires that the Notes be printed. Here, it is printed just after the Bibliography, using



      bibliography{timeref,graphics}

      % Endnotes
      chapter*{Notes}
      printnotes
      ...


      To revert to the usual, inline printing of footnotes, but still distinguish those from endnotes, use the following, which prints the true footnotes in blue, and just comments out the inclusion of the file that changes the definition of footnote to endnote.



      newcommand{FN}[1]{{footnote{color{blue}#1}}}
      %input{inputs/endnotes}


      and also comment out the lines to print the endnotes



      % Endnotes
      %chapter*{Notes}
      %printnotes





      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        For the context explained above, the following solution works, and more importantly, can be easily reverted to the standard behavior of footnote, while maintaining the distinction visually in the text.



        That is, all footnote{}s in the text are changed to numbered endnotes that appear in a final chapter*{Notes} and have numeric superscripts. All FN{}s appear as footnotes in the text and have alphabetic superscripts. Assume that the following commands are contained in a file inputs/endnotes.tex and included in the main file via input{inputs/endnotes}.



        usepackage{pagenote}
        letoldfootnotefootnote
        newcommand{FN}[1]{oldfootnote{#1}}
        renewcommand{thefootnote}{alph{footnote}}

        makepagenote
        letfootnotepagenote
        renewcommand*{notedivision}{chapter*{notesname}}


        For this to work, the original footnote definition has to be captured first and assigned to FN, and the footnote symbol changed, before changing to pagenote.



        This, of course, requires that the Notes be printed. Here, it is printed just after the Bibliography, using



        bibliography{timeref,graphics}

        % Endnotes
        chapter*{Notes}
        printnotes
        ...


        To revert to the usual, inline printing of footnotes, but still distinguish those from endnotes, use the following, which prints the true footnotes in blue, and just comments out the inclusion of the file that changes the definition of footnote to endnote.



        newcommand{FN}[1]{{footnote{color{blue}#1}}}
        %input{inputs/endnotes}


        and also comment out the lines to print the endnotes



        % Endnotes
        %chapter*{Notes}
        %printnotes





        share|improve this answer














        For the context explained above, the following solution works, and more importantly, can be easily reverted to the standard behavior of footnote, while maintaining the distinction visually in the text.



        That is, all footnote{}s in the text are changed to numbered endnotes that appear in a final chapter*{Notes} and have numeric superscripts. All FN{}s appear as footnotes in the text and have alphabetic superscripts. Assume that the following commands are contained in a file inputs/endnotes.tex and included in the main file via input{inputs/endnotes}.



        usepackage{pagenote}
        letoldfootnotefootnote
        newcommand{FN}[1]{oldfootnote{#1}}
        renewcommand{thefootnote}{alph{footnote}}

        makepagenote
        letfootnotepagenote
        renewcommand*{notedivision}{chapter*{notesname}}


        For this to work, the original footnote definition has to be captured first and assigned to FN, and the footnote symbol changed, before changing to pagenote.



        This, of course, requires that the Notes be printed. Here, it is printed just after the Bibliography, using



        bibliography{timeref,graphics}

        % Endnotes
        chapter*{Notes}
        printnotes
        ...


        To revert to the usual, inline printing of footnotes, but still distinguish those from endnotes, use the following, which prints the true footnotes in blue, and just comments out the inclusion of the file that changes the definition of footnote to endnote.



        newcommand{FN}[1]{{footnote{color{blue}#1}}}
        %input{inputs/endnotes}


        and also comment out the lines to print the endnotes



        % Endnotes
        %chapter*{Notes}
        %printnotes






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 5 '17 at 16:01

























        answered Nov 7 '17 at 16:45









        user101089

        535311




        535311






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f399527%2fchange-footnotes-to-endnotes-but-allow-some-old-footnotes%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt