diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/auxhook.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/auxhook.sty | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty b/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty index 315d0157dcf..1b98ebdb4a7 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, 2007, 2009 by +%% Copyright (C) 2006, 2007, 2009, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -31,13 +31,31 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{auxhook}% - [2009/12/14 v1.2 Hooks for auxiliary files (HO)]% + [2011/03/04 v1.3 Hooks for auxiliary files (HO)]% \providecommand*{\@beginmainauxhook}{} \providecommand*{\@beginpartauxhook}{} -\newcommand{\AddLineBeginMainAux}[1]{% - \g@addto@macro\@beginmainauxhook{% - \immediate\write\@mainaux{#1}% +\ifx\AtBeginDocument\@firstofone + \global\let\@beginmainauxhook\relax +\else + \g@addto@macro{\@beginmainauxhook}{% + \global\let\@beginmainauxhook\relax }% +\fi +\newcommand{\AddLineBeginMainAux}[1]{% + \ifx\@beginmainauxhook\relax + \if@filesw + \PackageInfo{auxhook}{% + \@backslashchar AddLineBeginMainAux comes a little late,% + \MessageBreak + because the main .aux file is already opened% + }% + \immediate\write\@mainaux{#1}% + \fi + \else + \g@addto@macro\@beginmainauxhook{% + \immediate\write\@mainaux{#1}% + }% + \fi } \newcommand{\AddLineBeginPartAux}[1]{% \g@addto@macro\@beginpartauxhook{% |