This minimal example won't compile:
\documentclass{article}
\usepackage{url}
\newcommand{\mycommand}[1]{#1}
\begin{document}
\mycommand{\url{http://www.example.org/index.php?a=Hello%20World.}}
\end{document}
The reason is the percent sign inside the URL. Note that a percent sign occurs often in URLs and that the \url command usually handles it correctly. How do I fix this?
The only solution is a workaround but if there is no better solution this can be closed.
– Volker Feb 09 '16 at 14:21\urlat all? Or are you looking for a command that has a verbatim argument which allows%then? Something like\NewDocumentCommand{\mycommand}{v}{#1}(usexparsepackage for this!) – Feb 09 '16 at 14:22\url. I want it to be clickable in the PDF. – Volker Feb 09 '16 at 14:24