summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/kvoptions.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/kvoptions.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/kvoptions.dtx48
1 files changed, 33 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/kvoptions.dtx b/Master/texmf-dist/source/latex/oberdiek/kvoptions.dtx
index 7c76961ae2d..b0eed0fc6a8 100644
--- a/Master/texmf-dist/source/latex/oberdiek/kvoptions.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/kvoptions.dtx
@@ -69,7 +69,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: kvoptions 2007/04/11 v2.5 Connects package keyval with LaTeX options (HO)}
+\Msg{* Package: kvoptions 2007/05/06 v2.6 Connects package keyval with LaTeX options (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -133,7 +133,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{kvoptions.drv}%
- [2007/04/11 v2.5 Connects package keyval with LaTeX options (HO)]%
+ [2007/05/06 v2.6 Connects package keyval with LaTeX options (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}
\begin{document}
@@ -142,7 +142,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{1519}
+% \CheckSum{1536}
%
% \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
@@ -163,7 +163,7 @@ and the derived files
% \GetFileInfo{kvoptions.drv}
%
% \title{The \xpackage{kvoptions} package}
-% \date{2007/04/11 v2.5}
+% \date{2007/05/06 v2.6}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -626,7 +626,7 @@ and the derived files
% Package identification
% -----------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{example-mycolorsetup}[2007/04/11 Managing my colors]
+\ProvidesPackage{example-mycolorsetup}[2007/05/06 Managing my colors]
\RequirePackage{ifpdf}
\RequirePackage{kvoptions}
@@ -803,7 +803,7 @@ and the derived files
% \end{quote}
% Some remarks:
% \begin{itemize}
-% \item The patch and requires \eTeX, its \cs{unexpanded} feature
+% \item The patch requires \eTeX, its \cs{unexpanded} feature
% is much to nice. It is possible to work around using token
% registers. But the code becomes longer, slower, more difficult
% to read and maintain. The package without option \xoption{patch}
@@ -928,7 +928,7 @@ and the derived files
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{kvoptions}
- [2007/04/11 v2.5 Connects package keyval with LaTeX options (HO)]%
+ [2007/05/06 v2.6 Connects package keyval with LaTeX options (HO)]%
% \end{macrocode}
%
% \paragraph{External resources.}
@@ -1504,11 +1504,11 @@ and the derived files
\@ifundefined{KV@#1@\expandafter\KVO@getkey\KVO@CurrentOption=\@nil}{%
}{%
\edef\KVO@temp{%
-^^B \unexpanded\expandafter{%
+^^B \etex@unexpanded\expandafter{%
\KVO@temp
^^B }%
,%
-^^B \unexpanded\expandafter{%
+^^B \etex@unexpanded\expandafter{%
\KVO@CurrentOption
^^B }%
,%
@@ -1678,6 +1678,20 @@ and the derived files
\fi
% \end{macrocode}
%
+% Package \xpackage{etexcmds} for \cs{etex@unexpanded}.
+% \begin{macrocode}
+\RequirePackage{etexcmds}
+\ifetex@unexpanded
+\else
+ \PackageError{kvoptions}{%
+ Could not find eTeX's \string\unexpanded.\MessageBreak
+ Try adding \string\RequirePackage\string{etexcmds\string} %
+ before \string\documentclass%
+ }\@ehd
+ \expandafter\endinput
+\fi
+% \end{macrocode}
+%
% Check for package \xpackage{xkvltxp}.
% \begin{macrocode}
\@ifpackageloaded{xkvltxp}{%
@@ -2050,14 +2064,14 @@ and the derived files
\else
% append to list
\edef\KVO@result{%
- \unexpanded\expandafter{\KVO@result},\KVO@x
+ \etex@unexpanded\expandafter{\KVO@result},\KVO@x
}%
\fi
}{%
% #1: "key", #2: "value="
% add key part
\edef\KVO@result{%
- \unexpanded\expandafter{\KVO@result},%
+ \etex@unexpanded\expandafter{\KVO@result},%
\zap@space#1 \@empty
}%
\futurelet\@let@token\KVO@checkfirsttok#2 \@nil| = \@nil|\KVO@nil
@@ -2086,13 +2100,13 @@ and the derived files
\def\KVO@removelastspace#1 = \@nil|#2\KVO@nil{%
\KVO@ifempty{#2}{%
\edef\KVO@result{%
- \unexpanded\expandafter{\KVO@result}%
- \unexpanded\expandafter{\KVO@removegarbage#1\KVO@nil}%
+ \etex@unexpanded\expandafter{\KVO@result}%
+ \etex@unexpanded\expandafter{\KVO@removegarbage#1\KVO@nil}%
}%
}{%
\edef\KVO@result{%
- \unexpanded\expandafter{\KVO@result}%
- \unexpanded{#1}%
+ \etex@unexpanded\expandafter{\KVO@result}%
+ \etex@unexpanded{#1}%
}%
}%
}
@@ -2353,6 +2367,10 @@ and the derived files
% \item
% Line ends sanitized.
% \end{Version}
+% \begin{Version}{2007/05/06 v2.6}
+% \item
+% Uses package \xpackage{etexcmds}.
+% \end{Version}
% \end{History}
%
% \PrintIndex