I am trying to include a URL in my Latex document which contains a pound sign, #, in it. If I run it without escaping the # sign, I get an error. If I escape it, then the escape character is printed out in the URL also. ("\#
" instead of "#
") Any ideas on how to fix this?
\documentclass[12pt, a4paper, twoside]{article}
\usepackage[T1]{fontenc}
\usepackage{endnotes}
\usepackage{url}
\begin{document}
Hello World\endnote{\url{http://www.rossettiarchive.org/docs/nb0005.duke.rad.html#0.1.19}}
\end{document}
\listfiles
and see what you get, it works for me and I get: File List article.cls 2007/10/19 v1.4h Standard LaTeX document class size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option) fontenc.sty t1enc.def 2005/09/27 v1.99g Standard LaTeX file url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc. t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions\footnote
command, say, then defining a command for typesetting the url first using\urldef
might help.