diff options
author | Karl Berry <karl@freefriends.org> | 2012-11-06 22:35:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-11-06 22:35:59 +0000 |
commit | 6cab410e49d491c2884a037e0a134eeb2c2acda9 (patch) | |
tree | 5b7b72852382a70ac7f27f43b913d1da8f66ed12 /Master/texmf-dist/tex/latex/skeyval/skeyval-ltxcmds.tex | |
parent | 705b4d8f092a56d9ae900940d265fb6f55b3033d (diff) |
skeyval (6nov12)
git-svn-id: svn://tug.org/texlive/trunk@28197 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/skeyval/skeyval-ltxcmds.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/skeyval/skeyval-ltxcmds.tex | 69 |
1 files changed, 60 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/skeyval/skeyval-ltxcmds.tex b/Master/texmf-dist/tex/latex/skeyval/skeyval-ltxcmds.tex index dbdb14df6cf..17b4c19c9d5 100644 --- a/Master/texmf-dist/tex/latex/skeyval/skeyval-ltxcmds.tex +++ b/Master/texmf-dist/tex/latex/skeyval/skeyval-ltxcmds.tex @@ -1,5 +1,5 @@ %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% -% This is file 'skeyval-ltxcmds.tex', version 1.1, 2012/10/15. % +% This is file 'skeyval-ltxcmds.tex', version 1.1a, 2012/10/16. % % % % This package and accompanying files may be distributed and/or % % modified under the conditions of the LaTeX Project Public License, % @@ -26,29 +26,80 @@ % Copyright (c) 2010-2012 Ahmed Musa (amusa22@gmail.com). % %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% -\csname skeyval-ltxcmds-loaded\endcsname -\expandafter\let\csname skeyval-ltxcmds-loaded\endcsname\endinput - +\begingroup% +\let\e\endlinechar\edef\p{\the\e}\e13\edef\n{\the\catcode\e}% +\xdef\skv@ltxcmds@restorecatcodes{% + \let\noexpand\skv@ltxcmds@restorecatcodes\relax% + \endlinechar=\p\relax\catcode\number\e=\n\relax% + \catcode\string`\noexpand`\string=\the\catcode\string``\relax% + \catcode\string`\noexpand=\string=\the\catcode\string`=\relax% +}% +\endgroup% +\endlinechar\string=13\relax% +\catcode13\string=5\relax% +\catcode\string``\string=12\relax +\catcode\string`=\string=12\relax +\long\def\skvgobble#1{} +\def\do#1{\catcode`\expandafter\skvgobble\string#1=\the\catcode`#1\relax} \edef\skv@ltxcmds@restorecatcodes{% - \catcode`\noexpand\@\the\catcode`\@\relax - \let\noexpand\skv@ltxcmds@restorecatcodes\relax + \unexpanded\expandafter{\skv@ltxcmds@restorecatcodes}% + \do\ \do\%\do\@\do\(\do\)\do\[\do\]\do\|\do\:\do\;\do\,\do\.% + \do\>\do\<\do\!\do\*\do\+\do\-\do\^\do\_\do\&\do\$\do\~\do\'% + \do\"\do\ } -\catcode`\@=11\relax +\catcode`\ =10\relax +\catcode`\@=11 \catcode`\(=12 \catcode`\)=12 \catcode`\[=12 +\catcode`\]=12 \catcode`\|=12 \catcode`\:=12 \catcode`\;=12 +\catcode`\,=12 \catcode`\*=12 \catcode`\+=12 \catcode`\-=12 +\catcode`\<=12 \catcode`\>=12 \catcode`\!=12 \catcode`\.=12 +\catcode`\^=07 \catcode`\_=08 \catcode`\&=04 \catcode`\$=03 +\catcode`\~=13 \catcode`\%=14 \catcode`\'=12 \catcode`\"=12 -\message{skeyval-ltxcmds 2012/10/15 v1.1 skeyval TeX header (AM)} +\csname skeyval-ltxcmds-loaded\endcsname +\expandafter\let\csname skeyval-ltxcmds-loaded\endcsname\endinput +\message{skeyval-ltxcmds 2012/10/16 v1.1a skeyval TeX header (AM)} + +\countdef\m@ne=22 \m@ne=-1 +\def\wlog{\immediate\write\m@ne} +\countdef\count@=255 +\dimendef\dimen@=0 +\dimendef\dimen@i=1 +\dimendef\dimen@ii=2 +\skipdef\skip@=0 +\toksdef\toks@=0 +\newif\if@tempswa +\newcount\@tempcnta +\newcount\@tempcntb +\newdimen\@tempdima +\newdimen\@tempdimb +\newdimen\@tempdimc +\newbox\@tempboxa +\newskip\@tempskipa +\newskip\@tempskipb +\newtoks\@temptokena \def\@nnil{\@nil} \def\@empty{} +\def\space{ } +\def\@space{ } \long\def\@firstofone#1{#1} +\let\@iden\@firstofone \long\def\@firstoftwo#1#2{#1} \long\def\@secondoftwo#1#2{#2} \long\def\@gobble#1{} \long\def\@gobbletwo#1#2{} \lowercase{\def\@gobblespace} {} \def\@nameuse#1{\csname#1\endcsname} +\def\@namedef#1{\expandafter\def\csname#1\endcsname} \let\l@ngrel@x\relax +\def\loop#1\repeat{% + \def\iterate{#1\relax\expandafter\iterate\fi}% + \iterate\let\iterate\relax +} +\let\repeat\fi \protected\def\newif#1{% - \count@\escapechar\escapechar\m@ne + \count@\escapechar + \escapechar\m@ne \let#1\iffalse \ltx@booldef#1\iftrue \ltx@booldef#1\iffalse |