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 biblatex for producing the bibliography in my document, and I wish to customize the entries. More specifically, I want to reduce the font size used for the URL as they tend to overflow.

Anyone have any idea how to achieve this?

share|improve this question
    
See Guidelines for customizing biblatex styles. –  domwass Feb 12 '12 at 21:46
add comment

1 Answer

up vote 10 down vote accepted

URLs are formatted (in part) by the url package. Adding

\AtBeginBibliography{\def\UrlFont{\scriptsize\tt}}

to your preamble should reduce the font size relative to the rest of the bibliography. (The bibliography font size is determined by the biblatex command \bibfont, defined as \newcommand*{\bibfont}{\normalfont\normalsize}.)

share|improve this answer
    
But doesn't this affect all usage of \url? For instance, I'm using \url in some other places in the document. –  gablin Feb 13 '12 at 8:36
2  
@gablin It would. The \AtBeginBibliography hook can limit the change to within the bibliography - any use of \url before or after \printbibliography would be unaffected. –  Audrey Feb 13 '12 at 14:20
    
I see. Just what I need. Thanks. –  gablin Feb 13 '12 at 14:52
add comment

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.