+ <!-- EX_IND -->
+ <xsl:when test="$name='ex_ind'">
+ <m:mtable align="baseline 1" equalrows="false" columnalign="left">
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <xsl:choose>
+ <xsl:when test="name(*[2])='m:apply'">
+ <xsl:apply-templates select="*[2]"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <m:mtext>Consider</m:mtext>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <xsl:apply-templates select="*[2]"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mtext>Let</m:mtext>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <xsl:apply-templates select="*[3]"/>
+ <m:mtext>:</m:mtext>
+ <xsl:apply-templates select="*[4]"/>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <m:mtext>such that</m:mtext>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <m:mtext>(</m:mtext>
+ <xsl:apply-templates select="*[5]"/>
+ <m:mtext>)</m:mtext>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <xsl:apply-templates select="*[6]"/>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <xsl:apply-templates select="*[7]"/>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ </m:mtable>
+ </xsl:when>
+ <!-- EQ_CHAIN -->
+ <xsl:when test="$name='eq_chain'">
+ <m:mtable align="baseline 1" equalrows="false" columnalign="left">
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mtext mathcolor="Red">We have the following equality chain:</m:mtext>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ <xsl:for-each select="*[position() mod 2 = 0]">
+ <xsl:variable name="pos" select="position()"/>
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <xsl:choose>
+ <xsl:when test="$pos = 1">
+ <xsl:apply-templates select="."/>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <m:mo>=</m:mo>
+ </xsl:when>
+ <xsl:otherwise>
+ <m:mo>=</m:mo>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <xsl:apply-templates select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ <xsl:if test="$pos != last()">
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mphantom><m:mtext>__</m:mtext></m:mphantom>
+ <xsl:apply-templates select="../*[position()=2*$pos +1]"/>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ </xsl:if>
+ </xsl:for-each>
+ </m:mtable>
+ </xsl:when>
+ <!-- DISEQ_CHAIN -->
+ <xsl:when test="$name='diseq_chain'">
+ <m:mtable align="baseline 1" equalrows="false" columnalign="left">
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mtext mathcolor="Red">We have the following disequality chain:</m:mtext>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ <xsl:for-each select="*[position() mod 3 = 2]">
+ <xsl:variable name="pos" select="position()"/>
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <xsl:choose>
+ <xsl:when test="$pos = 1">
+ <xsl:apply-templates select="."/>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <mo><xsl:apply-templates select="../*[position()=3*$pos]"/></mo>
+ </xsl:when>
+ <xsl:otherwise>
+ <mo><xsl:apply-templates select="../*[position()=3*($pos - 1)]"/></mo>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <xsl:apply-templates select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ <xsl:if test="$pos != last()">
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mphantom><m:mtext>__</m:mtext></m:mphantom>
+ <xsl:apply-templates select="../*[position()=3*$pos +1]"/>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ </xsl:if>
+ </xsl:for-each>
+ </m:mtable>
+ </xsl:when>
+ <!-- ***************************************** -->
+ <!-- *********** NOTATIONS ******************* -->
+ <!-- ***************************************** -->
+ <!-- subst -->
+ <xsl:when test="$name='subst'">
+ <xsl:apply-templates select="*[3]"/>
+<!-- no font for ApplyFunction: <m:mo></m:mo> -->
+ <m:mo stretchy="false">[</m:mo>
+ <xsl:apply-templates select="*[4]"/>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>←</m:mo>
+ <xsl:apply-templates select="*[2]"/>
+ <m:mo stretchy="false">]</m:mo>
+ </xsl:when>
+ <!-- lift -->
+ <xsl:when test="$name='lift'">
+ <m:msup>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>↑</m:mo>
+ <xsl:apply-templates select="*[2]"/>
+ </m:msup>
+ <m:mrow>
+ <m:mo stretchy="false">(</m:mo>
+ <xsl:apply-templates select="*[3]"/>
+ <m:mo stretchy="false">)</m:mo>
+ </m:mrow>
+ </xsl:when>
+ <!-- lift_with_base -->
+ <xsl:when test="$name='lift_with_base'">
+ <m:msubsup>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>↑</m:mo>
+ <xsl:apply-templates select="*[3]"/>
+ <xsl:apply-templates select="*[4]"/>
+ </m:msubsup>
+ <m:mrow>
+ <m:mo stretchy="false">(</m:mo>
+ <xsl:apply-templates select="*[2]"/>
+ <m:mo stretchy="false">)</m:mo>
+ </m:mrow>
+ </xsl:when>
+ <!-- beta_red1 -->
+ <xsl:when test="$name='beta_red1'">
+ <xsl:apply-templates select="*[2]"/>
+ <m:munder>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>→</m:mo>
+ <m:mi mathcolor="Green">β</m:mi>
+ </m:munder>
+ <xsl:apply-templates select="*[3]"/>
+ </xsl:when>
+ <!-- beta_red -->
+ <xsl:when test="$name='beta_red'">
+ <xsl:apply-templates select="*[2]"/>
+ <m:munderover>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>→</m:mo>
+ <m:mi mathcolor="Green">β</m:mi>
+ <m:mi mathcolor="Green">*</m:mi>
+ </m:munderover>
+ <xsl:apply-templates select="*[3]"/>
+ </xsl:when>
+ <!-- par_beta_red1 -->
+ <xsl:when test="$name='par_beta_red1'">
+ <xsl:apply-templates select="*[2]"/>
+ <m:munder>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>⇒</m:mo>
+ <m:mi mathcolor="Green">β</m:mi>
+ </m:munder>
+ <xsl:apply-templates select="*[3]"/>
+ </xsl:when>
+ <!-- par_beta_red -->
+ <xsl:when test="$name='par_beta_red'">
+ <xsl:apply-templates select="*[2]"/>
+ <m:munderover>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>⇒</m:mo>
+ <m:mi mathcolor="Green">β</m:mi>
+ <m:mi mathcolor="Green">*</m:mi>
+ </m:munderover>
+ <xsl:apply-templates select="*[3]"/>
+ </xsl:when>
+ <!-- forgetful -->
+ <xsl:when test="$name='forgetful'">
+ <m:mfenced open="|" close="|">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates select="*[2]"/>
+ </m:mfenced>
+ </xsl:when>
+ <!-- isomorphic -->
+ <xsl:when test="$name='isomorphic'">
+ <xsl:apply-templates select="*[2]"/>
+ <m:mo mathcolor="Green">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>≅</m:mo>
+ <xsl:apply-templates select="*[3]"/>
+ </xsl:when>
+ <!-- interp -->
+ <xsl:when test="$name='forgetful'">
+ <m:mfenced open="[" close="]">
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates select="*[2]"/>
+ </m:mfenced>
+ </xsl:when>
+
+ <!-- ERROR -->