X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=mjo-common.tex;h=284d5a5fe9460a2ef4e32c7e5c5320784f0402fd;hp=38b262ba403c705e5fb0b543ce1b2df997c6970d;hb=a42e99e28d22bd0a313d4bac23cd4278627be1a3;hpb=f9205a3b883c08499edfdd3f9d1a6170a6fc6755 diff --git a/mjo-common.tex b/mjo-common.tex index 38b262b..284d5a5 100644 --- a/mjo-common.tex +++ b/mjo-common.tex @@ -8,6 +8,10 @@ \usepackage{amsfonts} \fi +\ifx\restriction\undefined + \usepackage{amssymb} +\fi + % Place the argument in matching left/right parentheses. \newcommand*{\of}[1]{ \left({#1}\right) } @@ -38,6 +42,19 @@ % The factorial operator. \newcommand*{\factorial}[1]{ {#1}! } +% Restrict the first argument (a function) to the second argument (a +% subset of that functions domain). Abused for polynomials to specify +% an associated function with a particular domain (also its codomain, +% in the case of univariate polynomials). +\newcommand*{\restrict}[2]{{#1}{\restriction}_{#2}} +\ifdefined\newglossaryentry + \newglossaryentry{restriction}{ + name={\ensuremath{\restrict{f}{X}}}, + description={the restriction of $f$ to $X$}, + sort=r + } +\fi + % % Product spaces %