I use this \renewcommand{\UrlFont}{\normalsize}
for make the fontsize smaller. I will like to make somthing similar for making only the \url
smaller and only when it is used in a footnote. Text in \url
when it is placed in a footnote need to have the same fontsize as the the rest of the footnote.
MWE:
\documentclass[a4paper,11pt]{memoir}
\usepackage{url}
\usepackage{hyperref}
\usepackage[svgnames]{xcolor}
\hypersetup{
colorlinks,
urlcolor=Blue}
\renewcommand{\UrlFont}{\normalsize}
\begin{document}
Text Text Text Text Text\footnote{WWW: \url{http://www.google.com/}}
Text Text Text Text Text Text Text\footnote{Homepage: \url{Homepage}} Text Text Text Text Text Text TextText Text Text Text Text Text TextText Text Text Text Text Text Text \url{Text}
\end{document}
Best Answer
\renewcommand*{\UrlFont}{\normalsize}
does not make the font size smaller:Normal text has normal size:
\normalsize
. Thus you get the same size.\normalsize
is a fixed size, thus the size does not adopt to different environments such as footnotes.It removes
\ttfamily
, thus you get the same font as in the context.Same font
If you want to have the same font for the URLs as the text before, then it can be set by
\urlstyle{same}
:Smaller URL font size
If you only want to have smaller font sizes for URLs, then package
relsize
helps.\relsize{-1}
or\smaller\relax
can be used (the\relax
prevents\smaller
from searching for its optional argument in the next input tokens).