How can I modify spacing between words in bibliography?












0















I've been trying to modify the spacing between words in my bibliography for a while now but I can't get it to work properly. I've been applying the answer from this thread Gaps between words in bibliography with regards to adding the usepackage[hyphens]{url} in the preamble but I still get an awkward looking bibliography (see picture below).



enter image description here



Both the third and the last bibliography entry looks weird. Especially the third one. It seems related to the fact that I'm using Urls. Here's some of the bibtex "code" (don't know the proper terminology):



@Article{barnombud2018,
author = {Barnombudsmannen},
title = {textit{utanförskap, våld och kärlek till orten}},
year = {2018},
note = {{ url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
}









share|improve this question




















  • 2





    If you have to put formatting instructions like textit around the entire field contents that indicates either that you should be using a different bibliography style which formats your entries correctly or a different entry type (indeed, @article looks a bit far fetched for barnombud2018, it's probably more of a @report/@techreport or @online/@misc - exact names of types may vary in your style). Modern styles also support a dedicated url field making the workaround of putting url into howpublished or note superfluous.

    – moewe
    6 hours ago











  • Yes, I used the textit command because I read some quick reference guides for harvard where they said that the title for these kinds of publications should be in italic. Its difficult for me to know exactly which type of bibliography style I should use.

    – Victor Galeano
    6 hours ago











  • The two questions (which style should you use and which entry type you should pick for an entry) are indeed not always simple. Usually the first step is to find a style that does more or less what you need. Then the second step is to find out which entry types that style supports and how to use them.

    – moewe
    6 hours ago
















0















I've been trying to modify the spacing between words in my bibliography for a while now but I can't get it to work properly. I've been applying the answer from this thread Gaps between words in bibliography with regards to adding the usepackage[hyphens]{url} in the preamble but I still get an awkward looking bibliography (see picture below).



enter image description here



Both the third and the last bibliography entry looks weird. Especially the third one. It seems related to the fact that I'm using Urls. Here's some of the bibtex "code" (don't know the proper terminology):



@Article{barnombud2018,
author = {Barnombudsmannen},
title = {textit{utanförskap, våld och kärlek till orten}},
year = {2018},
note = {{ url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
}









share|improve this question




















  • 2





    If you have to put formatting instructions like textit around the entire field contents that indicates either that you should be using a different bibliography style which formats your entries correctly or a different entry type (indeed, @article looks a bit far fetched for barnombud2018, it's probably more of a @report/@techreport or @online/@misc - exact names of types may vary in your style). Modern styles also support a dedicated url field making the workaround of putting url into howpublished or note superfluous.

    – moewe
    6 hours ago











  • Yes, I used the textit command because I read some quick reference guides for harvard where they said that the title for these kinds of publications should be in italic. Its difficult for me to know exactly which type of bibliography style I should use.

    – Victor Galeano
    6 hours ago











  • The two questions (which style should you use and which entry type you should pick for an entry) are indeed not always simple. Usually the first step is to find a style that does more or less what you need. Then the second step is to find out which entry types that style supports and how to use them.

    – moewe
    6 hours ago














0












0








0








I've been trying to modify the spacing between words in my bibliography for a while now but I can't get it to work properly. I've been applying the answer from this thread Gaps between words in bibliography with regards to adding the usepackage[hyphens]{url} in the preamble but I still get an awkward looking bibliography (see picture below).



enter image description here



Both the third and the last bibliography entry looks weird. Especially the third one. It seems related to the fact that I'm using Urls. Here's some of the bibtex "code" (don't know the proper terminology):



@Article{barnombud2018,
author = {Barnombudsmannen},
title = {textit{utanförskap, våld och kärlek till orten}},
year = {2018},
note = {{ url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
}









share|improve this question
















I've been trying to modify the spacing between words in my bibliography for a while now but I can't get it to work properly. I've been applying the answer from this thread Gaps between words in bibliography with regards to adding the usepackage[hyphens]{url} in the preamble but I still get an awkward looking bibliography (see picture below).



enter image description here



Both the third and the last bibliography entry looks weird. Especially the third one. It seems related to the fact that I'm using Urls. Here's some of the bibtex "code" (don't know the proper terminology):



@Article{barnombud2018,
author = {Barnombudsmannen},
title = {textit{utanförskap, våld och kärlek till orten}},
year = {2018},
note = {{ url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
}






bibliographies bibtex






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 hours ago









user185220

315




315










asked 7 hours ago









Victor GaleanoVictor Galeano

161




161








  • 2





    If you have to put formatting instructions like textit around the entire field contents that indicates either that you should be using a different bibliography style which formats your entries correctly or a different entry type (indeed, @article looks a bit far fetched for barnombud2018, it's probably more of a @report/@techreport or @online/@misc - exact names of types may vary in your style). Modern styles also support a dedicated url field making the workaround of putting url into howpublished or note superfluous.

    – moewe
    6 hours ago











  • Yes, I used the textit command because I read some quick reference guides for harvard where they said that the title for these kinds of publications should be in italic. Its difficult for me to know exactly which type of bibliography style I should use.

    – Victor Galeano
    6 hours ago











  • The two questions (which style should you use and which entry type you should pick for an entry) are indeed not always simple. Usually the first step is to find a style that does more or less what you need. Then the second step is to find out which entry types that style supports and how to use them.

    – moewe
    6 hours ago














  • 2





    If you have to put formatting instructions like textit around the entire field contents that indicates either that you should be using a different bibliography style which formats your entries correctly or a different entry type (indeed, @article looks a bit far fetched for barnombud2018, it's probably more of a @report/@techreport or @online/@misc - exact names of types may vary in your style). Modern styles also support a dedicated url field making the workaround of putting url into howpublished or note superfluous.

    – moewe
    6 hours ago











  • Yes, I used the textit command because I read some quick reference guides for harvard where they said that the title for these kinds of publications should be in italic. Its difficult for me to know exactly which type of bibliography style I should use.

    – Victor Galeano
    6 hours ago











  • The two questions (which style should you use and which entry type you should pick for an entry) are indeed not always simple. Usually the first step is to find a style that does more or less what you need. Then the second step is to find out which entry types that style supports and how to use them.

    – moewe
    6 hours ago








2




2





If you have to put formatting instructions like textit around the entire field contents that indicates either that you should be using a different bibliography style which formats your entries correctly or a different entry type (indeed, @article looks a bit far fetched for barnombud2018, it's probably more of a @report/@techreport or @online/@misc - exact names of types may vary in your style). Modern styles also support a dedicated url field making the workaround of putting url into howpublished or note superfluous.

– moewe
6 hours ago





If you have to put formatting instructions like textit around the entire field contents that indicates either that you should be using a different bibliography style which formats your entries correctly or a different entry type (indeed, @article looks a bit far fetched for barnombud2018, it's probably more of a @report/@techreport or @online/@misc - exact names of types may vary in your style). Modern styles also support a dedicated url field making the workaround of putting url into howpublished or note superfluous.

– moewe
6 hours ago













Yes, I used the textit command because I read some quick reference guides for harvard where they said that the title for these kinds of publications should be in italic. Its difficult for me to know exactly which type of bibliography style I should use.

– Victor Galeano
6 hours ago





Yes, I used the textit command because I read some quick reference guides for harvard where they said that the title for these kinds of publications should be in italic. Its difficult for me to know exactly which type of bibliography style I should use.

– Victor Galeano
6 hours ago













The two questions (which style should you use and which entry type you should pick for an entry) are indeed not always simple. Usually the first step is to find a style that does more or less what you need. Then the second step is to find out which entry types that style supports and how to use them.

– moewe
6 hours ago





The two questions (which style should you use and which entry type you should pick for an entry) are indeed not always simple. Usually the first step is to find a style that does more or less what you need. Then the second step is to find out which entry types that style supports and how to use them.

– moewe
6 hours ago










1 Answer
1






active

oldest

votes


















0














The problem is that the urls normally can only be broken at few places. To allow more possible break points and thus improve the layout of the bibliography, add



usepackage{xurl}


to your document.



One example (I had do guess a bib style, replace it with the ones you are actually using)



documentclass{article}

usepackage{filecontents}
begin{filecontents*}{jobname.bib}
@Article{barnombud2018,
author = {Barnombudsmannen},
title = {textit{utanförskap, våld och kärlek till orten}},
year = {2018},
note = {{url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
}
end{filecontents*}

usepackage{natbib}
usepackage[hyphens]{url}
usepackage{xurl}

begin{document}

cite{barnombud2018}

bibliographystyle{plainnat}
bibliography{jobname}

end{document}


enter image description here






share|improve this answer










New contributor




user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















    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%2f483844%2fhow-can-i-modify-spacing-between-words-in-bibliography%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









    0














    The problem is that the urls normally can only be broken at few places. To allow more possible break points and thus improve the layout of the bibliography, add



    usepackage{xurl}


    to your document.



    One example (I had do guess a bib style, replace it with the ones you are actually using)



    documentclass{article}

    usepackage{filecontents}
    begin{filecontents*}{jobname.bib}
    @Article{barnombud2018,
    author = {Barnombudsmannen},
    title = {textit{utanförskap, våld och kärlek till orten}},
    year = {2018},
    note = {{url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
    }
    end{filecontents*}

    usepackage{natbib}
    usepackage[hyphens]{url}
    usepackage{xurl}

    begin{document}

    cite{barnombud2018}

    bibliographystyle{plainnat}
    bibliography{jobname}

    end{document}


    enter image description here






    share|improve this answer










    New contributor




    user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      The problem is that the urls normally can only be broken at few places. To allow more possible break points and thus improve the layout of the bibliography, add



      usepackage{xurl}


      to your document.



      One example (I had do guess a bib style, replace it with the ones you are actually using)



      documentclass{article}

      usepackage{filecontents}
      begin{filecontents*}{jobname.bib}
      @Article{barnombud2018,
      author = {Barnombudsmannen},
      title = {textit{utanförskap, våld och kärlek till orten}},
      year = {2018},
      note = {{url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
      }
      end{filecontents*}

      usepackage{natbib}
      usepackage[hyphens]{url}
      usepackage{xurl}

      begin{document}

      cite{barnombud2018}

      bibliographystyle{plainnat}
      bibliography{jobname}

      end{document}


      enter image description here






      share|improve this answer










      New contributor




      user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        The problem is that the urls normally can only be broken at few places. To allow more possible break points and thus improve the layout of the bibliography, add



        usepackage{xurl}


        to your document.



        One example (I had do guess a bib style, replace it with the ones you are actually using)



        documentclass{article}

        usepackage{filecontents}
        begin{filecontents*}{jobname.bib}
        @Article{barnombud2018,
        author = {Barnombudsmannen},
        title = {textit{utanförskap, våld och kärlek till orten}},
        year = {2018},
        note = {{url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
        }
        end{filecontents*}

        usepackage{natbib}
        usepackage[hyphens]{url}
        usepackage{xurl}

        begin{document}

        cite{barnombud2018}

        bibliographystyle{plainnat}
        bibliography{jobname}

        end{document}


        enter image description here






        share|improve this answer










        New contributor




        user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        The problem is that the urls normally can only be broken at few places. To allow more possible break points and thus improve the layout of the bibliography, add



        usepackage{xurl}


        to your document.



        One example (I had do guess a bib style, replace it with the ones you are actually using)



        documentclass{article}

        usepackage{filecontents}
        begin{filecontents*}{jobname.bib}
        @Article{barnombud2018,
        author = {Barnombudsmannen},
        title = {textit{utanförskap, våld och kärlek till orten}},
        year = {2018},
        note = {{url{https://www.barnombudsmannen.se/barnombudsmannen/publikationer/arsrapporter/utanforskap-vald-och-karlek-till-orten-2018/}}},
        }
        end{filecontents*}

        usepackage{natbib}
        usepackage[hyphens]{url}
        usepackage{xurl}

        begin{document}

        cite{barnombud2018}

        bibliographystyle{plainnat}
        bibliography{jobname}

        end{document}


        enter image description here







        share|improve this answer










        New contributor




        user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer








        edited 6 hours ago





















        New contributor




        user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 7 hours ago









        user185220user185220

        315




        315




        New contributor




        user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        user185220 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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%2f483844%2fhow-can-i-modify-spacing-between-words-in-bibliography%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

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Calculate evaluation metrics using cross_val_predict sklearn

            Insert data from modal to MySQL (multiple modal on website)