# Inserting URLs without the hyperlink

I know already that \usepackage{url} and then using the \url{} command will allow me to insert URLs without the hyperlink, but, I do not even use this package and used the \url{} command and it gives the URLs hyperlinks and if I add \usepackage{url}, it still adds the hyperlinks. Here are the list of packages that I am already using with my document:

\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[scaled=.92]{helvet}
\usepackage{graphicx}
\usepackage{balance}
\usepackage{booktabs}
\usepackage{ccicons}
\usepackage{ragged2e}
\usepackage[flushleft]{threeparttable}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{listings}

\makeatletter
\makeatother
\usepackage{lmodern}

• What is the question? Package url is intended to make hyperlinks to some web sites. If you don't like to have hyperlinks, than just write web addresses as ordinary text. Jan 4 '16 at 4:55
• This may be as a result of the \documentclass you're loading...
– Werner
Jan 4 '16 at 4:55
• @Zarko the latex gives errors since a URL has lots of characters that might be reserved by Latex. Moreover, I am not very agree with your first line please see this Jan 4 '16 at 4:57
• @Werner anyway to enforce the usage of url? Jan 4 '16 at 4:58

The question is tagged with hyperref, then \nolinkurl is the counterpart of \url without link.

If hyperref is not used, then the link is probably created by the PDF viewer, which uses a heuristics to detect links in text.

• That \nolinkurl works perfectly fine. Jan 4 '16 at 5:09
• Note that the hyperlink may still be active, but be viewer-dependent. Adobe Reader, for example, interprets both \url and \nolinkurl with a clickable link.
– Werner
Jan 4 '16 at 5:13
• @Werner yes I have noticed that but it will be only active if it has either www or http as a part of the URL and will be only clickable as a part of the URL and not the whole URL, if it has more further segments.. But if we remove www or http from the URL, the URL will be completely read only. Even if we just leave the URL as how it is, it will not be converted into a blue text which is still good though. Jan 5 '16 at 4:10

It is not very clear what you want to achieve, but you can simply type those links in plain text (while escaping characters that need to be escaped). Please note that this may produce subpar results:

\documentclass{article}

If you do not want those links to be active at all, use the [draft] option of the hyperref package, as suggested by this excellent answer.
• try this link and you will get an error at first line : twitter.com/sig_chi?lang=en moreover, treating URL as plain text will exceed the border line of a marginpar . So that is not suitable either. Jan 4 '16 at 5:06
• @lonesome That's because you need to escape the underscore: twiitter.com/sig\_chi?lang=en Jul 17 '18 at 22:43