summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ncctools/ncccomma.sty
blob: 6ff8161a8ecfa9f1f09dadb5c8eb77466ce0aa9b (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
%%
%% This is file `ncccomma.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ncccomma.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: ncccomma.dtx Copyright (C) 2005 by Alexander I. Rozhenko
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ncccomma}
      [2005/02/10 v1.0 Smart Math Comma Package (NCC)]
\mathchardef\mathcomma\mathcode`\,
\mathcode`\,="8000
\bgroup
  \uccode`\~`\,%
  \uppercase{%
\egroup
  \def~}{\futurelet\@let@token\NCC@comma}
\newcommand\ordcommalist{0123456789}
\def\NCC@comma{%
  \let\@tempb\@empty
  \expandafter\@tfor\expandafter\@tempa\expandafter:\expandafter=%
  \ordcommalist\do{%
    \expandafter\ifx\@tempa\@let@token
      \let\@tempb\mathord \@break@tfor
    \fi
  }%
  \@tempb\mathcomma
}
\endinput
%%
%% End of file `ncccomma.sty'.