Add a point after the URL with biblatex












1














How can I add a point after the URL with biblatex?



RequirePackage{filecontents}
begin{filecontents}{jobname.bib}
@Electronic{musk,
author = {Elon Musk},
title = {Tesla Model X},
url = {https://www.tesla.com/modelx?redirect=no},
date = {2017-07-04},
institution = {Tesla},
urldate = {2018-10-16}}
}
end{filecontents}

documentclass{article}
usepackage[style=authortitle,]{biblatex}
addbibresource{jobname.bib}
begin{document}
Let's cite! footcite{musk}
printbibliography
end{document}









share|improve this question




















  • 1




    and also a dot at the end (after urldate)?? Looks a bit curious ... However, try after biblatex package renewbibmacro*{url}{printfield{url}adddot}
    – Herbert
    Dec 11 '18 at 19:54












  • Thank you! It indeed looks strange but this is is a requirement.
    – derd
    Dec 11 '18 at 20:14
















1














How can I add a point after the URL with biblatex?



RequirePackage{filecontents}
begin{filecontents}{jobname.bib}
@Electronic{musk,
author = {Elon Musk},
title = {Tesla Model X},
url = {https://www.tesla.com/modelx?redirect=no},
date = {2017-07-04},
institution = {Tesla},
urldate = {2018-10-16}}
}
end{filecontents}

documentclass{article}
usepackage[style=authortitle,]{biblatex}
addbibresource{jobname.bib}
begin{document}
Let's cite! footcite{musk}
printbibliography
end{document}









share|improve this question




















  • 1




    and also a dot at the end (after urldate)?? Looks a bit curious ... However, try after biblatex package renewbibmacro*{url}{printfield{url}adddot}
    – Herbert
    Dec 11 '18 at 19:54












  • Thank you! It indeed looks strange but this is is a requirement.
    – derd
    Dec 11 '18 at 20:14














1












1








1







How can I add a point after the URL with biblatex?



RequirePackage{filecontents}
begin{filecontents}{jobname.bib}
@Electronic{musk,
author = {Elon Musk},
title = {Tesla Model X},
url = {https://www.tesla.com/modelx?redirect=no},
date = {2017-07-04},
institution = {Tesla},
urldate = {2018-10-16}}
}
end{filecontents}

documentclass{article}
usepackage[style=authortitle,]{biblatex}
addbibresource{jobname.bib}
begin{document}
Let's cite! footcite{musk}
printbibliography
end{document}









share|improve this question















How can I add a point after the URL with biblatex?



RequirePackage{filecontents}
begin{filecontents}{jobname.bib}
@Electronic{musk,
author = {Elon Musk},
title = {Tesla Model X},
url = {https://www.tesla.com/modelx?redirect=no},
date = {2017-07-04},
institution = {Tesla},
urldate = {2018-10-16}}
}
end{filecontents}

documentclass{article}
usepackage[style=authortitle,]{biblatex}
addbibresource{jobname.bib}
begin{document}
Let's cite! footcite{musk}
printbibliography
end{document}






biblatex bibliographies






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 '18 at 20:10

























asked Dec 11 '18 at 19:43









derd

575




575








  • 1




    and also a dot at the end (after urldate)?? Looks a bit curious ... However, try after biblatex package renewbibmacro*{url}{printfield{url}adddot}
    – Herbert
    Dec 11 '18 at 19:54












  • Thank you! It indeed looks strange but this is is a requirement.
    – derd
    Dec 11 '18 at 20:14














  • 1




    and also a dot at the end (after urldate)?? Looks a bit curious ... However, try after biblatex package renewbibmacro*{url}{printfield{url}adddot}
    – Herbert
    Dec 11 '18 at 19:54












  • Thank you! It indeed looks strange but this is is a requirement.
    – derd
    Dec 11 '18 at 20:14








1




1




and also a dot at the end (after urldate)?? Looks a bit curious ... However, try after biblatex package renewbibmacro*{url}{printfield{url}adddot}
– Herbert
Dec 11 '18 at 19:54






and also a dot at the end (after urldate)?? Looks a bit curious ... However, try after biblatex package renewbibmacro*{url}{printfield{url}adddot}
– Herbert
Dec 11 '18 at 19:54














Thank you! It indeed looks strange but this is is a requirement.
– derd
Dec 11 '18 at 20:14




Thank you! It indeed looks strange but this is is a requirement.
– derd
Dec 11 '18 at 20:14










1 Answer
1






active

oldest

votes


















1














If you also remove the parentheses around the urldate as in Biblatex change last visited it does not look that bad.



We only need to redefine the bibmacro url+urldate and change setunit*{addspace}% to setunit*{newunitpunct}%.



