summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/hopatch.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/hopatch.dtx134
1 files changed, 93 insertions, 41 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx b/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx
index b993c5f4ab7..7f51be0bab9 100644
--- a/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx
@@ -1,11 +1,12 @@
% \iffalse meta-comment
-%
+%
% File: hopatch.dtx
-% Version: 2011/01/30 v1.0
-%
+% Version: 2011/06/24 v1.1
+% Info: Wrapper for package hooks
+%
% Copyright (C) 2011 by
% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
-%
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any later
@@ -15,20 +16,20 @@
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of
% LaTeX version 2005/12/01 or later.
-%
+%
% This work has the LPPL maintenance status "maintained".
-%
+%
% This Current Maintainer of this work is Heiko Oberdiek.
-%
+%
% This work consists of the main source file hopatch.dtx
% and the derived files
% hopatch.sty, hopatch.pdf, hopatch.ins, hopatch.drv,
% hopatch-test1.tex, hopatch-test2.tex.
-%
+%
% Distribution:
% CTAN:macros/latex/contrib/oberdiek/hopatch.dtx
% CTAN:macros/latex/contrib/oberdiek/hopatch.pdf
-%
+%
% Unpacking:
% (a) If hopatch.ins is present:
% tex hopatch.ins
@@ -37,7 +38,7 @@
% (c) If you insist on using LaTeX
% latex \let\install=y\input{hopatch.dtx}
% (quote the arguments according to the demands of your shell)
-%
+%
% Documentation:
% (a) If hopatch.drv is present:
% latex hopatch.drv
@@ -47,14 +48,14 @@
% if available. Here you can specify further options, e.g.
% use A4 as paper format:
% \PassOptionsToClass{a4paper}{article}
-%
+%
% Programm calls to get the documentation (example):
% pdflatex hopatch.dtx
% makeindex -s gind.ist hopatch.idx
% pdflatex hopatch.dtx
% makeindex -s gind.ist hopatch.idx
% pdflatex hopatch.dtx
-%
+%
% Installation:
% TDS:tex/latex/oberdiek/hopatch.sty
% TDS:doc/latex/oberdiek/hopatch.pdf
@@ -77,7 +78,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: hopatch 2011/01/30 v1.0 Wrapper for package hooks (HO)}
+\Msg{* Package: hopatch 2011/06/24 v1.1 Wrapper for package hooks (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -89,7 +90,7 @@
This is a generated file.
Project: hopatch
-Version: 2011/01/30 v1.0
+Version: 2011/06/24 v1.1
Copyright (C) 2011 by
Heiko Oberdiek <heiko.oberdiek at googlemail.com>
@@ -124,6 +125,10 @@ and the derived files
\usedir{doc/latex/oberdiek/test}%
\file{hopatch-test1.tex}{\from{hopatch.dtx}{test1}}%
\file{hopatch-test2.tex}{\from{hopatch.dtx}{test2}}%
+ \nopreamble
+ \nopostamble
+ \usedir{source/latex/oberdiek/catalogue}%
+ \file{hopatch.xml}{\from{hopatch.dtx}{catalogue}}%
}
\catcode32=13\relax% active space
@@ -150,9 +155,9 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{hopatch.drv}%
- [2011/01/30 v1.0 Wrapper for package hooks (HO)]%
+ [2011/06/24 v1.1 Wrapper for package hooks (HO)]%
\documentclass{ltxdoc}
-\usepackage{holtxdoc}[2011/02/04]
+\usepackage{holtxdoc}[2011/11/22]
\usepackage{caption}
\usepackage{array}
\setlength{\extrarowheight}{1pt}
@@ -163,7 +168,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{463}
+% \CheckSum{465}
%
% \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
@@ -184,7 +189,7 @@ and the derived files
% \GetFileInfo{hopatch.drv}
%
% \title{The \xpackage{hopatch} package}
-% \date{2011/01/30 v1.0}
+% \date{2011/06/24 v1.1}
% \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}}
%
% \maketitle
@@ -352,7 +357,7 @@ and the derived files
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hopatch}%
- [2011/01/30 v1.0 Wrapper for package hooks (HO)]
+ [2011/06/24 v1.1 Wrapper for package hooks (HO)]
% \end{macrocode}
%
% \subsection{Resources}
@@ -472,23 +477,27 @@ and the derived files
% \begin{macrocode}
\AtBeginDocument{\HOpatch@list}
\ltx@ifundefined{AtEndPreamble}{}{%
- \AtEndPreamble{\HOpatch@list}%
+ \ltx@ifundefined{@endpreamblehook}{}{%
+ \AtEndPreamble{\HOpatch@list}%
+ }%
}
\ltx@ifundefined{AfterEndPreamble}{}{%
- \AfterEndPreamble{%
- \let\HOpatch@OrgIfPackageLoaded\@ifpackageloaded
- \let\HOpatch@OrgIfPackageLater\@ifpackagelater
- \let\HOpatch@OrgIfClassLoaded\@ifclassloaded
- \let\HOpatch@OrgIfClassLater\@ifclasslater
- \let\@ifpackageloaded\ltx@ifpackageloaded
- \let\@ifpackagelater\ltx@ifpackagelater
- \let\@ifclassloaded\ltx@ifclassloaded
- \let\@ifclasslater\ltx@ifclasslater
- \HOpatch@list
- \let\@ifpackageloaded\HOpatch@OrgIfPackageLoaded
- \let\@ifpackagelater\HOpatch@OrgIfPackageLater
- \let\@ifclassloaded\HOpatch@OrgIfClassLoaded
- \let\@ifclasslater\HOpatch@OrgIfClassLater
+ \ltx@ifundefined{@afterendpreamblehook}{}{%
+ \AfterEndPreamble{%
+ \let\HOpatch@OrgIfPackageLoaded\@ifpackageloaded
+ \let\HOpatch@OrgIfPackageLater\@ifpackagelater
+ \let\HOpatch@OrgIfClassLoaded\@ifclassloaded
+ \let\HOpatch@OrgIfClassLater\@ifclasslater
+ \let\@ifpackageloaded\ltx@ifpackageloaded
+ \let\@ifpackagelater\ltx@ifpackagelater
+ \let\@ifclassloaded\ltx@ifclassloaded
+ \let\@ifclasslater\ltx@ifclasslater
+ \HOpatch@list
+ \let\@ifpackageloaded\HOpatch@OrgIfPackageLoaded
+ \let\@ifpackagelater\HOpatch@OrgIfPackageLater
+ \let\@ifclassloaded\HOpatch@OrgIfClassLoaded
+ \let\@ifclasslater\HOpatch@OrgIfClassLater
+ }%
}%
}
% \end{macrocode}
@@ -504,7 +513,7 @@ and the derived files
%
% \begin{macrocode}
%<*test1>
-\def\LoadCommand{\RequirePackage{hopatch}[2011/01/30]}
+\def\LoadCommand{\RequirePackage{hopatch}[2011/06/24]}
%</test1>
% \end{macrocode}
% \subsection{Catcode checks for loading}
@@ -851,39 +860,76 @@ and the derived files
%\end{verbatim}
% \end{quote}
%
+% \section{Catalogue}
+%
+% The following XML file can be used as source for the
+% \href{http://mirror.ctan.org/help/Catalogue/catalogue.html}{\TeX\ Catalogue}.
+% The elements \texttt{caption} and \texttt{description} are imported
+% from the original XML file from the Catalogue.
+% The name of the XML file in the Catalogue is \xfile{hopatch.xml}.
+% \begin{macrocode}
+%<*catalogue>
+<?xml version='1.0' encoding='us-ascii'?>
+<!DOCTYPE entry SYSTEM 'catalogue.dtd'>
+<entry datestamp='$Date$' modifier='$Author$' id='hopatch'>
+ <name>hopatch</name>
+ <caption>Load patches for packages.</caption>
+ <authorref id='auth:oberdiek'/>
+ <copyright owner='Heiko Oberdiek' year='2011'/>
+ <license type='lppl1.3'/>
+ <version number='1.1'/>
+ <description>
+ The hopatch package provides a command with which the user may
+ register a piece of patch code for a particular package. Hopatch
+ will apply the patch immediately, if the relevant package has
+ already been loaded; otherwise it will store the patch until the
+ package appears.
+ <p/>
+ The package is part of the <xref refid='oberdiek'>oberdiek</xref> bundle.
+ </description>
+ <documentation details='Package documentation'
+ href='ctan:/macros/latex/contrib/oberdiek/hopatch.pdf'/>
+ <ctan file='true' path='/macros/latex/contrib/oberdiek/hopatch.dtx'/>
+ <miktex location='oberdiek'/>
+ <texlive location='oberdiek'/>
+ <install path='/macros/latex/contrib/oberdiek/oberdiek.tds.zip'/>
+</entry>
+%</catalogue>
+% \end{macrocode}
+%
% \begin{thebibliography}{9}
% \raggedright
-%
+%
% \bibitem{etoolbox}
% Philipp Lehman:
% \textit{The etoolbox Package}
% 2011-01-03.
% \CTAN{macros/latex/contrib/etoolbox/etoolbox.pdf}
-%
+%
% \bibitem{filehook}
% Martin Scharrer:
% \textit{The filehook Package};
% 2011-01-09.
% \CTAN{macros/latex/contrib/filehook/filehook.pdf}
-%
+%
% \bibitem{ltxcmds}
% Heiko Oberdiek:
% \textit{The ltxcmds Package};
% 2010-12-12.
% \CTAN{macros/latex/contrib/oberdiek/ltxcmds.pdf}
-%
+%
% \bibitem{memoir}
% Peter Wilson, Lars Madsen:
% \textit{The Memoir Class for Configurable Typesetting, User Guide};
% 2010.
% \CTAN{macros/latex/contrib/memoir/memman.pdf}
-%
+%
% \bibitem{scrlfile}
% Markus Kohm, Jens-Uwe Morawski:
% \textit{The Guide KOMA-Script};
% 2011-01-20.
% \CTAN{macros/latex/contrib/koma-script/scrguien.pdf}
-%
+%
% \end{thebibliography}
%
% \begin{History}
@@ -891,6 +937,12 @@ and the derived files
% \item
% First public version.
% \end{Version}
+% \begin{Version}{2011/06/24 v1.1}
+% \item
+% Fix the use of \cs{AtEndPreamble} and \cs{AfterEndPreamble}.
+% They are redefined by package \xpackage{etoolbox} after their
+% hooks are used and generate an error message then.
+% \end{Version}
% \end{History}
%
% \PrintIndex