summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/colonequals.sty
blob: 6243f83b268297d7c1110be8ff24044b51dd9d56 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
%%
%% This is file `colonequals.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% colonequals.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Project: colonequals
%% Version: 2006/08/01 v1.0
%% 
%% Copyright (C) 2006 by
%%    Heiko Oberdiek <heiko.oberdiek at googlemail.com>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%    http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% This Current Maintainer of this work is Heiko Oberdiek.
%% 
%% This work consists of the main source file colonequals.dtx
%% and the derived files
%%    colonequals.sty, colonequals.pdf, colonequals.ins, colonequals.drv.
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{colonequals}%
  [2006/08/01 v1.0 Colon equals symbols (HO)]%
\newcommand*{\colonsep}{}
\newcommand*{\doublecolonsep}{}
\def\@center@colon{%
  \mathpalette\@center@math{:}%
}
\def\@center@math#1#2{%
  \vcenter{%
    \m@th
    \hbox{$#1#2$}%
  }%
}
\newcommand*{\ratio}{%
  \ensuremath{%
    \mathrel{%
      \@center@colon
    }%
  }%
}
\newcommand*{\coloncolon}{%
  \ensuremath{%
    \mathrel{%
      \@center@colon
      \doublecolonsep
      \@center@colon
    }%
  }%
}
\def\@make@colon@set#1#2{%
  \begingroup
    \let\@center@colon\relax
    \let\newcommand\relax
    \let\ensuremath\relax
    \let\mathrel\relax
    \let\colonsep\relax
    \let\doublecolonsep\relax
    \def\csx##1{%
      \expandafter\noexpand\csname ##1\endcsname
    }%
    \edef\x{\endgroup
      \newcommand*{\csx{colon#1}}{%
        \ensuremath{%
          \mathrel{%
            \@center@colon
            \colonsep
            {#2}%
          }%
        }%
      }%
      \newcommand*{\csx{coloncolon#1}}{%
        \ensuremath{%
          \mathrel{%
            \@center@colon
            \doublecolonsep
            \@center@colon
            \colonsep
            {#2}%
          }%
        }%
      }%
      \newcommand*{\csx{#1colon}}{%
        \ensuremath{%
          \mathrel{%
            {#2}%
            \colonsep
            \@center@colon
          }%
        }%
      }%
      \newcommand*{\csx{#1coloncolon}}{%
        \ensuremath{%
          \mathrel{%
            {#2}%
            \colonsep
            \@center@colon
            \doublecolonsep
            \@center@colon
          }%
        }%
      }%
    }%
  \x
}
\@make@colon@set{equals}{=}%
\@make@colon@set{minus}{-}%
\@make@colon@set{approx}{\approx}
\@make@colon@set{sim}{\sim}
\endinput
%%
%% End of file `colonequals.sty'.