[Tex/LaTex] How to shrink the URL font size in bibliography’s or references sections

fontsizeurls

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?

Best Answer

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

Related Question