summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/math-mis.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/math-mis.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/math-mis.tex49
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/math-mis.tex b/Master/texmf-dist/tex/context/base/math-mis.tex
new file mode 100644
index 00000000000..b5a605cea53
--- /dev/null
+++ b/Master/texmf-dist/tex/context/base/math-mis.tex
@@ -0,0 +1,49 @@
+%D \module
+%D [ file=math-mis,
+%D version=2001.04.12,
+%D title=\CONTEXT\ Math Macros,
+%D subtitle=Miscelaneous Symbols,
+%D author=Hans Hagen,
+%D date=\currentdate,
+%D copyright=\PRAGMA]
+%C
+%C This module is part of the \CONTEXT\ macro||package and is
+%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
+%C details.
+
+\unprotect
+
+%D \starttyping
+%D \usemathcollection[mis]
+%D \stoptyping
+
+\def\styledmathcommand#1%
+ {\mathchoice
+ {\let\currentmathstyle\displaystyle#1}%
+ {\let\currentmathstyle\textstyle#1}%
+ {\let\currentmathstyle\scriptstyle#1}%
+ {\let\currentmathstyle\scriptscriptstyle#1}}
+
+%D For Hong Feng:
+
+\def\geneq
+ {\styledmathcommand\dogeneq}
+
+\def\dogeneq
+ {\begingroup
+ \setbox\scratchbox\hbox{$\currentmathstyle=$}%
+ \hbox to \wd\scratchbox
+ {\copy\scratchbox
+ \hskip-\wd\scratchbox
+ \hss\incolortrue\localcolortrue
+ \color[white]{\vrule\!!height.6\ht\scratchbox\!!depth\zeropoint\!!width.2\wd\scratchbox}%
+ \hss}%
+ \endgroup}
+
+%D \startbuffer
+%D $a\geneq b^{a\geneq b^{a\geneq b}}$
+%D \stopbuffer
+%D
+%D \typebuffer \getbuffer
+
+\protect \endinput