summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/macros2e/extlabels.sty14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/macros2e/extlabels.sty b/Master/texmf-dist/tex/latex/macros2e/extlabels.sty
new file mode 100644
index 00000000000..a3570f3d466
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/macros2e/extlabels.sty
@@ -0,0 +1,14 @@
+\RequirePackage{hyperref}
+\RequirePackage{lipsum}
+\RequirePackage{zref-user}
+\RequirePackage{zref-abspos}
+
+\let\origDescribeMacro\DescribeMacro
+\def\DescribeMacro#1{%
+ \edef\name{\expandafter\@gobble\string#1}%
+ \ifx\name\@backslashchar\else
+ \zsavepos{\expandafter\@gobble\string#1}%
+ \fi
+ \origDescribeMacro{#1}%
+}
+