Hyperlinked footnote and footcite markers automatically separated by raised commas











up vote
2
down vote

favorite












The posting Incompatibility between footmisc-option multiple and hyperref
contains a solution to having consecutive footnote markers hyper-linked and automatically separated by raised commas.



How to have the same when there is a sequence of footnotes and footcites, such as



Textfootnote{First footnote}footcite{firstcitation}footnote{citation}


This is the solution on the linked page:



documentclass{article}
usepackage{hyperref}

letoldFootnotefootnote
newcommandnextTokenrelax

renewcommandfootnote[1]{%
oldFootnote{#1}futureletnextTokenisFootnote}

newcommandisFootnote{%
ifxfootnotenextTokentextsuperscript{,}fi}

textheight=3cm
begin{document}

Textfootnote{First footnote}footnote{Second footnote}footnote{Third footnote} Textfootnote{Fourth footnote} Text

end{document}









share|improve this question




























    up vote
    2
    down vote

    favorite












    The posting Incompatibility between footmisc-option multiple and hyperref
    contains a solution to having consecutive footnote markers hyper-linked and automatically separated by raised commas.



    How to have the same when there is a sequence of footnotes and footcites, such as



    Textfootnote{First footnote}footcite{firstcitation}footnote{citation}


    This is the solution on the linked page:



    documentclass{article}
    usepackage{hyperref}

    letoldFootnotefootnote
    newcommandnextTokenrelax

    renewcommandfootnote[1]{%
    oldFootnote{#1}futureletnextTokenisFootnote}

    newcommandisFootnote{%
    ifxfootnotenextTokentextsuperscript{,}fi}

    textheight=3cm
    begin{document}

    Textfootnote{First footnote}footnote{Second footnote}footnote{Third footnote} Textfootnote{Fourth footnote} Text

    end{document}









    share|improve this question


























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      The posting Incompatibility between footmisc-option multiple and hyperref
      contains a solution to having consecutive footnote markers hyper-linked and automatically separated by raised commas.



      How to have the same when there is a sequence of footnotes and footcites, such as



      Textfootnote{First footnote}footcite{firstcitation}footnote{citation}


      This is the solution on the linked page:



      documentclass{article}
      usepackage{hyperref}

      letoldFootnotefootnote
      newcommandnextTokenrelax

      renewcommandfootnote[1]{%
      oldFootnote{#1}futureletnextTokenisFootnote}

      newcommandisFootnote{%
      ifxfootnotenextTokentextsuperscript{,}fi}

      textheight=3cm
      begin{document}

      Textfootnote{First footnote}footnote{Second footnote}footnote{Third footnote} Textfootnote{Fourth footnote} Text

      end{document}









      share|improve this question















      The posting Incompatibility between footmisc-option multiple and hyperref
      contains a solution to having consecutive footnote markers hyper-linked and automatically separated by raised commas.



      How to have the same when there is a sequence of footnotes and footcites, such as



      Textfootnote{First footnote}footcite{firstcitation}footnote{citation}


      This is the solution on the linked page:



      documentclass{article}
      usepackage{hyperref}

      letoldFootnotefootnote
      newcommandnextTokenrelax

      renewcommandfootnote[1]{%
      oldFootnote{#1}futureletnextTokenisFootnote}

      newcommandisFootnote{%
      ifxfootnotenextTokentextsuperscript{,}fi}

      textheight=3cm
      begin{document}

      Textfootnote{First footnote}footnote{Second footnote}footnote{Third footnote} Textfootnote{Fourth footnote} Text

      end{document}






      biblatex hyperref footnotes citing






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:35









      Community

      1




      1










      asked Jan 2 '16 at 19:03









      Koala

      34727




      34727






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          The solution to your query involves making two additions to @Holle's code you quoted in your posting.




          • First, modify the isFootnote macro to test whether the very next token is either footnote or footcite (and, if the test is "true", to instruct LaTeX to insert textsuperscript{,}).


          • Second, renew the footcite macro in the same way the footnote macro has been renewed.



          enter image description here



          documentclass{article}
          usepackage{biblatex} % for 'footcite' macro
          usepackage[colorlinks]{hyperref}

          letoldFootnotefootnote
          letoldFootcitefootcite
          newcommandnextTokenrelax
          renewcommandfootnote[1]{%
          oldFootnote{#1}futureletnextTokenisFootnoteOrFootcite}
          renewcommandfootcite[1]{%
          oldFootcite{#1}futureletnextTokenisFootnoteOrFootcite}
          newcommandisFootnoteOrFootcite{%
          ifxfootnotenextTokentextsuperscript{,}%
          elseifxfootcitenextTokentextsuperscript{,}fi%
          fi}

          setlengthtextheight{3cm} % just for this example
          begin{document}

          Text.footnote{First footnote}footcite{An entry to be cited}footcite{Another entry to be cited}footnote{Second footnote}
          More text

          end{document}





          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%2f285619%2fhyperlinked-footnote-and-footcite-markers-automatically-separated-by-raised-comm%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
            1
            down vote



            accepted










            The solution to your query involves making two additions to @Holle's code you quoted in your posting.




            • First, modify the isFootnote macro to test whether the very next token is either footnote or footcite (and, if the test is "true", to instruct LaTeX to insert textsuperscript{,}).


            • Second, renew the footcite macro in the same way the footnote macro has been renewed.



            enter image description here



            documentclass{article}
            usepackage{biblatex} % for 'footcite' macro
            usepackage[colorlinks]{hyperref}

            letoldFootnotefootnote
            letoldFootcitefootcite
            newcommandnextTokenrelax
            renewcommandfootnote[1]{%
            oldFootnote{#1}futureletnextTokenisFootnoteOrFootcite}
            renewcommandfootcite[1]{%
            oldFootcite{#1}futureletnextTokenisFootnoteOrFootcite}
            newcommandisFootnoteOrFootcite{%
            ifxfootnotenextTokentextsuperscript{,}%
            elseifxfootcitenextTokentextsuperscript{,}fi%
            fi}

            setlengthtextheight{3cm} % just for this example
            begin{document}

            Text.footnote{First footnote}footcite{An entry to be cited}footcite{Another entry to be cited}footnote{Second footnote}
            More text

            end{document}





            share|improve this answer



























              up vote
              1
              down vote



              accepted










              The solution to your query involves making two additions to @Holle's code you quoted in your posting.




              • First, modify the isFootnote macro to test whether the very next token is either footnote or footcite (and, if the test is "true", to instruct LaTeX to insert textsuperscript{,}).


              • Second, renew the footcite macro in the same way the footnote macro has been renewed.



              enter image description here



              documentclass{article}
              usepackage{biblatex} % for 'footcite' macro
              usepackage[colorlinks]{hyperref}

              letoldFootnotefootnote
              letoldFootcitefootcite
              newcommandnextTokenrelax
              renewcommandfootnote[1]{%
              oldFootnote{#1}futureletnextTokenisFootnoteOrFootcite}
              renewcommandfootcite[1]{%
              oldFootcite{#1}futureletnextTokenisFootnoteOrFootcite}
              newcommandisFootnoteOrFootcite{%
              ifxfootnotenextTokentextsuperscript{,}%
              elseifxfootcitenextTokentextsuperscript{,}fi%
              fi}

              setlengthtextheight{3cm} % just for this example
              begin{document}

              Text.footnote{First footnote}footcite{An entry to be cited}footcite{Another entry to be cited}footnote{Second footnote}
              More text

              end{document}





              share|improve this answer

























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                The solution to your query involves making two additions to @Holle's code you quoted in your posting.




                • First, modify the isFootnote macro to test whether the very next token is either footnote or footcite (and, if the test is "true", to instruct LaTeX to insert textsuperscript{,}).


                • Second, renew the footcite macro in the same way the footnote macro has been renewed.



                enter image description here



                documentclass{article}
                usepackage{biblatex} % for 'footcite' macro
                usepackage[colorlinks]{hyperref}

                letoldFootnotefootnote
                letoldFootcitefootcite
                newcommandnextTokenrelax
                renewcommandfootnote[1]{%
                oldFootnote{#1}futureletnextTokenisFootnoteOrFootcite}
                renewcommandfootcite[1]{%
                oldFootcite{#1}futureletnextTokenisFootnoteOrFootcite}
                newcommandisFootnoteOrFootcite{%
                ifxfootnotenextTokentextsuperscript{,}%
                elseifxfootcitenextTokentextsuperscript{,}fi%
                fi}

                setlengthtextheight{3cm} % just for this example
                begin{document}

                Text.footnote{First footnote}footcite{An entry to be cited}footcite{Another entry to be cited}footnote{Second footnote}
                More text

                end{document}





                share|improve this answer














                The solution to your query involves making two additions to @Holle's code you quoted in your posting.




                • First, modify the isFootnote macro to test whether the very next token is either footnote or footcite (and, if the test is "true", to instruct LaTeX to insert textsuperscript{,}).


                • Second, renew the footcite macro in the same way the footnote macro has been renewed.



                enter image description here



                documentclass{article}
                usepackage{biblatex} % for 'footcite' macro
                usepackage[colorlinks]{hyperref}

                letoldFootnotefootnote
                letoldFootcitefootcite
                newcommandnextTokenrelax
                renewcommandfootnote[1]{%
                oldFootnote{#1}futureletnextTokenisFootnoteOrFootcite}
                renewcommandfootcite[1]{%
                oldFootcite{#1}futureletnextTokenisFootnoteOrFootcite}
                newcommandisFootnoteOrFootcite{%
                ifxfootnotenextTokentextsuperscript{,}%
                elseifxfootcitenextTokentextsuperscript{,}fi%
                fi}

                setlengthtextheight{3cm} % just for this example
                begin{document}

                Text.footnote{First footnote}footcite{An entry to be cited}footcite{Another entry to be cited}footnote{Second footnote}
                More text

                end{document}






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 13 '17 at 12:34









                Community

                1




                1










                answered Jan 2 '16 at 20:20









                Mico

                269k30366750




                269k30366750






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f285619%2fhyperlinked-footnote-and-footcite-markers-automatically-separated-by-raised-comm%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

                    サソリ

                    広島県道265号伴広島線

                    Accessing regular linux commands in Huawei's Dopra Linux