Supercite with square brackets
Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):

MWE (comment the 3rd line in to reproduce the error):
documentclass{article}
usepackage{filecontents}
%usepackage[style=chem-angew]{biblatex} % fails
usepackage{biblatex}
DeclareCiteCommand{supercite}[mkbibsuperscript]
{iffieldundef{prenote}
{}
{BibliographyWarning{Ignoring prenote argument}}%
iffieldundef{postnote}
{}
{BibliographyWarning{Ignoring postnote argument}}%
bibopenbracket}%
{usebibmacro{citeindex}%
usebibmacro{cite}}
{supercitedelim}
{bibclosebracket}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
letcite=supercite
begin{document}
Citing supercite{A01, A02}.
printbibliography
end{document}
Output without style option:

biblatex citing
add a comment |
Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):

MWE (comment the 3rd line in to reproduce the error):
documentclass{article}
usepackage{filecontents}
%usepackage[style=chem-angew]{biblatex} % fails
usepackage{biblatex}
DeclareCiteCommand{supercite}[mkbibsuperscript]
{iffieldundef{prenote}
{}
{BibliographyWarning{Ignoring prenote argument}}%
iffieldundef{postnote}
{}
{BibliographyWarning{Ignoring postnote argument}}%
bibopenbracket}%
{usebibmacro{citeindex}%
usebibmacro{cite}}
{supercitedelim}
{bibclosebracket}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
letcite=supercite
begin{document}
Citing supercite{A01, A02}.
printbibliography
end{document}
Output without style option:

biblatex citing
add a comment |
Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):

MWE (comment the 3rd line in to reproduce the error):
documentclass{article}
usepackage{filecontents}
%usepackage[style=chem-angew]{biblatex} % fails
usepackage{biblatex}
DeclareCiteCommand{supercite}[mkbibsuperscript]
{iffieldundef{prenote}
{}
{BibliographyWarning{Ignoring prenote argument}}%
iffieldundef{postnote}
{}
{BibliographyWarning{Ignoring postnote argument}}%
bibopenbracket}%
{usebibmacro{citeindex}%
usebibmacro{cite}}
{supercitedelim}
{bibclosebracket}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
letcite=supercite
begin{document}
Citing supercite{A01, A02}.
printbibliography
end{document}
Output without style option:

biblatex citing
Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):

MWE (comment the 3rd line in to reproduce the error):
documentclass{article}
usepackage{filecontents}
%usepackage[style=chem-angew]{biblatex} % fails
usepackage{biblatex}
DeclareCiteCommand{supercite}[mkbibsuperscript]
{iffieldundef{prenote}
{}
{BibliographyWarning{Ignoring prenote argument}}%
iffieldundef{postnote}
{}
{BibliographyWarning{Ignoring postnote argument}}%
bibopenbracket}%
{usebibmacro{citeindex}%
usebibmacro{cite}}
{supercitedelim}
{bibclosebracket}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
letcite=supercite
begin{document}
Citing supercite{A01, A02}.
printbibliography
end{document}
Output without style option:

biblatex citing
biblatex citing
edited Apr 13 '17 at 12:34
Community♦
1
1
asked Jan 11 '16 at 21:34
Reto HöhenerReto Höhener
1585
1585
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Ok, turns out that the chem-angew style already does everything, if I would just let it.
The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.
Just changing the style to chem-angew was all that was needed:
documentclass{article}
usepackage{hyperref}
usepackage[usenames, dvipsnames]{color}
hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
%usepackage[style=chem-acs]{biblatex}
usepackage[style=chem-angew]{biblatex}
usepackage{filecontents}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
begin{document}
Citing autocite{A01, A02}.
printbibliography
end{document}
chem-acs:
chem-angew: 
add a comment |
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%2f287151%2fsupercite-with-square-brackets%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ok, turns out that the chem-angew style already does everything, if I would just let it.
The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.
Just changing the style to chem-angew was all that was needed:
documentclass{article}
usepackage{hyperref}
usepackage[usenames, dvipsnames]{color}
hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
%usepackage[style=chem-acs]{biblatex}
usepackage[style=chem-angew]{biblatex}
usepackage{filecontents}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
begin{document}
Citing autocite{A01, A02}.
printbibliography
end{document}
chem-acs:
chem-angew: 
add a comment |
Ok, turns out that the chem-angew style already does everything, if I would just let it.
The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.
Just changing the style to chem-angew was all that was needed:
documentclass{article}
usepackage{hyperref}
usepackage[usenames, dvipsnames]{color}
hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
%usepackage[style=chem-acs]{biblatex}
usepackage[style=chem-angew]{biblatex}
usepackage{filecontents}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
begin{document}
Citing autocite{A01, A02}.
printbibliography
end{document}
chem-acs:
chem-angew: 
add a comment |
Ok, turns out that the chem-angew style already does everything, if I would just let it.
The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.
Just changing the style to chem-angew was all that was needed:
documentclass{article}
usepackage{hyperref}
usepackage[usenames, dvipsnames]{color}
hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
%usepackage[style=chem-acs]{biblatex}
usepackage[style=chem-angew]{biblatex}
usepackage{filecontents}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
begin{document}
Citing autocite{A01, A02}.
printbibliography
end{document}
chem-acs:
chem-angew: 
Ok, turns out that the chem-angew style already does everything, if I would just let it.
The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.
Just changing the style to chem-angew was all that was needed:
documentclass{article}
usepackage{hyperref}
usepackage[usenames, dvipsnames]{color}
hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
%usepackage[style=chem-acs]{biblatex}
usepackage[style=chem-angew]{biblatex}
usepackage{filecontents}
begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
begin{document}
Citing autocite{A01, A02}.
printbibliography
end{document}
chem-acs:
chem-angew: 
answered Jan 11 '16 at 22:28
Reto HöhenerReto Höhener
1585
1585
add a comment |
add a comment |
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%2f287151%2fsupercite-with-square-brackets%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