bibliography backreferences with hyperref: format individual page number Unicorn Meta Zoo #1:...
Why didn't the Space Shuttle bounce back into space many times as possible so that it loose lot of kinetic energy over there?
As an international instructor, should I openly talk about my accent?
Who is Alexandra K. Trenfor? Did she say the quote?
Retract an already submitted recommendation letter (written for an undergrad student)
Multiple fireplaces in an apartment building?
Why did Israel vote against lifting the American embargo on Cuba?
Identify story/novel: Tribe on colonized planet, not aware of this. "Taboo," altitude sickness, robot guardian (60s? Young Adult?)
What *exactly* is electrical current, voltage, and resistance?
Israeli soda type drink
Is this homebrew racial feat, Stonehide, balanced?
How to keep bees out of canned beverages?
Split coins into combinations of different denominations
What is a 'Key' in computer science?
Is Bran literally the world's memory?
Dynamic Return Type
What's parked in Mil Moscow helicopter plant?
Has a Nobel Peace laureate ever been accused of war crimes?
Why did C use the -> operator instead of reusing the . operator?
What is it called when you ride around on your front wheel?
SQL Query not selecting all points that it should?
What is /etc/mtab in Linux?
Why is an operator the quantum mechanical analogue of an observable?
Why does the Cisco show run command not show the full version, while the show version command does?
How to count in linear time worst-case?
bibliography backreferences with hyperref: format individual page number
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manarahyperref with the backref=page optionBibliography with page numbersEnclosing Page Numbers using the `Backref=Pages` Extension of `Hyperref`Wrong links in bibliography using hyperref with options pagebackref and hypertexnames=falseFlushing right the pagebackrefs in the bibliography with hyperrefPage cited for bibliographyInserting phrase “Page” before page number in backref packagebibliography conflict vs hyperrefBibliography with hyperref packageHow to customize bibtex numbering in a document?
I would like to format the backreferences in italics when the citation is called from a custom command (but not otherwise).
I've been playing with both backrefxxx and backrefalt inside the custom command, but to no avail.
documentclass[a4paper,oneside,12pt]{book}
usepackage[backref=page]{hyperref}
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@book{companion,
author={Frank Mittelbach and Michel Goossens},
title={The LaTeX{} Companion},
year={2008},
publisher={Addison-Wesley},
isbn={0-201-36299-6},
}
end{filecontents*}
newcommand{mycite}[1]{ %%% first version I tried
letoldbackrefxxxbackrefxxx
renewcommand{backrefxxx}[3]{hyperlink{page.##1}{textit{##1}}}
cite{#1}
letbackrefxxxoldbackrefxxx %%%% If I comment this line, all backreferences are in italics; it I uncomment it, all are in normal font
}
renewcommand{mycite}[1]{ %%% second version I tried, same results
letoldbackrefbackref
letoldbackrefaltbackrefalt
renewcommand*{backref}{}
renewcommand*{backrefalt}[4]{textit{ifcase ##1 {}or {textit{##2}}else {textit{##2}}fi}}
cite{#1}
%letbackrefoldbackref
%letbackrefaltoldbackrefalt
}
begin{document}
cite{companion} %% the backreference to page 1 should be in normal font
newpage
mycite{companion} %% the backreference to page 2 should be in italics
newpage
cite{companion} %% the backreference to page 3 should be in normal font again
bibliographystyle{plain}
bibliography{jobname.bib}
end{document}
I see that this means that the backreferences are formatted all at the moment they are typeset, not at the moment the citation command is called;
and at the moment of typesetting, each of backrefxxx and backrefalt can have only one definition.
Is there any way to make some items in the list of backreferences have a different style than others?
bibliographies formatting hyperref back-referencing
add a comment |
I would like to format the backreferences in italics when the citation is called from a custom command (but not otherwise).
I've been playing with both backrefxxx and backrefalt inside the custom command, but to no avail.
documentclass[a4paper,oneside,12pt]{book}
usepackage[backref=page]{hyperref}
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@book{companion,
author={Frank Mittelbach and Michel Goossens},
title={The LaTeX{} Companion},
year={2008},
publisher={Addison-Wesley},
isbn={0-201-36299-6},
}
end{filecontents*}
newcommand{mycite}[1]{ %%% first version I tried
letoldbackrefxxxbackrefxxx
renewcommand{backrefxxx}[3]{hyperlink{page.##1}{textit{##1}}}
cite{#1}
letbackrefxxxoldbackrefxxx %%%% If I comment this line, all backreferences are in italics; it I uncomment it, all are in normal font
}
renewcommand{mycite}[1]{ %%% second version I tried, same results
letoldbackrefbackref
letoldbackrefaltbackrefalt
renewcommand*{backref}{}
renewcommand*{backrefalt}[4]{textit{ifcase ##1 {}or {textit{##2}}else {textit{##2}}fi}}
cite{#1}
%letbackrefoldbackref
%letbackrefaltoldbackrefalt
}
begin{document}
cite{companion} %% the backreference to page 1 should be in normal font
newpage
mycite{companion} %% the backreference to page 2 should be in italics
newpage
cite{companion} %% the backreference to page 3 should be in normal font again
bibliographystyle{plain}
bibliography{jobname.bib}
end{document}
I see that this means that the backreferences are formatted all at the moment they are typeset, not at the moment the citation command is called;
and at the moment of typesetting, each of backrefxxx and backrefalt can have only one definition.
Is there any way to make some items in the list of backreferences have a different style than others?
bibliographies formatting hyperref back-referencing
add a comment |
I would like to format the backreferences in italics when the citation is called from a custom command (but not otherwise).
I've been playing with both backrefxxx and backrefalt inside the custom command, but to no avail.
documentclass[a4paper,oneside,12pt]{book}
usepackage[backref=page]{hyperref}
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@book{companion,
author={Frank Mittelbach and Michel Goossens},
title={The LaTeX{} Companion},
year={2008},
publisher={Addison-Wesley},
isbn={0-201-36299-6},
}
end{filecontents*}
newcommand{mycite}[1]{ %%% first version I tried
letoldbackrefxxxbackrefxxx
renewcommand{backrefxxx}[3]{hyperlink{page.##1}{textit{##1}}}
cite{#1}
letbackrefxxxoldbackrefxxx %%%% If I comment this line, all backreferences are in italics; it I uncomment it, all are in normal font
}
renewcommand{mycite}[1]{ %%% second version I tried, same results
letoldbackrefbackref
letoldbackrefaltbackrefalt
renewcommand*{backref}{}
renewcommand*{backrefalt}[4]{textit{ifcase ##1 {}or {textit{##2}}else {textit{##2}}fi}}
cite{#1}
%letbackrefoldbackref
%letbackrefaltoldbackrefalt
}
begin{document}
cite{companion} %% the backreference to page 1 should be in normal font
newpage
mycite{companion} %% the backreference to page 2 should be in italics
newpage
cite{companion} %% the backreference to page 3 should be in normal font again
bibliographystyle{plain}
bibliography{jobname.bib}
end{document}
I see that this means that the backreferences are formatted all at the moment they are typeset, not at the moment the citation command is called;
and at the moment of typesetting, each of backrefxxx and backrefalt can have only one definition.
Is there any way to make some items in the list of backreferences have a different style than others?
bibliographies formatting hyperref back-referencing
I would like to format the backreferences in italics when the citation is called from a custom command (but not otherwise).
I've been playing with both backrefxxx and backrefalt inside the custom command, but to no avail.
documentclass[a4paper,oneside,12pt]{book}
usepackage[backref=page]{hyperref}
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@book{companion,
author={Frank Mittelbach and Michel Goossens},
title={The LaTeX{} Companion},
year={2008},
publisher={Addison-Wesley},
isbn={0-201-36299-6},
}
end{filecontents*}
newcommand{mycite}[1]{ %%% first version I tried
letoldbackrefxxxbackrefxxx
renewcommand{backrefxxx}[3]{hyperlink{page.##1}{textit{##1}}}
cite{#1}
letbackrefxxxoldbackrefxxx %%%% If I comment this line, all backreferences are in italics; it I uncomment it, all are in normal font
}
renewcommand{mycite}[1]{ %%% second version I tried, same results
letoldbackrefbackref
letoldbackrefaltbackrefalt
renewcommand*{backref}{}
renewcommand*{backrefalt}[4]{textit{ifcase ##1 {}or {textit{##2}}else {textit{##2}}fi}}
cite{#1}
%letbackrefoldbackref
%letbackrefaltoldbackrefalt
}
begin{document}
cite{companion} %% the backreference to page 1 should be in normal font
newpage
mycite{companion} %% the backreference to page 2 should be in italics
newpage
cite{companion} %% the backreference to page 3 should be in normal font again
bibliographystyle{plain}
bibliography{jobname.bib}
end{document}
I see that this means that the backreferences are formatted all at the moment they are typeset, not at the moment the citation command is called;
and at the moment of typesetting, each of backrefxxx and backrefalt can have only one definition.
Is there any way to make some items in the list of backreferences have a different style than others?
bibliographies formatting hyperref back-referencing
bibliographies formatting hyperref back-referencing
asked 17 mins ago
Ansa211Ansa211
1476
1476
add a comment |
add a comment |
0
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2f487456%2fbibliography-backreferences-with-hyperref-format-individual-page-number%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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%2f487456%2fbibliography-backreferences-with-hyperref-format-individual-page-number%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