RequirePackage{filecontents}
begin{filecontents}{jobname.bib}
@online{musk,
author = {Elon Musk},
title = {Tesla Model X},
url = {https://www.tesla.com/modelx?redirect=no},
date = {2017-07-04},
institution = {Tesla},
urldate = {2018-10-16},
}
end{filecontents}

documentclass{article}
usepackage[style=authortitle,]{biblatex}


DeclareFieldFormat{urldate}{bibstring{urlseen}space#1}

renewbibmacro*{url+urldate}{%
usebibmacro{url}%
iffieldundef{urlyear}
{}
{setunit*{newunitpunct}%
usebibmacro{urldate}}}

addbibresource{jobname.bib}
begin{document}
Let's cite! footcite{musk}
printbibliography
end{document}


Musk, Elon. Tesla Model X. July 4, 2017. url: https://www.tesla.com/modelx?redirect=no. Visited on 10/16/2018.






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%2f464383%2fadd-a-point-after-the-url-with-biblatex%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









    1














    If you also remove the parentheses around the urldate as in Biblatex change last visited it does not look that bad.



    We only need to redefine the bibmacro url+urldate and change setunit*{addspace}% to setunit*{newunitpunct}%.



    RequirePackage{filecontents}
    begin{filecontents}{jobname.bib}
    @online{musk,
    author = {Elon Musk},
    title = {Tesla Model X},
    url = {https://www.tesla.com/modelx?redirect=no},
    date = {2017-07-04},
    institution = {Tesla},
    urldate = {2018-10-16},
    }
    end{filecontents}

    documentclass{article}
    usepackage[style=authortitle,]{biblatex}


    DeclareFieldFormat{urldate}{bibstring{urlseen}space#1}

    renewbibmacro*{url+urldate}{%
    usebibmacro{url}%
    iffieldundef{urlyear}
    {}
    {setunit*{newunitpunct}%
    usebibmacro{urldate}}}

    addbibresource{jobname.bib}
    begin{document}
    Let's cite! footcite{musk}
    printbibliography
    end{document}


    Musk, Elon. Tesla Model X. July 4, 2017. url: https://www.tesla.com/modelx?redirect=no. Visited on 10/16/2018.






    share|improve this answer


























      1














      If you also remove the parentheses around the urldate as in Biblatex change last visited it does not look that bad.



      We only need to redefine the bibmacro url+urldate and change setunit*{addspace}% to setunit*{newunitpunct}%.



      RequirePackage{filecontents}
      begin{filecontents}{jobname.bib}
      @online{musk,
      author = {Elon Musk},
      title = {Tesla Model X},
      url = {https://www.tesla.com/modelx?redirect=no},
      date = {2017-07-04},
      institution = {Tesla},
      urldate = {2018-10-16},
      }
      end{filecontents}

      documentclass{article}
      usepackage[style=authortitle,]{biblatex}


      DeclareFieldFormat{urldate}{bibstring{urlseen}space#1}

      renewbibmacro*{url+urldate}{%
      usebibmacro{url}%
      iffieldundef{urlyear}
      {}
      {setunit*{newunitpunct}%
      usebibmacro{urldate}}}

      addbibresource{jobname.bib}
      begin{document}
      Let's cite! footcite{musk}
      printbibliography
      end{document}


      Musk, Elon. Tesla Model X. July 4, 2017. url: https://www.tesla.com/modelx?redirect=no. Visited on 10/16/2018.






      share|improve this answer
























        1












        1








        1






        If you also remove the parentheses around the urldate as in Biblatex change last visited it does not look that bad.



        We only need to redefine the bibmacro url+urldate and change setunit*{addspace}% to setunit*{newunitpunct}%.



        RequirePackage{filecontents}
        begin{filecontents}{jobname.bib}
        @online{musk,
        author = {Elon Musk},
        title = {Tesla Model X},
        url = {https://www.tesla.com/modelx?redirect=no},
        date = {2017-07-04},
        institution = {Tesla},
        urldate = {2018-10-16},
        }
        end{filecontents}

        documentclass{article}
        usepackage[style=authortitle,]{biblatex}


        DeclareFieldFormat{urldate}{bibstring{urlseen}space#1}

        renewbibmacro*{url+urldate}{%
        usebibmacro{url}%
        iffieldundef{urlyear}
        {}
        {setunit*{newunitpunct}%
        usebibmacro{urldate}}}

        addbibresource{jobname.bib}
        begin{document}
        Let's cite! footcite{musk}
        printbibliography
        end{document}


        Musk, Elon. Tesla Model X. July 4, 2017. url: https://www.tesla.com/modelx?redirect=no. Visited on 10/16/2018.






        share|improve this answer












        If you also remove the parentheses around the urldate as in Biblatex change last visited it does not look that bad.



        We only need to redefine the bibmacro url+urldate and change setunit*{addspace}% to setunit*{newunitpunct}%.



        RequirePackage{filecontents}
        begin{filecontents}{jobname.bib}
        @online{musk,
        author = {Elon Musk},
        title = {Tesla Model X},
        url = {https://www.tesla.com/modelx?redirect=no},
        date = {2017-07-04},
        institution = {Tesla},
        urldate = {2018-10-16},
        }
        end{filecontents}

        documentclass{article}
        usepackage[style=authortitle,]{biblatex}


        DeclareFieldFormat{urldate}{bibstring{urlseen}space#1}

        renewbibmacro*{url+urldate}{%
        usebibmacro{url}%
        iffieldundef{urlyear}
        {}
        {setunit*{newunitpunct}%
        usebibmacro{urldate}}}

        addbibresource{jobname.bib}
        begin{document}
        Let's cite! footcite{musk}
        printbibliography
        end{document}


        Musk, Elon. Tesla Model X. July 4, 2017. url: https://www.tesla.com/modelx?redirect=no. Visited on 10/16/2018.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 12 '18 at 9:12









        moewe

        86.3k9110332




        86.3k9110332






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f464383%2fadd-a-point-after-the-url-with-biblatex%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

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

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?