TransWikia.com

Hyphenation in bibliography with Biblatex

TeX - LaTeX Asked by albifant on September 2, 2020

The hyphenation in my bibliography is off somehow, I can’t figure out why. Look:

documentclass{scrreprt}  
usepackage[style=alphabetic,hyperref=true]{biblatex} 
bibliography{jobname.bib} 
usepackage{filecontents}

begin{filecontents}{jobname.bib}
@book{Fowler:2006,
    Address = {Boston},
    Author = {Fowler, Martin},
    Publisher = {Addison-Wesley},
    Title = {Patterns of Enterprise Application Architecture},
    Year = {2006}}

@book{Rotem-Gal-Oz:2012,
    Address = {Shelter Island, NY},
    Author = {{Rotem-Gal-Oz}, Arnon},
    Publisher = {Manning Publications Co.},
    Title = {SOA Patterns},
    Year = {2012}}
end{filecontents}

begin{document}
nocite{Fowler:2006} nocite{Rotem-Gal-Oz:2012}
printbibliography
end{document}

Now, when you compile that you can see that the “Addison-” of “Addison-Wesley” is too long. (I put in another Bib-Entry for your reference).
Addison is to long.

I could fix this with Add-ison but that’s just weird. Also, I have more than one occurrence in my file and I dislike having to check for this error again and again.

So, what do I do now?

One Answer

When dealing with material that's difficult to hyphenate, it can help at times -- but it's not guaranteed to work under all circumstances -- to provide the directive sloppy. The sloppy instruction lets TeX find line breaks by widening the amount of inter-word whitespace far more than is (normally) considered to be tolerable. However, do be sure to exhaust other possibilities before resorting to using sloppy -- the results you may get with this method may look, well, sloppy!

Correct answer by Mico on September 2, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP