summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-10-11 23:18:43 +0000
committerKarl Berry <karl@freefriends.org>2009-10-11 23:18:43 +0000
commit9ec1dd8e5c7ae35e7974ad9414b0d492d341a7d3 (patch)
treea0831356c1d8e6607baca505375aac709bbace72 /Master/texmf-dist/tex/latex
parent66f6f7f59a221b7c1189fc36c479b2f4c881cc36 (diff)
ltxnew update (11oct09)
git-svn-id: svn://tug.org/texlive/trunk@15784 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/ltxnew/ltxnew.sty12
1 files changed, 7 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/ltxnew/ltxnew.sty b/Master/texmf-dist/tex/latex/ltxnew/ltxnew.sty
index d2a8657ed47..e93290b61e1 100644
--- a/Master/texmf-dist/tex/latex/ltxnew/ltxnew.sty
+++ b/Master/texmf-dist/tex/latex/ltxnew/ltxnew.sty
@@ -20,14 +20,14 @@
%% and the derived files
%% ltxnew.sty, ltxnew.pdf, ltxnew.ins,
%%
-%% ltxnew : an easy way to define commands with keys
+%% ltxnew : provides the \new \renew and \provide prefixes for checking definitions
%% Copyright (C) 2009 by Florent Chervet <florent.chervet@free.fr>
%%
\NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
[2005/12/01]% LaTeX must be 2005/12/01 or younger (see kvsetkeys.dtx).
\ProvidesPackage{ltxnew}
- [2009/07/22 v1.0 provides the new and renew prefixes for checking definitions]
+ [2009/10/11 v1.1 provides the new and renew prefixes for checking definitions]
\RequirePackage{etex}
@@ -106,14 +106,16 @@
\else\ifx\x\marks \def\z{\newmarks}%%39 %\newmarks=\globmarks
\else\ifx\x\globmarks \def\z{\globmarks}%%40
\else\ifx\x\font \def\z{\font}%%41
- \else\ifx\x\protect \ltxn@error@prefix%%42
+ \else\ifx\x\write \def\z{\newwrite}%%42
+ \else\ifx\x\read \def\z{\newread}%%43
+ \else\ifx\x\protect \ltxn@error@prefix%%44
\else
\let\ltxn@next@addto\ltxn@next@prefix
\ifx\y\x\ltxn@error@prefix
\else\let\y\x
\fi
\let\next\ltxn@expand@prefix
- \fi\fi\fi\fi\fi\fi\fi\fi
+ \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
\fi\fi\fi\fi
@@ -124,7 +126,7 @@
\def\ltxn@next@prefix{\futurelet\x\ltxn@@prefix}
\def\ltxn@expand@prefix{%
\expandafter\futurelet\expandafter\x\expandafter\ltxn@@prefix}
-\def\ltxn@addto@prfx#1{\let\y\relax
+\def\ltxn@addto@prfx#1{\let\y\@undefined
\edef\ltxn@prfx{\ltxn@expandonce{\ltxn@prfx}\ltxn@expandonce{\z}}%
\ltxn@next@addto}
\expandafter\def\expandafter\ltxn@space@prefix\space{\ltxn@next@prefix}