From 9bed658d6e82bcd183d49e4da7e72fd414eea759 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 2 Aug 2011 00:03:57 +0000
Subject: pax 0.1k (6jul11)

git-svn-id: svn://tug.org/texlive/trunk@23306 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/pax/pax.sty | 40 +++++++++++----------------------
 1 file changed, 13 insertions(+), 27 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/pax/pax.sty')

diff --git a/Master/texmf-dist/tex/latex/pax/pax.sty b/Master/texmf-dist/tex/latex/pax/pax.sty
index eef21dbb927..ac4465c879f 100644
--- a/Master/texmf-dist/tex/latex/pax/pax.sty
+++ b/Master/texmf-dist/tex/latex/pax/pax.sty
@@ -18,7 +18,7 @@
 %
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{pax}%
-  [2011/04/22 v0.1i Annotation support for PDF graphics (HO)]%
+  [2011/07/06 v0.1k Annotation support for PDF graphics (HO)]%
 
 \RequirePackage{ifpdf}
 \ifpdf
@@ -38,25 +38,11 @@
 \fi
 
 \RequirePackage{graphicx}
-\RequirePackage{kvoptions}[2006/08/17]
-\RequirePackage{auxhook}
-\RequirePackage{etexcmds}
-
-% the local variant to LaTeX's \g@addto@macro,
-% see also discussion in de.comp.text.tex.
-\ifetex@unexpanded
-  \newcommand{\PAX@l@addto@macro}[2]{%
-    \edef#1{%
-      \etex@unexpanded\expandafter{#1#2}%
-    }%
-  }%
-\else
-  \newcommand{\PAX@l@addto@macro}[2]{%
-    \global\let\PAX@g@temp#1%
-    \g@addto@macro\PAX@g@temp{#2}%
-    \let#1\PAX@g@temp
-  }%
-\fi
+\RequirePackage{ltxcmds}[2011/04/18]
+\RequirePackage{kvsetkeys}[2011/04/07]
+\RequirePackage{kvoptions}[2010/12/23]
+\RequirePackage{auxhook}[2011/03/04]
+\RequirePackage{etexcmds}[2011/02/16]
 
 % Hook into \includegraphics of graphicx with one optional
 % star, one optional argument with key value pairs and
@@ -102,12 +88,12 @@
 \DeclareStringOption[0]{angle}
 \DeclareBoolOption{clip}
 \define@key{PAX@Gin}{viewport}{%
-  \PAX@l@addto@macro\PAX@Gin@box@opts{%
+  \ltx@LocalAppendToMacro\PAX@Gin@box@opts{%
     \PAX@viewport#1\\%
   }%
 }
 \define@key{PAX@Gin}{trim}{%
-  \PAX@l@addto@macro\PAX@Gin@box@opts{%
+  \ltx@LocalAppendToMacro\PAX@Gin@box@opts{%
     \PAX@trim#1\\%
   }%
 }
@@ -145,11 +131,11 @@
   \fi
 }
 
-\def\PAX@KV@errx#1{}
+% ignore unknown options in family `PAX@Gin'
+\kv@set@family@handler{PAX@Gin}{}
 
 \def\PAX@AddAnnots#1#2{%
-  \let\KV@errx\PAX@KV@errx
-  \setkeys{PAX@Gin}{#1}%
+  \kvsetkeys{PAX@Gin}{#1}%
   \Grot@setangle{\PAX@Gin@angle}%
   % a little careful, is type of angle int or real?
   \loop
@@ -234,7 +220,7 @@
   \PAX@call{link}{#2}{%
     \begingroup
     \PAX@getrect{annot}#1\@nil
-    \setkeys{PAX}{#3}%
+    \kvsetkeys{PAX}{#3}%
   }%
   \PAX@skip
 }
@@ -464,7 +450,7 @@
       \begingroup
         \let\PAX@key@DestY\PAX@page@ury
         \let\PAX@key@DestX\PAX@page@llx
-        \setkeys{PAX}{#4}%
+        \kvsetkeys{PAX}{#4}%
         \let\PAX@dest@llx\PAX@key@DestX
         \let\PAX@dest@urx\PAX@key@DestX
         \let\PAX@dest@lly\PAX@key@DestY
-- 
cgit v1.2.3

