-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Lines 1276 to 1277 in d656e81
| special characters \# and \~{} do \emph{not} need to be escaped in any | |
| way (unless the command is used in the argument of another command). |
It seems that the tilde does not need to be escaped in \href URLs, even if used as an argument of another command.
For example, the following minimal LaTeX document compiles fine:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\emph{\href{https://example.org/~a}{tilde}}
\end{document}However, the hash and percent symbols do need to be escaped in that case.
For example, the following fails, but would work with backslash-escaped percent or without the \emph:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\emph{\href{https://example.org/a%20b}{space}}
\end{document}Runaway argument?
{\href {https://example.org/a\end {document}
! File ended while scanning use of \emph .
Could this be a typo in the documentation referenced at the top?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels