diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/auxhook.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/auxhook.dtx | 90 |
1 files changed, 69 insertions, 21 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/auxhook.dtx b/Master/texmf-dist/source/latex/oberdiek/auxhook.dtx index bfb040d2c56..41d58d7698f 100644 --- a/Master/texmf-dist/source/latex/oberdiek/auxhook.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/auxhook.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% 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 @@ -55,7 +55,7 @@ % %<*ignore> \begingroup - \def\x{LaTeX2e} + \def\x{LaTeX2e}% \expandafter\endgroup \ifcase 0\ifx\install y1\fi\expandafter \ifx\csname processbatchFile\endcsname\relax\else1\fi @@ -66,7 +66,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: auxhook 2006/05/31 v1.0 Hooks for auxiliary files (HO)} +\Msg{* Package: auxhook 2006/04/06 v1.1 Hooks for auxiliary files (HO)} \Msg{************************************************************************} \keepsilent @@ -76,7 +76,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 @@ -126,16 +126,16 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{auxhook.drv}% - [2006/05/31 v1.0 Hooks for auxiliary files (HO)] + [2006/04/06 v1.1 Hooks for auxiliary files (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc} \begin{document} - \DocInput{auxhook.dtx} + \DocInput{auxhook.dtx}% \end{document} %</driver> % \fi % -% \CheckSum{126} +% \CheckSum{143} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -156,7 +156,7 @@ and the derived files % \GetFileInfo{auxhook.drv} % % \title{The \xpackage{auxhook} package} -% \date{2006/05/31 v1.0} +% \date{2006/04/06 v1.1} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -237,7 +237,7 @@ and the derived files %<*package> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{auxhook}% - [2006/05/31 v1.0 Hooks for auxiliary files (HO)] + [2006/04/06 v1.1 Hooks for auxiliary files (HO)]% % \end{macrocode} % % \subsection{Hook setup} @@ -290,22 +290,28 @@ and the derived files % % \begin{macrocode} \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{% @@ -314,17 +320,19 @@ and the derived files \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 % \end{macrocode} % % \subsubsection{\cs{@include}} % % \begin{macrocode} \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}% @@ -332,7 +340,7 @@ and the derived files #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 @@ -353,13 +361,47 @@ and the derived files % \end{macrocode} % \section{Installation} % -% \paragraph{CTAN.} This package is available on +% \subsection{Download} +% +% \paragraph{Package.} This package is available on % CTAN\footnote{\url{ftp://ftp.ctan.org/tex-archive/}}: % \begin{description} % \item[\CTAN{macros/latex/contrib/oberdiek/auxhook.dtx}] The source file. % \item[\CTAN{macros/latex/contrib/oberdiek/auxhook.pdf}] Documentation. % \end{description} % +% +% \paragraph{Bundle.} All the packages of the bundle `oberdiek' +% are also available in a TDS compliant ZIP archive. There +% the packages are already unpacked and the documentation files +% are generated. The files and directories obey the TDS standard. +% \begin{description} +% \item[\CTAN{macros/latex/contrib/oberdiek/oberdiek-tds.zip}] +% \end{description} +% +% \subsection{Bundle installation} +% +% \paragraph{Unpacking.} Unpack the \xfile{oberdiek-tds.zip} in the +% TDS tree (also known as \xfile{texmf} tree) of your choice. +% Example (linux): +% \begin{quote} +% |unzip oberdiek-tds.zip -d ~/texmf| +% \end{quote} +% +% \paragraph{Script installation.} +% Check the directory \xfile{TDS:scripts/oberdiek/} for +% scripts that need further installation steps. +% Package \xpackage{attachfile2} comes with the Perl script +% \xfile{pdfatfi.pl} that should be installed in such a way +% that it can be called as \texttt{pdfatfi}. +% Example (linux): +% \begin{quote} +% |chmod +x scripts/oberdiek/pdfatfi.pl|\\ +% |cp scripts/oberdiek/pdfatfi.pl /usr/local/bin/| +% \end{quote} +% +% \subsection{Package installation} +% % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting % \docstrip\ archive. The files are extracted by running the % \xfile{.dtx} through \plainTeX: @@ -390,8 +432,10 @@ and the derived files % TDS installing feature, then some files can already be in the right % place, see the documentation of \docstrip. % -% \paragraph{Refresh file databases.} If your \TeX~distribution -% (\teTeX, \mikTeX, \dots) rely on file databases, you must refresh +% \subsection{Refresh file name databases} +% +% If your \TeX~distribution +% (\teTeX, \mikTeX, \dots) relies on file name databases, you must refresh % these. For example, \teTeX\ users run \verb|texhash| or % \verb|mktexlsr|. % @@ -467,6 +511,10 @@ and the derived files % \item % First version. % \end{Version} +% \begin{Version}{2007/04/06 v1.1} +% \item +% Fix for class \xclass{beamer}. +% \end{Version} % \end{History} % % \PrintIndex |