Here is an example of a url I have in my .txt file:
Code: Select all
\url{http://www.who.int/water_sanitation_health/diseases/cholera/en/}
\usepackage{url}
in the preamble. Font size is 12 point, using the article document class.The error message:
Code: Select all
Overfull \hbox (16.65001pt too wide) in paragraph
The only workaround I have found is to use a smaller font size for the url by including the following in the preamble, which I found on Leo Breebart's site:
http://www.kronto.org/thesis/tips/url-formatting.html
Code: Select all
% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\footnotesize\ttfamily}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}
\hbox
error.Thanks in advance for any suggestions.