diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/colonequals.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/colonequals.sty | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/colonequals.sty b/Master/texmf-dist/tex/latex/oberdiek/colonequals.sty new file mode 100644 index 00000000000..af34c8051e6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/oberdiek/colonequals.sty @@ -0,0 +1,120 @@ +%% +%% 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. +%% +%% Copyright (C) 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3 of this license or (at your option) any later +%% version. 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'. |