10

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

\begin{thebibliography}{9}
  \bibitem{..}

  \bibitem{..}

  ...
\end{thebibliography}

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?

Werner
  • 603,163
user3728501
  • 1,021

1 Answers1

13

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

\renewcommand{\UrlFont}{\ttfamily\small}

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.?

Werner
  • 603,163
  • 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. – user3728501 Aug 31 '15 at 19:40