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
which is the result I would like to have. But inserting chapter{One}
between begin{document}
and the first begin{equation}
will result in
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
add a comment |
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
which is the result I would like to have. But inserting chapter{One}
between begin{document}
and the first begin{equation}
will result in
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
add a comment |
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
which is the result I would like to have. But inserting chapter{One}
between begin{document}
and the first begin{equation}
will result in
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
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
which is the result I would like to have. But inserting chapter{One}
between begin{document}
and the first begin{equation}
will result in
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
hyperref cross-referencing footnotes chapters ref
edited 16 hours ago
asked yesterday
Nemgathos
2817
2817
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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