I have a document (an article) which I am writing and it includes a references section at the end in the form of a bibliography. I am using the hyperref package and setting the bibliography manually via




In the current font size (11, which doesn't seem unreasonable) the URL's I am inserting often run over several lines. I would like to shrink them to either size 10 or size 9 point font.

How can I do this?

Is there a \fontsize{text here} command or something like that which I can use?

  • If you're using \url to set the URL, then you should follow the instructions listed in Forcing linebreaks in \url. It's better to maintain the same font size rather than switching to something smaller/different from the main text. If you really have to, you can use font switches/declarations, like {\small\ttfamily <url>}. See What point (pt) font size are \Large etc.? for a list of font switches.
    – Werner
    Aug 31, 2015 at 17:22
  • @Werner No I don't want line breaks in the URL, LaTeX is doing those just fine for me automatically - what I want to do it shrink the font, either 1 or 2 pt down. Aug 31, 2015 at 17:25
  • You can also issue \sloppy inside your thebibliography environment and then contain the URL inside \mbox{<url>}. For stepping down one point, use \small. See What point (pt) font size are \Large etc.?
    – Werner
    Aug 31, 2015 at 17:30
  • @Werner what does \sloppy do? Aug 31, 2015 at 17:37
  • Let us continue this discussion in chat.
    – Werner
    Aug 31, 2015 at 17:37

1 Answer 1


My suggestion would be against adjusting font sizes in favour of consistency. If line-breaking is a problem, consider following the suggestions in Forcing linebreaks in \url.

However, you can change the font size of a URL locally using

... {\small \url{<URL>}} ...

For making a global change to font sizes, use


in your preamble.

Depending on the size of \normalsize, \small will provide the next step smaller text. For a list of the font sizes associated with these font switches/declarations, see What point (pt) font size are \Large etc.?

  • For anyone reading the above comments - I was getting the error when putting \small inside of \url, but reversing the ordering as Werner suggested fixed the issue. Aug 31, 2015 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .