summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/namespc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-09-23 00:36:16 +0000
committerKarl Berry <karl@freefriends.org>2007-09-23 00:36:16 +0000
commit28fe3c14abdc8fbd0ed8b77edbb4b9c44a124c73 (patch)
treeb9e6b8c46ac3b30c59048277721cc2dd3b7d4f5d /Master/texmf-dist/tex/latex/namespc
parent1465382018558cf3ddb3440aa6e51469eb0ebbc5 (diff)
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
Diffstat (limited to 'Master/texmf-dist/tex/latex/namespc')
-rw-r--r--Master/texmf-dist/tex/latex/namespc/namespc.sty49
1 files changed, 49 insertions, 0 deletions
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'.