diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/kvoptions-patch.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/kvoptions-patch.sty | 56 |
1 files changed, 31 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/kvoptions-patch.sty b/Master/texmf-dist/tex/latex/oberdiek/kvoptions-patch.sty index 944bfd58692..ea8df787840 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/kvoptions-patch.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/kvoptions-patch.sty @@ -30,34 +30,44 @@ %% kvoptions.sty, kvoptions.pdf, kvoptions.ins, kvoptions.drv, %% kvoptions-patch.sty, example-mycolorsetup.sty, %% kvoptions-test1.tex, kvoptions-test2.tex, -%% kvoptions-test3.tex. +%% kvoptions-test3.tex, kvoptions-test4.tex, +%% kvoptions-test4.sty. %% %% No we don't need the option 'color'. %% With color support option 'emphcolor' will dynamically %% change the color of \emph statements. \NeedsTeXFormat{LaTeX2e} -\begingroup - \catcode123 1 % { - \catcode125 2 % } +\begingroup\catcode61\catcode48\catcode32=10\relax% + \catcode13=5 % ^^M + \endlinechar=13 % + \catcode123=1 % { + \catcode125=2 % } + \catcode64=11 % @ \def\x{\endgroup \expandafter\edef\csname KVO@AtEnd\endcsname{% - \catcode35 \the\catcode35\relax - \catcode64 \the\catcode64\relax - \catcode123 \the\catcode123\relax - \catcode125 \the\catcode125\relax + \endlinechar=\the\endlinechar\relax + \catcode13=\the\catcode13\relax + \catcode32=\the\catcode32\relax + \catcode35=\the\catcode35\relax + \catcode61=\the\catcode61\relax + \catcode64=\the\catcode64\relax + \catcode123=\the\catcode123\relax + \catcode125=\the\catcode125\relax }% }% -\x -\catcode35 6 % # -\catcode64 11 % @ -\catcode123 1 % { -\catcode125 2 % } +\x\catcode61\catcode48\catcode32=10\relax% +\catcode13=5 % ^^M +\endlinechar=13 % +\catcode35=6 % # +\catcode64=11 % @ +\catcode123=1 % { +\catcode125=2 % } \def\TMP@EnsureCode#1#2{% \edef\KVO@AtEnd{% \KVO@AtEnd - \catcode#1 \the\catcode#1\relax + \catcode#1=\the\catcode#1\relax }% - \catcode#1 #2\relax + \catcode#1=#2\relax } \TMP@EnsureCode{39}{12}% ' \TMP@EnsureCode{40}{12}% ( @@ -69,25 +79,21 @@ \TMP@EnsureCode{47}{12}% / \TMP@EnsureCode{58}{12}% : \TMP@EnsureCode{60}{12}% < -\TMP@EnsureCode{61}{12}% = \TMP@EnsureCode{62}{12}% > \TMP@EnsureCode{91}{12}% [ \TMP@EnsureCode{93}{12}% ] \TMP@EnsureCode{96}{12}% ` \TMP@EnsureCode{124}{12}% | -\edef\KVO@AtEnd{% - \KVO@AtEnd - \noexpand\endinput -} +\edef\KVO@AtEnd{\KVO@AtEnd\noexpand\endinput} \ProvidesPackage{kvoptions-patch}% - [2010/02/22 v3.7 LaTeX patch for keyval options (HO)]% + [2010/12/23 v3.10 LaTeX patch for keyval options (HO)]% \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname eTeXversion\endcsname\relax \PackageWarningNoLine{kvoptions-patch}{% Package loading is aborted, because e-TeX is missing% }% \expandafter\KVO@AtEnd -\fi +\fi% \RequirePackage{etexcmds}[2007/09/09] \ifetex@unexpanded \else @@ -97,7 +103,7 @@ before \string\documentclass% }\@ehd \expandafter\KVO@AtEnd -\fi +\fi% \@ifpackageloaded{xkvltxp}{% \PackageWarningNoLine{kvoptions}{% Option `patch' cannot be used together with\MessageBreak @@ -105,7 +111,7 @@ Therefore package loading is aborted% }% \KVO@AtEnd -}{} +}{}% \def\@if@ptions#1#2#3{% \begingroup \KVO@normalize\KVO@temp{#3}% @@ -498,7 +504,7 @@ \let\@fileswith@pti@ns\KVO@fileswith@pti@ns \fi \let\KVO@Patch=Y -\KVO@AtEnd +\KVO@AtEnd% \endinput %% %% End of file `kvoptions-patch.sty'. |