X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=mjo-arrow.tex;h=9bf9dc5555515e45f2a98b25d5c89310375d3b03;hp=4dd5f88bc6053dd224dd3c7b138ff757c78fe301;hb=6759e3a5bd5fd13bd239ee851c66d1eac83a7c1b;hpb=fc7cfa7f3d02715cb09eae2e1c6bc501dc2d8d50 diff --git a/mjo-arrow.tex b/mjo-arrow.tex index 4dd5f88..9bf9dc5 100644 --- a/mjo-arrow.tex +++ b/mjo-arrow.tex @@ -5,7 +5,23 @@ \def\havemjoarrow{1} -\input{mjo-common} +\input{mjo-common} % for \of, at least. + +\ifx\operatorname\undefined + \usepackage{amsopn} +\fi + + +% The constant function that always returns its argument. +\newcommand*{\const}[1]{\operatorname{const}_{{#1}}} + +\ifdefined\newglossaryentry + \newglossaryentry{const}{ + name={\ensuremath{\const{a}}}, + description={the constant function that always returns $a$}, + sort=c + } +\fi % The identity operator/arrow on its argument. \newcommand*{\identity}[1]{ \operatorname{id}_{{#1}} }