From 28fe3c14abdc8fbd0ed8b77edbb4b9c44a124c73 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 23 Sep 2007 00:36:16 +0000 Subject: namespc must generate ins first (luecking 23 Jul 2007 13:47:15) git-svn-id: svn://tug.org/texlive/trunk@5011 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/namespc/namespc.sty | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/namespc/namespc.sty (limited to 'Master/texmf-dist/tex/latex/namespc') diff --git a/Master/texmf-dist/tex/latex/namespc/namespc.sty b/Master/texmf-dist/tex/latex/namespc/namespc.sty new file mode 100644 index 00000000000..56b207b0b7a --- /dev/null +++ b/Master/texmf-dist/tex/latex/namespc/namespc.sty @@ -0,0 +1,49 @@ +%% +%% This is file `namespc.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% namespc.dtx (with options: `package') +%% +%% +%% +\NeedsTeXFormat{LaTeX2e}[1998/12/01] +\ProvidesPackage{namespc} + [2003/10/03 namespace environment] +\makeatletter +\def\@defnamespace@ifundef#1{ + \@ifundefined{#1}{ + \long\expandafter\def\csname#1\endcsname{} + }{} +} +\newcommand{\@n@mesp@cestar}[3]{ + \@defnamespace@ifundef{@namespace@#1} + \expandafter\g@addto@macro\csname @namespace@#1\endcsname{#2}% + { + \expandafter\relax\csname @namespace@#1\endcsname + #3 + } +} +\newcommand{\usingnamespace}[1]{ + \@defnamespace@ifundef{@namespace@#1} + \csname @namespace@#1\endcsname +} +\def\@provide@namespace@env#1{ + \@ifundefined{#1} { + \newenvironment{#1}{\usingnamespace{#1}}{} + }{} +} +\def\::#1::#2:#3:{% + {\csname @namespace@#1\endcsname + \csname#2\endcsname#3} +} +\newcommand{\@n@mesp@ce}[3]{ + \@provide@namespace@env{#1} + \@n@mesp@cestar{#1}{#2}{#3} +} +\newcommand*{\namespace}{\@ifstar\@n@mesp@cestar\@n@mesp@ce} +\makeatother +\endinput +%% +%% End of file `namespc.sty'. -- cgit v1.2.3