diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/auxhook.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/auxhook.sty | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty b/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty index 74836d90fa3..600488955b0 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +%% Copyright (C) 2006, 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -28,7 +28,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{auxhook}% - [2006/05/31 v1.0 Hooks for auxiliary files (HO)] + [2006/04/06 v1.1 Hooks for auxiliary files (HO)]% \providecommand*{\@beginmainauxhook}{} \providecommand*{\@beginpartauxhook}{} \newcommand{\AddLineBeginMainAux}[1]{% @@ -46,22 +46,28 @@ \AddLineBeginPartAux{#1}% } \begingroup - \def\y#1\immediate\write\@mainaux#2#3\auxhook@nil{% + \@ifundefined{beamer@origdocument}{% + \def\auxhook@document{\document}% + }{% + \def\auxhook@document{\beamer@origdocument}% + }% + \long\def\y#1\immediate\write\@mainaux#2#3\auxhook@nil{% \toks@{% #1\immediate\write\@mainaux{#2}% \@beginmainauxhook #3% }% - \xdef\document{\the\toks@}% + \expandafter\xdef\auxhook@document{\the\toks@}% \endgroup }% - \def\x#1\immediate\write\@mainaux#2#3\auxhook@nil{% + \long\def\x#1\immediate\write\@mainaux#2#3\auxhook@nil{% \toks@{#3}% \edef\x{\the\toks@}% \ifx\x\@empty \PackageWarningNoLine{auxhook}{% - Cannot patch \string\document,\MessageBreak - use \string\AtBeginDocument\space instead% + Cannot patch \expandafter\string\auxhook@document,% + \MessageBreak + using \string\AtBeginDocument\space instead% }% \endgroup \AtBeginDocument{% @@ -70,12 +76,14 @@ \fi }% \else - \expandafter\y\document\auxhook@nil + \expandafter\expandafter\expandafter\y\auxhook@document + \auxhook@nil \fi }% -\expandafter\x\document\immediate\write\@mainaux{}\auxhook@nil +\expandafter\expandafter\expandafter\x\auxhook@document + \immediate\write\@mainaux{}\auxhook@nil \begingroup - \def\y#1\immediate\write\@partaux#2#3\auxhook@nil{% + \long\def\y#1\immediate\write\@partaux#2#3\auxhook@nil{% \endgroup \def\@include##1 {% #1\immediate\write\@partaux{#2}% @@ -83,7 +91,7 @@ #3% }% }% - \def\x#1\immediate\write\@partaux#2#3\auxhook@nil{% + \long\def\x#1\immediate\write\@partaux#2#3\auxhook@nil{% \toks@{#3}% \edef\x{\the\toks@}% \ifx\x\@empty |