Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)












2















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: enter image description here
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?










share|improve this question



























    2















    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: enter image description here
    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?










    share|improve this question

























      2












      2








      2


      2






      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: enter image description here
      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?










      share|improve this question














      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: enter image description here
      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 6 at 13:49









      the world is not flatthe world is not flat

      1608




      1608






















          1 Answer
          1






          active

          oldest

          votes


















          4














          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}


          Saint-Gervais, Paul Henri de (2016). Uniformization of Riemann Surfaces. isbn: 978-3-03719-145-3. doi: 10.4171/145.






          share|improve this answer

























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            4














            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}


            Saint-Gervais, Paul Henri de (2016). Uniformization of Riemann Surfaces. isbn: 978-3-03719-145-3. doi: 10.4171/145.






            share|improve this answer






























              4














              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}


              Saint-Gervais, Paul Henri de (2016). Uniformization of Riemann Surfaces. isbn: 978-3-03719-145-3. doi: 10.4171/145.






              share|improve this answer




























                4












                4








                4







                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}


                Saint-Gervais, Paul Henri de (2016). Uniformization of Riemann Surfaces. isbn: 978-3-03719-145-3. doi: 10.4171/145.






                share|improve this answer















                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}


                Saint-Gervais, Paul Henri de (2016). Uniformization of Riemann Surfaces. isbn: 978-3-03719-145-3. doi: 10.4171/145.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 6 at 14:07

























                answered Feb 6 at 13:54









                moewemoewe

                90.7k10114343




                90.7k10114343






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?