diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/autonum')
-rw-r--r-- | Master/texmf-dist/tex/latex/autonum/autonum.sty | 13 |
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{% |