summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-13 22:43:52 +0000
committerKarl Berry <karl@freefriends.org>2011-10-13 22:43:52 +0000
commit7b72397a1dd4db0348a7e006bc24cc8268687984 (patch)
tree8112b47559543fc43203abacdc1f8b0d07c4fec8 /Master
parent3b443f201cf868e0fe49505f8f49af60adb73dca (diff)
filehook (13oct11)
git-svn-id: svn://tug.org/texlive/trunk@24280 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/filehook/filehook.pdfbin261968 -> 261965 bytes
-rw-r--r--Master/texmf-dist/source/latex/filehook/filehook.dtx12
-rw-r--r--Master/texmf-dist/tex/latex/filehook/filehook.sty5
3 files changed, 8 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/filehook/filehook.pdf b/Master/texmf-dist/doc/latex/filehook/filehook.pdf
index 347ea5e0ae9..9f81070476e 100644
--- a/Master/texmf-dist/doc/latex/filehook/filehook.pdf
+++ b/Master/texmf-dist/doc/latex/filehook/filehook.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/filehook/filehook.dtx b/Master/texmf-dist/source/latex/filehook/filehook.dtx
index ce45eaef8b3..01dd5bbedcd 100644
--- a/Master/texmf-dist/source/latex/filehook/filehook.dtx
+++ b/Master/texmf-dist/source/latex/filehook/filehook.dtx
@@ -29,12 +29,12 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{filehook}
%<*package>
- [2011/10/07 v0.5c Hooks for input files]
+ [2011/10/12 v0.5d Hooks for input files]
%</package>
%
%<*driver>
\documentclass{ydoc}[2011/03/19]
-\usepackage{filehook}[2011/07/18]
+\usepackage{filehook}[2011/10/12]
\EnableCrossrefs
\CodelineIndex
\RecordChanges
@@ -55,7 +55,7 @@
%</driver>
% \fi
%
-% \CheckSum{1019}
+% \CheckSum{1018}
%
% \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
@@ -94,6 +94,7 @@
% \changes{v0.5a}{2011/03/09}{Added required \string\long\space to an internal macro.}
% \changes{v0.5b}{2011/07/18}{Replaced \cs{@nameuse} for use with eTeX code to avoid the definition of non-existing hooks to \cs{relax}.}
% \changes{v0.5c}{2011/10/07}{Added fall-back code for non-eTeX compilers.}
+% \changes{v0.5d}{2011/10/12}{Fix for fall-back code.}
%
% \GetFileInfo{filehook.dtx}
%
@@ -510,7 +511,7 @@
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{filehook}
- [2011/10/07 v0.5c Hooks for input files]
+ [2011/10/12 v0.5d Hooks for input files]
% \end{macrocode}
%
% \subsection{Options}
@@ -529,11 +530,10 @@
% \begin{macro}{\filehook@csuse}
% \begin{macrocode}
\begingroup
+\gdef\filehook@csuse#1{\ifcsname #1\endcsname\csname #1\expandafter\endcsname\fi}
\expandafter\ifx\csname csuse\endcsname\relax
\expandafter\ifx\csname ifcsname\endcsname\relax
\gdef\filehook@csuse#1{\expandafter\ifx\csname #1\endcsname\relax\else\csname #1\expandafter\endcsname\fi}
- \else
- \gdef\filehook@csuse#1{\ifcsname #1\endcsname\csname #1\expandafter\endcsname\fi}
\fi
\else
\global\let\filehook@csuse\csuse
diff --git a/Master/texmf-dist/tex/latex/filehook/filehook.sty b/Master/texmf-dist/tex/latex/filehook/filehook.sty
index 377d7ee2171..728462c2436 100644
--- a/Master/texmf-dist/tex/latex/filehook/filehook.sty
+++ b/Master/texmf-dist/tex/latex/filehook/filehook.sty
@@ -21,16 +21,15 @@
%% $Id: filehook.dtx 2504 2011-07-18 17:22:50Z martin $
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{filehook}
- [2011/10/07 v0.5c Hooks for input files]
+ [2011/10/12 v0.5d Hooks for input files]
\newif\iffilehook@force
\DeclareOption{force}{\filehook@forcetrue}
\ProcessOptions\relax
\begingroup
+\gdef\filehook@csuse#1{\ifcsname #1\endcsname\csname #1\expandafter\endcsname\fi}
\expandafter\ifx\csname csuse\endcsname\relax
\expandafter\ifx\csname ifcsname\endcsname\relax
\gdef\filehook@csuse#1{\expandafter\ifx\csname #1\endcsname\relax\else\csname #1\expandafter\endcsname\fi}
- \else
- \gdef\filehook@csuse#1{\ifcsname #1\endcsname\csname #1\expandafter\endcsname\fi}
\fi
\else
\global\let\filehook@csuse\csuse