summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ncctools/afterpackage.sty
blob: 459f0664d1221985f2866bce0df6844dd08f70a8 (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
50
51
52
53
54
55
56
57
58
59
60
%%
%% This is file `afterpackage.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% afterpackage.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% This file is a generated file from the sources of the `ncctools'
%% bundle.
%% 
%% You are not allowed to modify this file.
%% 
%% You are allowed to distribute this file if and only if
%% it is distributed with the corresponding source files in
%% the `ncctools' bundle.
%% 
%% For the copying and distribution conditions of the source files,
%% see the README file distributed with the ncctools bundle.
%%
%% File: afterpackage.dtx Copyright (C) 2005, 2006 by Alexander I. Rozhenko
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{afterpackage}
         [2006/01/17 v1.1 Apply Commands After Package (NCC)]
\newcommand*\AfterPackage[1]{%
  \expandafter\ifx\csname ver@#1.\@pkgextension\endcsname\relax
    \@ifundefined{#1.\@pkgextension-@dd}{%
      \expandafter\let\csname#1.\@pkgextension-@dd\endcsname\@empty
      \expandafter\@onlypreamble\csname#1.\@pkgextension-@dd\endcsname
    }{}%
    \wlog{After Package Info: Collect commands for #1\on@line}%
    \def\@tempa{%
      \expandafter\g@addto@macro\csname#1.\@pkgextension-@dd\endcsname}%
  \else
    \ATP@apply@info{#1}%
    \let\@tempa\@firstofone
  \fi
  \@tempa
}
\@onlypreamble\AfterPackage
\let\ATP@popfilename\@popfilename
\@onlypreamble\ATP@popfilename
\def\@popfilename{%
  \@ifundefined{\@currname.\@currext-@dd}{}{%
    \ATP@apply@info{\@currname}%
    \csname\@currname.\@currext-@dd\endcsname
    \expandafter\let\csname\@currname.\@currext-@dd\endcsname\relax
  }%
  \ATP@popfilename
}
\def\ATP@apply@info#1{%
  \wlog{After Package Info: Apply commands to #1\on@line}%
}
\@onlypreamble\ATP@apply@info
\endinput
%%
%% End of file `afterpackage.sty'.