URL Wrap (ignore margin) in BibTeX using pdfLaTeX

I am using the breakurl package and the hyperref package with pdfLatex and BibTeX to specify the url. URL breaks, but not in my fields. Is there a way to make the URL recognize my fields or make the line break? Thanks in advance.

the code:

\usepackage{hyperref} \usepackage[vertfit]{breakurl}

  @MISC {cmm: dataset,
 author = {University of Bristol Center for Multilevel Modeling},
     title = {Datasets used in reviews},
     howpublished = {\ url {http://www.cmm.bristol.ac.uk/learning-training/multilevel-m-software/exam.shtml}},
 }
+7
url margin pdflatex latex bibtex
source share
2 answers

Sometimes, when LaTeX cannot break the lines beautifully, it leaves them unusable. You can control this \sloppy behavior at the beginning of your document and see if the behavior suits you. Also, you have spaces in your url, as I saw in your post. Delete them. The url package usually does a nice job of breaking URLs (I did not use the breakurl package and my URLs break perfectly in slashes or dashes).

+5
source share

It’s better to add β€œbreaklinks” to the hyperref parameters or if the url explicitly formats the URL in the bibtex file "\ url {http: ....}". This posed a problem for me. You may need to override the format for the URL if the default field is not suitable for your purpose.

+3
source share