summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-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'.