footnoteref (= modified footnotemark) works perfectly fine *outside* of chapters but not within them











up vote
1
down vote

favorite












Because I need a reference to the same footnote, I like to use footnoteref which is defined here.



Writing



documentclass[12pt,a4paper]{report}
usepackage[british]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage[bottom,hang]{footmisc}
usepackage{hyperref}
usepackage{zref-perpage}
usepackage[gen]{eurosym}
usepackage{footnote}
makesavenoteenv{tabular}
makesavenoteenv{equation}
zmakeperpage{footnote}

% Remove counter "footnote" from the reset counter list
% of counter "chapter".
usepackage{remreset}
makeatletter
@removefromreset{footnote}{chapter}
makeatother
usepackage[labelfont=bf]{caption}

makeatletter
newcommandfootnoteref[1]{protected@xdef@thefnmark{ref{#1}}@footnotemark}
makeatother

begin{document}
begin{equation}
begin{tabular}{@{} l r @{}}
Woodfootnote{label{one}Footnote for wood.} & 10,000 euro\
Steel & 25,000 euro\
Coal & 5,000 euro\
Oil & 100,000 euro\
hline
Sum & 140,000 euro
end{tabular}
end{equation}
begin{equation}
begin{tabular}{@{} l r @{}}
Woodfootnoteref{one} & 10,000 euro\
Steel & 25,000 euro\
Coal & 5,000 euro\
Oil & 100,000 euro\
hline
Sum & 140,000 euro
end{tabular}
end{equation}
end{document}


results in



enter image description here



which is the result I would like to have. But inserting chapter{One} between begin{document} and the first begin{equation} will result in



enter image description here



which I would not like to have.



Where is the error in this whole thing? I cannot find it. I suppose that the definition of footnoteref has to be modified in order to solve the problem. Or maybe some chapter/equation numbering has to be modified.










share|improve this question




























    up vote
    1
    down vote

    favorite












    Because I need a reference to the same footnote, I like to use footnoteref which is defined here.



    Writing



    documentclass[12pt,a4paper]{report}
    usepackage[british]{babel}
    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage{amsmath}
    usepackage{amsfonts}
    usepackage{amssymb}
    usepackage[bottom,hang]{footmisc}
    usepackage{hyperref}
    usepackage{zref-perpage}
    usepackage[gen]{eurosym}
    usepackage{footnote}
    makesavenoteenv{tabular}
    makesavenoteenv{equation}
    zmakeperpage{footnote}

    % Remove counter "footnote" from the reset counter list
    % of counter "chapter".
    usepackage{remreset}
    makeatletter
    @removefromreset{footnote}{chapter}
    makeatother
    usepackage[labelfont=bf]{caption}

    makeatletter
    newcommandfootnoteref[1]{protected@xdef@thefnmark{ref{#1}}@footnotemark}
    makeatother

    begin{document}
    begin{equation}
    begin{tabular}{@{} l r @{}}
    Woodfootnote{label{one}Footnote for wood.} & 10,000 euro\
    Steel & 25,000 euro\
    Coal & 5,000 euro\
    Oil & 100,000 euro\
    hline
    Sum & 140,000 euro
    end{tabular}
    end{equation}
    begin{equation}
    begin{tabular}{@{} l r @{}}
    Woodfootnoteref{one} & 10,000 euro\
    Steel & 25,000 euro\
    Coal & 5,000 euro\
    Oil & 100,000 euro\
    hline
    Sum & 140,000 euro
    end{tabular}
    end{equation}
    end{document}


    results in



    enter image description here



    which is the result I would like to have. But inserting chapter{One} between begin{document} and the first begin{equation} will result in



    enter image description here



    which I would not like to have.



    Where is the error in this whole thing? I cannot find it. I suppose that the definition of footnoteref has to be modified in order to solve the problem. Or maybe some chapter/equation numbering has to be modified.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Because I need a reference to the same footnote, I like to use footnoteref which is defined here.



      Writing



      documentclass[12pt,a4paper]{report}
      usepackage[british]{babel}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage[bottom,hang]{footmisc}
      usepackage{hyperref}
      usepackage{zref-perpage}
      usepackage[gen]{eurosym}
      usepackage{footnote}
      makesavenoteenv{tabular}
      makesavenoteenv{equation}
      zmakeperpage{footnote}

      % Remove counter "footnote" from the reset counter list
      % of counter "chapter".
      usepackage{remreset}
      makeatletter
      @removefromreset{footnote}{chapter}
      makeatother
      usepackage[labelfont=bf]{caption}

      makeatletter
      newcommandfootnoteref[1]{protected@xdef@thefnmark{ref{#1}}@footnotemark}
      makeatother

      begin{document}
      begin{equation}
      begin{tabular}{@{} l r @{}}
      Woodfootnote{label{one}Footnote for wood.} & 10,000 euro\
      Steel & 25,000 euro\
      Coal & 5,000 euro\
      Oil & 100,000 euro\
      hline
      Sum & 140,000 euro
      end{tabular}
      end{equation}
      begin{equation}
      begin{tabular}{@{} l r @{}}
      Woodfootnoteref{one} & 10,000 euro\
      Steel & 25,000 euro\
      Coal & 5,000 euro\
      Oil & 100,000 euro\
      hline
      Sum & 140,000 euro
      end{tabular}
      end{equation}
      end{document}


      results in



      enter image description here



      which is the result I would like to have. But inserting chapter{One} between begin{document} and the first begin{equation} will result in



      enter image description here



      which I would not like to have.



      Where is the error in this whole thing? I cannot find it. I suppose that the definition of footnoteref has to be modified in order to solve the problem. Or maybe some chapter/equation numbering has to be modified.










      share|improve this question















      Because I need a reference to the same footnote, I like to use footnoteref which is defined here.



      Writing



      documentclass[12pt,a4paper]{report}
      usepackage[british]{babel}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage[bottom,hang]{footmisc}
      usepackage{hyperref}
      usepackage{zref-perpage}
      usepackage[gen]{eurosym}
      usepackage{footnote}
      makesavenoteenv{tabular}
      makesavenoteenv{equation}
      zmakeperpage{footnote}

      % Remove counter "footnote" from the reset counter list
      % of counter "chapter".
      usepackage{remreset}
      makeatletter
      @removefromreset{footnote}{chapter}
      makeatother
      usepackage[labelfont=bf]{caption}

      makeatletter
      newcommandfootnoteref[1]{protected@xdef@thefnmark{ref{#1}}@footnotemark}
      makeatother

      begin{document}
      begin{equation}
      begin{tabular}{@{} l r @{}}
      Woodfootnote{label{one}Footnote for wood.} & 10,000 euro\
      Steel & 25,000 euro\
      Coal & 5,000 euro\
      Oil & 100,000 euro\
      hline
      Sum & 140,000 euro
      end{tabular}
      end{equation}
      begin{equation}
      begin{tabular}{@{} l r @{}}
      Woodfootnoteref{one} & 10,000 euro\
      Steel & 25,000 euro\
      Coal & 5,000 euro\
      Oil & 100,000 euro\
      hline
      Sum & 140,000 euro
      end{tabular}
      end{equation}
      end{document}


      results in



      enter image description here



      which is the result I would like to have. But inserting chapter{One} between begin{document} and the first begin{equation} will result in



      enter image description here



      which I would not like to have.



      Where is the error in this whole thing? I cannot find it. I suppose that the definition of footnoteref has to be modified in order to solve the problem. Or maybe some chapter/equation numbering has to be modified.







      hyperref cross-referencing footnotes chapters ref






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 16 hours ago

























      asked yesterday









      Nemgathos

      2817




      2817



























          active

          oldest

          votes











          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%2f461079%2ffootnoteref-modified-footnotemark-works-perfectly-fine-outside-of-chapte%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461079%2ffootnoteref-modified-footnotemark-works-perfectly-fine-outside-of-chapte%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