As can be seen below, I am trying to figure out how to remove big spaces in the BibTeX based bibliography when URLs are used. I have already checked similar questions on tex.stackexchange but to no avail.

The below example also shows that this issue is evidently caused by the associated URL.

Can anyone provide me with an easy fix for this problem?

Minimal working example:







% Encoding: UTF-8

  author    = {G. Harry McLaughlin},
  year      = {2010},
  title     = {SMOG - Simple Measure of Gobbledygook},
  url       = {https://web.archive.org/web/20100415194430/http://webpages.charter.net/ghal/SMOG.htm},
  timestamp = {2010-04-15},

  author    = {G. Harry McLaughlin},
  year      = {2010},
  title     = {SMOG - Simple Measure of Gobbledygook},
  timestamp = {2010-04-15},

@Comment{jabref-meta: databaseType:bibtex;}


Edit1: @davidpurton - Using \Urlmuskip=0mu plus 4mu fixed the spaces in the title, but created new spaces in the url itself.

enter image description here

  • Welcome! Have you looked at the manual for the url package? If not, I'd recommend starting there. Also, is this really engine-specific i.e. only occurs when you compile with pdfTeX? – cfr Mar 24 '17 at 0:05
  • I am currently using TeXworks on Windows, which allows me to use pdfLatex, LuaLatex and XeLatex. Tested all three but the issue still remains. – Korred Mar 24 '17 at 0:10
  • 1
    Sorry about the wrong tag! – Korred Mar 24 '17 at 0:19
  • No problem. I just wanted to clarify things so that the tag didn't confuse people looking at your question. – cfr Mar 24 '17 at 0:26
  • 1
    Perhaps this post will help: tex.stackexchange.com/questions/115690/… – David Purton Mar 24 '17 at 1:19

I found a working solution here: Forcing linebreaks in \url

Adding the following line prior adding the hyperref package fixed the issue for me:

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.