bibliography backreferences with hyperref: format individual page number Unicorn Meta Zoo #1:...
What is a 'Key' in computer science?
How to translate "red flag" into Spanish?
What is /etc/mtab in Linux?
Are these square matrices always diagonalisable?
Multiple options vs single option UI
Could moose/elk survive in the Amazon forest?
What if Force was not Mass times Acceleration?
What's parked in Mil Moscow helicopter plant?
Is a 5 watt UHF/VHF handheld considered QRP?
Israeli soda type drink
Implementing 3DES algorithm in Java: is my code secure?
Seek and ye shall find
With indentation set to `0em`, when using a line break, there is still an indentation of a size of a space
Additive group of local rings
My bank got bought out, am I now going to have to start filing tax returns in a different state?
AI positioning circles within an arc at equal distances and heights
Why did Israel vote against lifting the American embargo on Cuba?
Can I criticise the more senior developers around me for not writing clean code?
Is it acceptable to use working hours to read general interest books?
Putting Ant-Man on house arrest
Is accepting an invalid credit card number a security issue?
How to open locks without disable device?
Trumpet valves, lengths, and pitch
Determining the ideals of a quotient ring
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 1 min 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