From 6d634bf2205e09761d3120987a2655da519a6601 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 14 Oct 2013 22:27:18 +0000 Subject: autonum (14oct13) git-svn-id: svn://tug.org/texlive/trunk@31901 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/autonum/autonum.sty | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/autonum/autonum.sty') 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{% -- cgit v1.2.3