Debian Codegraph @

texmf-dist/tex/latex/oberdiek/colonequals.sty

raw
1 %%
2 %% This is file `colonequals.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% colonequals.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: colonequals
12 %% Version: 2016/05/16 v1.1
13 %%
14 %% Copyright (C)
15 %% 2006 Heiko Oberdiek
16 %% 2016-2019 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/oberdiek/issues
33 %%
34 %%
35 %% This work consists of the main source file colonequals.dtx
36 %% and the derived files
37 %% colonequals.sty, colonequals.pdf, colonequals.ins, colonequals.drv.
38 %%
39 \NeedsTeXFormat{LaTeX2e}
40 \ProvidesPackage{colonequals}%
41 [2016/05/16 v1.1 Colon equals symbols (HO)]%
42 \newcommand*{\colonsep}{}
43 \newcommand*{\doublecolonsep}{}
44 \def\@center@colon{%
45 \mathpalette\@center@math{:}%
46 }
47 \def\@center@math#1#2{%
48 \vcenter{%
49 \m@th
50 \hbox{$#1#2$}%
51 }%
52 }
53 \newcommand*{\ratio}{%
54 \ensuremath{%
55 \mathrel{%
56 \@center@colon
57 }%
58 }%
59 }
60 \newcommand*{\coloncolon}{%
61 \ensuremath{%
62 \mathrel{%
63 \@center@colon
64 \doublecolonsep
65 \@center@colon
66 }%
67 }%
68 }
69 \def\@make@colon@set#1#2{%
70 \begingroup
71 \let\@center@colon\relax
72 \let\newcommand\relax
73 \let\ensuremath\relax
74 \let\mathrel\relax
75 \let\colonsep\relax
76 \let\doublecolonsep\relax
77 \def\csx##1{%
78 \expandafter\noexpand\csname ##1\endcsname
79 }%
80 \edef\x{\endgroup
81 \newcommand*{\csx{colon#1}}{%
82 \ensuremath{%
83 \mathrel{%
84 \@center@colon
85 \colonsep
86 {#2}%
87 }%
88 }%
89 }%
90 \newcommand*{\csx{coloncolon#1}}{%
91 \ensuremath{%
92 \mathrel{%
93 \@center@colon
94 \doublecolonsep
95 \@center@colon
96 \colonsep
97 {#2}%
98 }%
99 }%
100 }%
101 \newcommand*{\csx{#1colon}}{%
102 \ensuremath{%
103 \mathrel{%
104 {#2}%
105 \colonsep
106 \@center@colon
107 }%
108 }%
109 }%
110 \newcommand*{\csx{#1coloncolon}}{%
111 \ensuremath{%
112 \mathrel{%
113 {#2}%
114 \colonsep
115 \@center@colon
116 \doublecolonsep
117 \@center@colon
118 }%
119 }%
120 }%
121 }%
122 \x
123 }
124 \@make@colon@set{equals}{=}%
125 \@make@colon@set{minus}{-}%
126 \@make@colon@set{approx}{\approx}
127 \@make@colon@set{sim}{\sim}
128 \endinput
129 %%
130 %% End of file `colonequals.sty'.