blob: 56b207b0b7a2c7b3c00968f00df8545d7c0366b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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'.
|