summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/autonum
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-10-14 22:27:18 +0000
committerKarl Berry <karl@freefriends.org>2013-10-14 22:27:18 +0000
commit6d634bf2205e09761d3120987a2655da519a6601 (patch)
treec785dc607bbbd28c4eaabf6f00a92e4ef0d600c5 /Master/texmf-dist/tex/latex/autonum
parente985a50f81524fb6dce1924ddcbf1a64ffd62bfc (diff)
autonum (14oct13)
git-svn-id: svn://tug.org/texlive/trunk@31901 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/autonum')
-rw-r--r--Master/texmf-dist/tex/latex/autonum/autonum.sty13
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/autonum/autonum.sty b/Master/texmf-dist/tex/latex/autonum/autonum.sty
index 2b60e8db144..ee745a2cf84 100644
--- a/Master/texmf-dist/tex/latex/autonum/autonum.sty
+++ b/Master/texmf-dist/tex/latex/autonum/autonum.sty
@@ -13,7 +13,7 @@
%% ----------------------------------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{autonum}[2013/06/15 v0.3.5 autonum LaTeX package]
+\ProvidesPackage{autonum}[2013/10/13 v0.3.6 autonum LaTeX package]
\PassOptionsToPackage{hypertexnames=false}{hyperref}
\RequirePackage{etoolbox}
\RequirePackage{amsmath}
@@ -22,9 +22,12 @@
\def\csxdefaux#1#2{%
\protected@write\@mainaux{}{%
-\expandafter\string\expandafter\xdef\expandafter\string\csname #1\endcsname{#2}%
+\csxdef{\detokenize{#1}}{#2}%
}%
}
+\protected@write\@mainaux{}{%
+\string\providecommand\string\csxdef[2]{}%
+}
\def\csxdefall#1#2{%
\csxdefaux{#1}{#2}%
@@ -238,6 +241,12 @@
\autonum@processReferenceHelper{#1}{#2}{}%
}%
}%
+\addtocontents{toc}{%
+\string\providecommand\string\autonum@processReference[2]{}%
+}
+\addtocontents{lof}{%
+\string\providecommand\string\autonum@processReference[2]{}%
+}
% Mark label as referenced and call the old reference command. Do not write in the PDF's TOC, as this would lead to a write inside of a write when, e.g., calling \cmd{\cref} inside of a section command. Also use \cmd{\vanishprotect} to avoid writing \cmd{\autonum@markLabelAsReferenced} into the aux file or similar files. This avoids errors after deactivating the autonum package.
\def\autonum@processReferenceHelper#1#2#3#4{%