I'm using the biblatex package on Overleaf to print my bibliography.

Here is how it looks like:

enter image description here

As you can see, both the title and the url are going way to far on the right and not breaking lines. I do not have any idea how to fix this.

Here is my biblio code if you want to reproduce the result:

author = "Gouvernement Français",
title = "Ordonnance n°58-1371 du 29 décembre 1958 tendant à renforcer la protection des installations d'importance vitale",
url  = "https://www.legifrance.gouv.fr/affichTexte.do;jsessionid=8AD178CF77E0C8E58A0D7E3C16FA9703.tplgfr43s_1?cidTexte=JORFTEXT000000339362&dateTexte=19581231",
addendum = "Publié le 29 décembre 1958",
keywords = "oiv,protection,ordonnance"

Thanks for any help !

  • 2
    Hi Hekmil, welcome to TeX.SE! The bib entry alone is not going to be enough, can you please provide a complete MWE that shows the issue? – TobiBS Jul 7 at 18:34
  • 1
    Questions like this can only properly be answered with a short, compilable example document that cites the entry and reproduces the screenshot. Without it we have to guess. My guess no. 1 is that you are loading the package ulem (\usepackage{ulem}). ulem redefines \emph to produce underlined output, which usually comes out unbreakable in the bibliography. Either don't load ulem at all or load it with the normalem option (\usepackage[normalem]{ulem}). ... – moewe Jul 7 at 19:43
  • ... The second problems seems related to URL breaking: Your URL is too long to be broken nicely. The URL contains a session ID which is usually garbage and can be shortened to https://www.legifrance.gouv.fr/affichTexte.do?cidTexte=LEGITEXT000006069229&dateTexte=19581231 but even then it will probably not fit. If you want your URLs to break everywhere load \useoackage{xurl} (after loading biblatex). – moewe Jul 7 at 19:44
  • You may also want to consider writing author = {{Gouvernement Français}}, instead of author = "Gouvernement Français",. Without the curly braces, BibTeX/Biber will try to parse "Gouvernement Français" as the name of a person, i.e. it will try to split that into family and given name, which may lead to unexpected results. – moewe Jul 8 at 6:39
  • 4
    I’m voting to close this question because the problem cannot be reproduced for certain with the information given in the question so far. As mentioned in the comments the problem seems to have been resolved now. – moewe Jul 31 at 7:04