summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx8
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty1
2 files changed, 8 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index abcba9f722f..6409b654bbb 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -7654,11 +7654,16 @@
% Within the argument the following special definitions apply:
% |\#|, |\%|, |~| produce |#|, |%|, |~| respectively.
% for consistency |\~| produces |~| as well.
-% At the \emph{top level only} ie not within the argument of another
+%
+% At the \emph{top level only}, i.e., not within the argument of another
% command, you can use |#| and |%| unescaped, to produce themselves.
% even if, say, |#| is entered as |#| it will be converted to |\#|
% so it does not die if written to an aux file etc. |\#| will write
% as |#| locally while making |\special|s.
+%
+% Other special characters are allowed as well: |_|, |$|, |&|,
+% and |:| (special in expl3 syntax) is forced to catcode other.
+%
% \begin{macrocode}
\begingroup
\endlinechar=-1 %
@@ -7691,6 +7696,7 @@
\let\textasciitilde\hyper@tilde
\let\\\@backslashchar
\edef${\string$}^^A
+ \@makeother\:^^A for expl3 syntax
\Hy@safe@activestrue
\hyper@n@rmalise
}^^A
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index f9cd6d86d84..003a7ffb66a 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -4873,6 +4873,7 @@
\let\textasciitilde\hyper@tilde
\let\\\@backslashchar
\edef${\string$}^^A
+ \@makeother\:^^A for expl3 syntax
\Hy@safe@activestrue
\hyper@n@rmalise
}^^A