How to put website address in latex. Do I have to give each character such as '_' appropriately so that it does not take it as a math font? Or is there an easy way to do it?
Also, in word it appears automatically with a slightly different font and color, which looks better. One has to manually do it in latex?
Thanks.
Text Formatting ⇒ Website address
Website address
Try loading either the url or hyperref package and then you can do, e.g.:
The url package will just allow you to enter it without any special effort, and type-set it with a monospace font. The hyperref pacakge will turn it into a working hyperlink. Typically, it'll put it in a box, but if you want it another color instead, try:
Code: Select all
\documentclass{article}
\usepackage{url}
\begin{document}
\url{http://www.latex-community.org}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{hyperref}
\hypersetup{colorlinks=true, urlcolor=blue}
\begin{document}
\url{http://www.latex-community.org}
\end{document}