summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-11 00:37:03 +0000
committerKarl Berry <karl@freefriends.org>2011-01-11 00:37:03 +0000
commita18f121416672b65166583b9b12157ae1711ae07 (patch)
tree017a8b3423da03813479b1667bbe0ec0dc501910 /Master/texmf-dist/tex
parent9bdd9f27ea5243115a8b2f0aa891bfdf6dfdddf1 (diff)
filehook 0.5 (10jan11)
git-svn-id: svn://tug.org/texlive/trunk@21011 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/filehook/filehook-fink.sty2
-rw-r--r--Master/texmf-dist/tex/latex/filehook/filehook-listings.sty2
-rw-r--r--Master/texmf-dist/tex/latex/filehook/filehook-memoir.sty2
-rw-r--r--Master/texmf-dist/tex/latex/filehook/filehook-scrlfile.sty2
-rw-r--r--Master/texmf-dist/tex/latex/filehook/filehook.sty12
-rw-r--r--Master/texmf-dist/tex/latex/filehook/pgf-filehook.sty84
6 files changed, 98 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/filehook/filehook-fink.sty b/Master/texmf-dist/tex/latex/filehook/filehook-fink.sty
index 77e2793d09b..84bfb2a2540 100644
--- a/Master/texmf-dist/tex/latex/filehook/filehook-fink.sty
+++ b/Master/texmf-dist/tex/latex/filehook/filehook-fink.sty
@@ -18,7 +18,7 @@
%% This work consists of the files filehook.dtx, filehook.ins
%% and the derived file filehook.sty.
%%
-%% $Id: filehook.dtx 2005 2011-01-03 22:53:56Z martin $
+%% $Id: filehook.dtx 2033 2011-01-09 17:14:37Z martin $
\ProvidesPackage{filehook-fink}[2011/01/03 v0.1 filehook compatibility code for fink package]
\RequirePackage{filehook}
\RequirePackage{currfile}%
diff --git a/Master/texmf-dist/tex/latex/filehook/filehook-listings.sty b/Master/texmf-dist/tex/latex/filehook/filehook-listings.sty
index e6c394e5489..ad51015e2f2 100644
--- a/Master/texmf-dist/tex/latex/filehook/filehook-listings.sty
+++ b/Master/texmf-dist/tex/latex/filehook/filehook-listings.sty
@@ -18,7 +18,7 @@
%% This work consists of the files filehook.dtx, filehook.ins
%% and the derived file filehook.sty.
%%
-%% $Id: filehook.dtx 2005 2011-01-03 22:53:56Z martin $
+%% $Id: filehook.dtx 2033 2011-01-09 17:14:37Z martin $
\ProvidesPackage{filehook-listings}[2011/01/02 v0.1 Patch for listings to avoid hooks for verbatim input files]
\begingroup
diff --git a/Master/texmf-dist/tex/latex/filehook/filehook-memoir.sty b/Master/texmf-dist/tex/latex/filehook/filehook-memoir.sty
index 3cfae9f348a..fc85460817c 100644
--- a/Master/texmf-dist/tex/latex/filehook/filehook-memoir.sty
+++ b/Master/texmf-dist/tex/latex/filehook/filehook-memoir.sty
@@ -18,7 +18,7 @@
%% This work consists of the files filehook.dtx, filehook.ins
%% and the derived file filehook.sty.
%%
-%% $Id: filehook.dtx 2005 2011-01-03 22:53:56Z martin $
+%% $Id: filehook.dtx 2033 2011-01-09 17:14:37Z martin $
\ProvidesPackage{filehook-memoir}[2011/01/03 v0.1 filehook patch for memoir class]
\RequirePackage{filehook}
\begingroup
diff --git a/Master/texmf-dist/tex/latex/filehook/filehook-scrlfile.sty b/Master/texmf-dist/tex/latex/filehook/filehook-scrlfile.sty
index 03b19800cc2..68a495454ea 100644
--- a/Master/texmf-dist/tex/latex/filehook/filehook-scrlfile.sty
+++ b/Master/texmf-dist/tex/latex/filehook/filehook-scrlfile.sty
@@ -18,7 +18,7 @@
%% This work consists of the files filehook.dtx, filehook.ins
%% and the derived file filehook.sty.
%%
-%% $Id: filehook.dtx 2005 2011-01-03 22:53:56Z martin $
+%% $Id: filehook.dtx 2033 2011-01-09 17:14:37Z martin $
\ProvidesPackage{filehook-scrlfile}[2011/01/03 v0.1 filehook patch for scrlfile package]
\RequirePackage{filehook}
\begingroup
diff --git a/Master/texmf-dist/tex/latex/filehook/filehook.sty b/Master/texmf-dist/tex/latex/filehook/filehook.sty
index 9ed1ecb4648..c208fa39479 100644
--- a/Master/texmf-dist/tex/latex/filehook/filehook.sty
+++ b/Master/texmf-dist/tex/latex/filehook/filehook.sty
@@ -18,10 +18,10 @@
%% This work consists of the files filehook.dtx, filehook.ins
%% and the derived file filehook.sty.
%%
-%% $Id: filehook.dtx 2005 2011-01-03 22:53:56Z martin $
+%% $Id: filehook.dtx 2033 2011-01-09 17:14:37Z martin $
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{filehook}
- [2011/01/03 v0.4 Hooks for input files]
+ [2011/01/09 v0.5 Hooks for input files]
\newif\iffilehook@force
\DeclareOption{force}{\filehook@forcetrue}
\ProcessOptions\relax
@@ -194,6 +194,14 @@
\def\AtEndOfXFile@normal#1#2#3{%
\AtEndOfFile{#2.#1}{\AtEndOfPackage{#3}}%
}
+\newcommand*\ClearHook{%
+ \begingroup
+ \def\filehook@prefix##1##2{%
+ \gdef##1{}%
+ \endgroup
+ }%
+ \let\filehook@append\filehook@prefix
+}
\let\filehook@orig@@input@\@input@
\let\filehook@orig@@iinput\@iinput
\def\@input@#1{%
diff --git a/Master/texmf-dist/tex/latex/filehook/pgf-filehook.sty b/Master/texmf-dist/tex/latex/filehook/pgf-filehook.sty
new file mode 100644
index 00000000000..30affd26c39
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/filehook/pgf-filehook.sty
@@ -0,0 +1,84 @@
+%% Copyright (c) 2010-2011 by Martin Scharrer <martin@scharrer-online.de>
+%% -----------------------------------------------------------------
+%%
+%% 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 version.
+%% The latest version of this license is in
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008/05/04 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files filehook.dtx, filehook.ins
+%% and the derived file filehook.sty.
+%%
+%% $Id: filehook.dtx 2033 2011-01-09 17:14:37Z martin $
+\ProvidesPackage{pgf-filehook}[2010/01/07 v1.0 PGF keys for the filehook package]
+\RequirePackage{filehook}
+\RequirePackage{pgfkeys}
+
+\pgfkeys{%
+ /filehook/.is family,
+ /filehook,
+ EveryFile/.is family,
+ EveryFile/AtBegin/.code={\AtBeginOfEveryFile{#1}},
+ EveryFile/AtBegin/.value required,
+ EveryFile/AtEnd/.code={\AtEndOfEveryFile{#1}},
+ EveryFile/AtEnd/.value required,
+ Files/.is family,
+ Files/AtBegin/.code={\AtBeginOfFiles{#1}},
+ Files/AtBegin/.value required,
+ Files/AtEnd/.code={\AtEndOfFiles{#1}},
+ Files/AtEnd/.value required,
+ File/.is family,
+ File/AtBegin/.code 2 args={\AtBeginOfFile{#1}{#2}},
+ File/AtBegin/.value required,
+ File/AtEnd/.code 2 args={\AtEndOfFile{#1}{#2}},
+ File/AtEnd/.value required,
+ Inputs/.is family,
+ Inputs/AtBegin/.code={\AtBeginOfInputs{#1}},
+ Inputs/AtBegin/.value required,
+ Inputs/AtEnd/.code={\AtEndOfInputs{#1}},
+ Inputs/AtEnd/.value required,
+ InputFile/.is family,
+ InputFile/AtBegin/.code 2 args={\AtBeginOfInputFile{#1}{#2}},
+ InputFile/AtBegin/.value required,
+ InputFile/AtEnd/.code 2 args={\AtEndOfInputFile{#1}{#2}},
+ InputFile/AtEnd/.value required,
+ Includes/.is family,
+ Includes/AtBegin/.code={\AtBeginOfIncludes{#1}},
+ Includes/AtBegin/.value required,
+ Includes/AtEnd/.code={\AtEndOfIncludes{#1}},
+ Includes/AtEnd/.value required,
+ Includes/After/.code={\AfterIncludes{#1}},
+ Includes/After/.value required,
+ IncludeFile/.is family,
+ IncludeFile/AtBegin/.code 2 args={\AtBeginOfIncludeFile{#1}{#2}},
+ IncludeFile/AtBegin/.value required,
+ IncludeFile/AtEnd/.code 2 args={\AtEndOfIncludeFile{#1}{#2}},
+ IncludeFile/AtEnd/.value required,
+ IncludeFile/After/.code 2 args={\AfterIncludeFile{#1}{#2}},
+ IncludeFile/After/.value required,
+ ClassFile/.is family,
+ ClassFile/AtBegin/.code={\AtBeginOfClassFile#1},
+ ClassFile/AtBegin/.value required,
+ ClassFile/AtEnd/.code={\AtEndOfClassFile#1},
+ ClassFile/AtEnd/.value required,
+ PackageFile/.is family,
+ PackageFile/AtBegin/.code={\AtBeginOfPackageFile#1},
+ PackageFile/AtBegin/.value required,
+ PackageFile/AtEnd/.code={\AtEndOfPackageFile#1},
+ PackageFile/AtEnd/.value required,
+}
+
+\newcommand{\pgffilehook}{\pgfqkeys{/filehook}}
+
+\endinput
+%%
+%% End of file `pgf-filehook.sty'.