Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the XeTeX with BibLaTeX and biber. That's the line:

\usepackage[backend=biber, citestyle=authoryear-ibid, bibstyle=authortitle-ibid]{biblatex} 

It's working fine but I'e just get one problem with one of the DOI as you can see. The "x" on the last line looks quite stupid. How can I avoid it?

Example of the problem

share|improve this question

1 Answer 1

"Stupid"-looking breaks in URLs are sometimes tough to avoid. From this post, you can see that the break penalty at a period (along with other symbols) is given by \UrlBreakPenalty. To avoid breaks at these symbols for a particular set of entries <key1,key2,...>, you can adapt a previous answer and add the following code to your preamble.

\DeclareBibliographyCategory{badbreaks}
\addtocategory{badbreaks}{<key1,key2,...>}

\AtEveryBibitem{%
  \ifcategory{badbreaks}
    {\mathchardef\UrlBreakPenalty=10000\relax}
    {}}

This will reset the break penalty locally from 200 to 10000 before printing any entry in the badbreaks category.

share|improve this answer
    
Thanks it works like a charm –  Swiss12000 Apr 8 '12 at 3:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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