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}
biblatex hyperref footnotes citing
add a comment |
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}
biblatex hyperref footnotes citing
add a comment |
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}
biblatex hyperref footnotes citing
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
biblatex hyperref footnotes citing
edited Apr 13 '17 at 12:35
Community♦
1
1
asked Jan 2 '16 at 19:03
Koala
34727
34727
add a comment |
add a comment |
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 eitherfootnote
orfootcite
(and, if the test is "true", to instruct LaTeX to inserttextsuperscript{,}
).Second, renew the
footcite
macro in the same way thefootnote
macro has been renewed.
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}
add a comment |
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 eitherfootnote
orfootcite
(and, if the test is "true", to instruct LaTeX to inserttextsuperscript{,}
).Second, renew the
footcite
macro in the same way thefootnote
macro has been renewed.
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}
add a comment |
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 eitherfootnote
orfootcite
(and, if the test is "true", to instruct LaTeX to inserttextsuperscript{,}
).Second, renew the
footcite
macro in the same way thefootnote
macro has been renewed.
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}
add a comment |
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 eitherfootnote
orfootcite
(and, if the test is "true", to instruct LaTeX to inserttextsuperscript{,}
).Second, renew the
footcite
macro in the same way thefootnote
macro has been renewed.
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}
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 eitherfootnote
orfootcite
(and, if the test is "true", to instruct LaTeX to inserttextsuperscript{,}
).Second, renew the
footcite
macro in the same way thefootnote
macro has been renewed.
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}
edited Apr 13 '17 at 12:34
Community♦
1
1
answered Jan 2 '16 at 20:20
Mico
269k30366750
269k30366750
add a comment |
add a comment |
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%2f285619%2fhyperlinked-footnote-and-footcite-markers-automatically-separated-by-raised-comm%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