From 85d35b1401a30045cb5b3bca5e8faea5a3248bb3 Mon Sep 17 00:00:00 2001
From: Michael Orlitzky <michael@orlitzky.com>
Date: Fri, 1 Nov 2019 17:32:22 -0400
Subject: [PATCH] mjo-algebra: add missing mjo-common include, and two glossary
 entries.

---
 mjo-algebra.tex | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/mjo-algebra.tex b/mjo-algebra.tex
index 71ba622..59d9487 100644
--- a/mjo-algebra.tex
+++ b/mjo-algebra.tex
@@ -9,10 +9,21 @@
   \usepackage{amsopn}
 \fi
 
+\input{mjo-common}
+
+
 % The (sub)algebra generated by its argument, a subset of some ambient
 % algebra. By definition this is the smallest subalgebra (of the
 % ambient one) containing that set.
 \newcommand*{\alg}[1]{\operatorname{alg}\of{{#1}}}
+\ifdefined\newglossaryentry
+  \newglossaryentry{alg}{
+    name={\ensuremath{\alg{X}}},
+    description={the (sub)algebra generated by $X$},
+    sort=a
+  }
+\fi
+
 
 % The fraction field of its argument, an integral domain. The name
 % "Frac" was chosen here instead of "Quot" because the latter
@@ -23,6 +34,14 @@
 % The ideal generated by its argument, a subset consisting of ring or
 % algebra elements.
 \newcommand*{\ideal}[1]{\operatorname{ideal}\of{{#1}}}
+\ifdefined\newglossaryentry
+  \newglossaryentry{ideal}{
+    name={\ensuremath{\ideal{X}}},
+    description={the ideal generated by $X$},
+    sort=i
+  }
+\fi
+
 
 % The polynomial ring whose underlying commutative ring of
 % coefficients is the first argument and whose indeterminates (a
-- 
2.45.3