Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)
I have a Zotero bibliography in Overleaf. I use biblatex
.
usepackage[backend=biber,citestyle=authoryear]{biblatex}
addbibresource{zoteroALH.bib}
Bibliography entries look like:
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
In the bibliography down the paper the reference shows like this:
There is the DOI, great, but also the URL which is unnecessary when the DOI is there.
How can I remove the URL when the DOI is present?
biblatex bibliographies overleaf zotero
add a comment |
I have a Zotero bibliography in Overleaf. I use biblatex
.
usepackage[backend=biber,citestyle=authoryear]{biblatex}
addbibresource{zoteroALH.bib}
Bibliography entries look like:
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
In the bibliography down the paper the reference shows like this:
There is the DOI, great, but also the URL which is unnecessary when the DOI is there.
How can I remove the URL when the DOI is present?
biblatex bibliographies overleaf zotero
add a comment |
I have a Zotero bibliography in Overleaf. I use biblatex
.
usepackage[backend=biber,citestyle=authoryear]{biblatex}
addbibresource{zoteroALH.bib}
Bibliography entries look like:
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
In the bibliography down the paper the reference shows like this:
There is the DOI, great, but also the URL which is unnecessary when the DOI is there.
How can I remove the URL when the DOI is present?
biblatex bibliographies overleaf zotero
I have a Zotero bibliography in Overleaf. I use biblatex
.
usepackage[backend=biber,citestyle=authoryear]{biblatex}
addbibresource{zoteroALH.bib}
Bibliography entries look like:
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
In the bibliography down the paper the reference shows like this:
There is the DOI, great, but also the URL which is unnecessary when the DOI is there.
How can I remove the URL when the DOI is present?
biblatex bibliographies overleaf zotero
biblatex bibliographies overleaf zotero
asked Feb 6 at 13:49
the world is not flatthe world is not flat
1608
1608
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I really thought there would be a duplicate, but I could not find a good one. (Biblatex: use doi only if there is no URL asks for the opposite and has a sourcemap solution. Redundancy in bib file: conditionally suppress url if same as doi? is asking for something slightly different and is not specific to biblatex
, but has some biblatex
answers, none of them uses a sourcemap, though. Print url only if doi not present is very close, the question additionally asks about eprint
, but that could probably be ignored.)
My preferred solution would be to use a Biber sourcemap to completely remove the url
and urldate
field if the doi
is present.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=authoryear, backend=biber]{biblatex}
usepackage[colorlinks]{hyperref}
DeclareSourcemap{
maps[datatype=bibtex]{
map{
step[fieldsource=doi,final]
step[fieldset=url,null]
step[fieldset=urldate,null]
}
}
}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
cite{de_saint-gervais_uniformization_2016}
printbibliography
end{document}
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%2f473622%2fbiblatex-bibliography-style-without-urls-when-doi-exists-in-overleaf-with-zoter%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
I really thought there would be a duplicate, but I could not find a good one. (Biblatex: use doi only if there is no URL asks for the opposite and has a sourcemap solution. Redundancy in bib file: conditionally suppress url if same as doi? is asking for something slightly different and is not specific to biblatex
, but has some biblatex
answers, none of them uses a sourcemap, though. Print url only if doi not present is very close, the question additionally asks about eprint
, but that could probably be ignored.)
My preferred solution would be to use a Biber sourcemap to completely remove the url
and urldate
field if the doi
is present.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=authoryear, backend=biber]{biblatex}
usepackage[colorlinks]{hyperref}
DeclareSourcemap{
maps[datatype=bibtex]{
map{
step[fieldsource=doi,final]
step[fieldset=url,null]
step[fieldset=urldate,null]
}
}
}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
cite{de_saint-gervais_uniformization_2016}
printbibliography
end{document}
add a comment |
I really thought there would be a duplicate, but I could not find a good one. (Biblatex: use doi only if there is no URL asks for the opposite and has a sourcemap solution. Redundancy in bib file: conditionally suppress url if same as doi? is asking for something slightly different and is not specific to biblatex
, but has some biblatex
answers, none of them uses a sourcemap, though. Print url only if doi not present is very close, the question additionally asks about eprint
, but that could probably be ignored.)
My preferred solution would be to use a Biber sourcemap to completely remove the url
and urldate
field if the doi
is present.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=authoryear, backend=biber]{biblatex}
usepackage[colorlinks]{hyperref}
DeclareSourcemap{
maps[datatype=bibtex]{
map{
step[fieldsource=doi,final]
step[fieldset=url,null]
step[fieldset=urldate,null]
}
}
}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
cite{de_saint-gervais_uniformization_2016}
printbibliography
end{document}
add a comment |
I really thought there would be a duplicate, but I could not find a good one. (Biblatex: use doi only if there is no URL asks for the opposite and has a sourcemap solution. Redundancy in bib file: conditionally suppress url if same as doi? is asking for something slightly different and is not specific to biblatex
, but has some biblatex
answers, none of them uses a sourcemap, though. Print url only if doi not present is very close, the question additionally asks about eprint
, but that could probably be ignored.)
My preferred solution would be to use a Biber sourcemap to completely remove the url
and urldate
field if the doi
is present.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=authoryear, backend=biber]{biblatex}
usepackage[colorlinks]{hyperref}
DeclareSourcemap{
maps[datatype=bibtex]{
map{
step[fieldsource=doi,final]
step[fieldset=url,null]
step[fieldset=urldate,null]
}
}
}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
cite{de_saint-gervais_uniformization_2016}
printbibliography
end{document}
I really thought there would be a duplicate, but I could not find a good one. (Biblatex: use doi only if there is no URL asks for the opposite and has a sourcemap solution. Redundancy in bib file: conditionally suppress url if same as doi? is asking for something slightly different and is not specific to biblatex
, but has some biblatex
answers, none of them uses a sourcemap, though. Print url only if doi not present is very close, the question additionally asks about eprint
, but that could probably be ignored.)
My preferred solution would be to use a Biber sourcemap to completely remove the url
and urldate
field if the doi
is present.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=authoryear, backend=biber]{biblatex}
usepackage[colorlinks]{hyperref}
DeclareSourcemap{
maps[datatype=bibtex]{
map{
step[fieldsource=doi,final]
step[fieldset=url,null]
step[fieldset=urldate,null]
}
}
}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{de_saint-gervais_uniformization_2016,
title = {Uniformization of {Riemann} {Surfaces}},
isbn = {978-3-03719-145-3},
url = {https://www.ems-ph.org/books/book.php?proj_nr=198&srch=series%7Chem},
urldate = {2019-02-03},
author = {de Saint-Gervais, Paul Henri},
year = {2016},
doi = {10.4171/145}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
cite{de_saint-gervais_uniformization_2016}
printbibliography
end{document}
edited Feb 6 at 14:07
answered Feb 6 at 13:54
moewemoewe
90.7k10114343
90.7k10114343
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%2f473622%2fbiblatex-bibliography-style-without-urls-when-doi-exists-in-overleaf-with-zoter%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