Is there a simple way of getting a LaTeX url to display in italics, i.e. emph{\url{http://www.stackoverflow.com}}? FYI I am also using \urlstyle{same} right before, which keeps the style looking like the document default style, but I don't want to set my document default to italics.
You can easily set urls to italic text by setting the UrlFont in the document, like so:
\documentclass{article}
\usepackage{url}
\begin{document}
\def\UrlFont{\em}
\url{http://www.address.com}
\end{document}
The url should appear in italics.
You might want to try setting \UrlFont to \itshape, i.e.
\renewcommand\UrlFont\itshape
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With