忽略 href 中的 % 字符

ignore % character in href

我想用 \href 来缩短一个 url。 我当前的文档如下所示:

\documentclass[11pt]{article}
\usepackage[dvipsnames]{xcolor}
\usepackage[colorlinks=true,urlcolor=Blue]{hyperref}
...
\begin{document}
\href{https://www.flickr.com/search/?safe_search=1&license=2%2C3%2C4%2C5%2C6%2C9&dimension_search_mode=min&height=640&width=640&media=photos}{https://www.flickr.com/search/?license=2%2C3%2C4%2C5%2C6%2C9}
\end{document}

我想要的输出是一个 url https://www.flickr.com/search/?license=2%2C3%2C4%2C5%2C6%2C9,当点击时,link 秒到长 link。

目前,latex 将 url 中的 % 解释为注释的开始,根本不显示 url。

我在 Ubuntu 上的 TeXstudio 中测试了它,当你在 % 前面加一个反斜杠时,它似乎可以工作。 % => \%

\documentclass[11pt]{article}
\usepackage[dvipsnames]{xcolor}
\usepackage[colorlinks=true,urlcolor=Blue]{hyperref}
...
\begin{document}
\href{https://www.flickr.com/search/?safe_search=1&license=2\%2C3\%2C4\%2C5\%2C6\%2C9&dimension_search_mode=min&height=640&width=640&media=photos}{https://www.flickr.com/search/?license=2\%2C3\%2C4\%2C5\%2C6\%2C9}
\end{document}