<!-- Added the namespace prefix to all the xref attributes -->
<!-- Changed the mml prefix into m -->
<!-- Added m:xref to every mo element -->
+<!-- Changed mchar into the corresponding entity -->
<!-- First draft: April 27 2001, Irene Schena -->
<!-- ====================================================== -->
<m:mo>+</m:mo>
<m:mn> <xsl:value-of select="text()[2]"/> </m:mn>
</xsl:if>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mo>i</m:mo>
</m:mfenced>
</xsl:when>
<m:mo>+</m:mo>
<m:mn> <xsl:apply-templates select="text()[2]"/> </m:mn>
</xsl:if>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mo>i</m:mo>
</m:mfenced>
<m:mn> <xsl:value-of select="@base"/> </m:mn>
<xsl:when test="@type='polar' and not(@base) and child::m:sep[1]">
<m:mrow>
<m:mo>Polar</m:mo>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mfenced separators=",">
<m:mn> <xsl:apply-templates select="text()[1]"/> </m:mn>
<m:mn> <xsl:apply-templates select="text()[2]"/> </m:mn>
<m:msub>
<m:mrow>
<m:mo>Polar</m:mo>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mfenced separators=",">
<m:mn> <xsl:apply-templates select="text()[1]"/> </m:mn>
<m:mn> <xsl:apply-templates select="text()[2]"/> </m:mn>
<m:mo>+</m:mo>
<m:mn> <xsl:value-of select="text()[2]"/> </m:mn>
</xsl:if>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mo>i</m:mo>
</m:mfenced>
</xsl:when>
<m:mo>+</m:mo>
<m:mn> <xsl:apply-templates select="text()[2]"/> </m:mn>
</xsl:if>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mo>i</m:mo>
</m:mfenced>
<m:mn> <xsl:value-of select="@base"/> </m:mn>
<xsl:when test="@type='polar' and not(@base) and child::m:sep[1]">
<m:mrow m:xref="{@id}">
<m:mo>Polar</m:mo>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mfenced separators=",">
<m:mn> <xsl:apply-templates select="text()[1]"/> </m:mn>
<m:mn> <xsl:apply-templates select="text()[2]"/> </m:mn>
<m:msub m:xref="{@id}">
<m:mrow>
<m:mo>Polar</m:mo>
- <m:mo> <m:mchar name="InvisibleTimes"/> </m:mo>
+ <m:mo>⁢</m:mo>
<m:mfenced separators=",">
<m:mn> <xsl:apply-templates select="text()[1]"/> </m:mn>
<m:mn> <xsl:apply-templates select="text()[2]"/> </m:mn>
<xsl:attribute name="m:xref">
<xsl:value-of select="m:fn/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name='ApplyFunction'/> </m:mo>
+ </xsl:if>⁡</m:mo>
<m:mfenced separators=",">
<xsl:apply-templates select = "*[position()>1]" mode = "semantics"/>
</m:mfenced>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select = "*[1]" mode = "semantics"/>
- <m:mo> <m:mchar name='ApplyFunction'/> </m:mo>
+ <m:mo>⁡</m:mo>
<m:mfenced separators=",">
<xsl:apply-templates select = "*[position()>1]" mode = "semantics"/>
</m:mfenced>
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
- <m:mo> <m:mchar name='Lambda'/> </m:mo>
- <m:mo> <m:mchar name='ApplyFunction'/> </m:mo>
+ <m:mo>Λ</m:mo>
+ <m:mo>⁡</m:mo>
<m:mfenced separators=",">
<xsl:for-each select = "*">
<xsl:choose>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select = "*[1]" mode = "semantics"/>
- <m:mo> <m:mchar name='ApplyFunction'/> </m:mo>
+ <m:mo>⁡</m:mo>
<m:mfenced separators=",">
<xsl:apply-templates select = "*[position()>1]" mode = "semantics"/>
</m:mfenced>
<xsl:attribute name="m:xref">
<xsl:value-of select="../m:compose/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="SmallCircle"/> </m:mo>
+ </xsl:if>∘</m:mo>
<xsl:apply-templates select = "." mode="semantics"/>
</xsl:for-each>
</m:mfenced>
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
- <m:mo form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em">
- <m:mchar name="LeftFloor"/>
- </m:mo>
+ <m:mo form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em">⌊</m:mo>
<m:mfrac>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
</xsl:apply-templates>
</m:mrow>
</m:mfrac>
- <m:mo form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em">
- <m:mchar name="LeftFloor"/>
- </m:mo>
+ <m:mo form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em">⌊</m:mo>
</m:mrow>
</xsl:template>
<xsl:if test="*[3]">
<xsl:for-each select = "*[position()>2]">
<!-- HELM: to distinguish between * and the application -->
-<!-- <m:mo> <mchar name="InvisibleTimes"/> </m:mo> -->
+<!-- <m:mo>⁢</m:mo> -->
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
<xsl:attribute name="m:xref">
<xsl:value-of select="../m:and/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="wedge"/></m:mo>
+ </xsl:if>∧</m:mo>
<xsl:apply-templates select="." mode = "semantics">
<xsl:with-param name="IN_PREC" select="$AND_PREC"/>
<xsl:with-param name="PAREN" select="$PAREN"/>
<xsl:attribute name="m:xref">
<xsl:value-of select="../m:or/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="vee"/> </m:mo>
+ </xsl:if>∨</m:mo>
<xsl:apply-templates select="." mode = "semantics">
<xsl:with-param name="IN_PREC" select="$OR_PREC"/>
<xsl:with-param name="PAREN" select="$PAREN"/>
<xsl:attribute name="m:xref">
<xsl:value-of select="../m:xor/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="xor"/> </m:mo>
+ </xsl:if>⊻</m:mo>
<xsl:apply-templates select="." mode = "semantics">
<xsl:with-param name="IN_PREC" select="$XOR_PREC"/>
<xsl:with-param name="PAREN" select="$PAREN"/>
<xsl:attribute name="m:xref">
<xsl:value-of select="m:not/@id"/>
</xsl:attribute>
- </xsl:if><m:mchar name="not"/></m:mo>
+ </xsl:if>¬</m:mo>
<xsl:apply-templates select = "*[2]" mode = "semantics">
<xsl:with-param name="IN_PREC" select="$FUNCTION_PREC"/>
</xsl:apply-templates>
<xsl:attribute name="m:xref">
<xsl:value-of select="m:exists/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="Exists"/> </m:mo>
+ </xsl:if>∃</m:mo>
<xsl:if test="count(m:bvar) > 1">
<m:mfenced separators=",">
<xsl:for-each select = "m:bvar">
<xsl:attribute name="m:xref">
<xsl:value-of select="m:conjugate/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="UnderBar"/> </m:mo>
+ </xsl:if>̲</m:mo>
</m:mover>
</xsl:template>
<xsl:value-of select="m:neq/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="NotEqual"/>
+ ≠
</xsl:if>
<xsl:if test="*[1]=m:approx">
<!-- HELM: added -->
<xsl:value-of select="m:approx/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="approxeq"/>
+ ≊
</xsl:if>
<xsl:if test="*[1]=m:tendsto">
<!-- HELM: added -->
<xsl:value-of select="m:tendsto/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="RightArrow"/>
+ →
</xsl:if>
<xsl:if test="*[1]=m:implies">
<!-- HELM: added -->
<xsl:value-of select="m:implies/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="DoubleRightArrow"/>
+ ⇒
</xsl:if>
<xsl:if test="*[1]=m:in">
<!-- HELM: added -->
<xsl:value-of select="m:in/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="Element"/>
+ ∈
</xsl:if>
<xsl:if test="*[1]=m:notin">
<!-- HELM: added -->
<xsl:value-of select="m:notin/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="NotElement"/>
+ ∉
</xsl:if>
<xsl:if test="*[1]=m:notsubset">
<!-- HELM: added -->
<xsl:value-of select="m:notsubset/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="NotSubset"/>
+ ⊄
</xsl:if>
<xsl:if test="*[1]=m:notprsubset">
<!-- HELM: added -->
<xsl:value-of select="m:notprsubset/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="NotSubsetEqual"/>
+ ⊈
</xsl:if>
</m:mo>
<xsl:apply-templates select = "*[3]" mode = "semantics"/>
<xsl:value-of select="../m:subset/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="SubsetEqual"/>
+ ⊆
</xsl:if>
<xsl:if test="../*[self::m:prsubset][1]">
<!-- HELM: added -->
<xsl:value-of select="../m:prsubset/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="subset"/>
+ ⊂
</xsl:if>
<xsl:if test="../*[self::m:eq][1]">
<!-- HELM: added -->
<xsl:value-of select="../m:geq/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="geq"/>
+ ≥
</xsl:if>
<xsl:if test="../*[self::m:leq][1]">
<!-- HELM: added -->
<xsl:value-of select="../m:leq/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="leq"/>
+ ≤
</xsl:if>
<xsl:if test="../*[self::m:equivalent][1]">
<!-- HELM: added -->
<xsl:value-of select="../m:equivalent/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="Congruent"/>
+ ≡
</xsl:if>
</m:mo>
<xsl:apply-templates select = "." mode="semantics"/>
</xsl:if>ln</m:mo>
</xsl:otherwise>
</xsl:choose>
- <m:mo> <m:mchar name='ApplyFunction'/> </m:mo>
+ <m:mo>⁡</m:mo>
<xsl:apply-templates select = "*[2]" mode = "semantics">
<xsl:with-param name="IN_PREC" select="$FUNCTION_PREC"/>
</xsl:apply-templates>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
- <m:mo> <m:mchar name='ApplyFunction'/> </m:mo>
+ <m:mo>⁡</m:mo>
<xsl:if test="*[2]=m:logbase">
<xsl:apply-templates select = "*[3]" mode = "semantics">
<xsl:with-param name="IN_PREC" select="$FUNCTION_PREC"/>
<xsl:value-of select="m:laplacian/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mo> <m:mchar name="Delta"/> </m:mo>
+ <m:mo>Δ</m:mo>
<m:mn>2</m:mn>
</m:msup>
<xsl:apply-templates select = "*[2]" mode = "semantics"/>
<xsl:attribute name="m:xref">
<xsl:value-of select="../m:union/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="Union"/> </m:mo>
+ </xsl:if>⋃</m:mo>
<xsl:apply-templates select = "." mode="semantics">
<xsl:with-param name="IN_PREC" select="$UNION_PREC"/>
<xsl:with-param name="PAREN" select="$PAREN"/>
<xsl:attribute name="m:xref">
<xsl:value-of select="../m:intersect/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="Intersection"/> </m:mo>
+ </xsl:if>⋂</m:mo>
<xsl:apply-templates select = "." mode="semantics">
<xsl:with-param name="IN_PREC" select="$INTERSECT_PREC"/>
<xsl:with-param name="PAREN" select="$PAREN"/>
<xsl:value-of select="m:sum/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="Sum"/>
+ ∑
</xsl:if>
<xsl:if test="*[1]=m:product">
<!-- HELM: added -->
<xsl:value-of select="m:product/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="Product"/>
+ ∏
</xsl:if>
</m:mo>
<m:mrow>
<xsl:value-of select="m:sum/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="Sum"/>
+ ∑
</xsl:if>
<xsl:if test="*[1]=m:product">
<!-- HELM: added -->
<xsl:value-of select="m:product/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="Product"/>
+ ∏
</xsl:if>
</m:mo>
<xsl:apply-templates select = "*[3]" mode = "semantics"/>
<m:mrow>
<xsl:if test="*[2]=m:bvar and *[3]=m:lowlimit">
<xsl:apply-templates select = "*[2]" mode = "semantics"/>
- <m:mo> <m:mchar name="RightArrow"/> </m:mo>
+ <m:mo>→</m:mo>
<xsl:apply-templates select = "*[3]" mode = "semantics"/>
</xsl:if>
<xsl:if test="*[2]=m:bvar and *[3]=m:condition">
<xsl:apply-templates select = "../*[3]" mode = "semantics"/>
</m:msup>
</xsl:if>
- <m:mo> <m:mchar name='ApplyFunction'/> </m:mo>
+ <m:mo>⁡</m:mo>
<xsl:apply-templates select = "*[2]" mode = "semantics">
<xsl:with-param name="IN_PREC" select="$FUNCTION_PREC"/>
<xsl:with-param name="PAR_NO_IGNORE" select="$NO"/>
<xsl:attribute name="m:xref">
<xsl:value-of select="m:sdev/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="sigma"/> </m:mo>
+ </xsl:if>σ</m:mo>
<m:mfenced separators=",">
<xsl:for-each select = "*[position()>1]">
<xsl:apply-templates select = "." mode="semantics"/>
<xsl:attribute name="m:xref">
<xsl:value-of select="m:variance/@id"/>
</xsl:attribute>
- </xsl:if>
- <m:mchar name="sigma"/> </m:mo>
+ </xsl:if>σ</m:mo>
<m:msup>
<m:mfenced separators=",">
<xsl:for-each select = "*[position()>1]">
<xsl:value-of select="m:vectorproduct/@id"/>
</xsl:attribute>
</xsl:if>
- <m:mchar name="Cross"/>
+ ⨯
</xsl:if>
<xsl:if test="m:scalarproduct[1] | m:outerproduct[1]">
<!-- HELM: added -->
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mtd>
- <xsl:apply-templates select="m:ci"/>
- <m:mo>:</m:mo>
+ <m:mrow>
+ <xsl:apply-templates select="m:ci"/>
+ <m:mo>:</m:mo>
+ </m:mrow>
</m:mtd>
</m:mtr>
<m:mtr>
<m:mtd>
+ <m:mrow>
<xsl:apply-templates select="m:type"/>
+ </m:mrow>
</m:mtd>
</m:mtr>
</m:mtable>
</xsl:when>
<xsl:otherwise>
- <xsl:apply-templates select="m:ci"/>
- <m:mo>:</m:mo>
- <xsl:apply-templates select="m:type"/>
+ <m:mrow>
+ <xsl:apply-templates select="m:ci"/>
+ <m:mo>:</m:mo>
+ <xsl:apply-templates select="m:type"/>
+ </m:mrow>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mo mathcolor="Blue"><m:mchar name="ForAll"/></m:mo>
+ <m:mo mathcolor="Blue">∀</m:mo>
<xsl:apply-templates select="m:bvar"/>
</m:mrow>
</m:mtd>
</m:mtable>
</xsl:when>
<xsl:otherwise>
- <m:mo mathcolor="Blue"><m:mchar name="ForAll"/></m:mo>
+ <m:mo mathcolor="Blue">∀</m:mo>
<xsl:apply-templates select="m:bvar/m:ci"/>
<m:mo>:</m:mo>
<xsl:apply-templates select="m:bvar/m:type"/>
<!-- CSC: next if until the annotationHelper can handle mactions -->
<xsl:if test="not($explodeall)">
<!-- Details hided (default) -->
- <m:mrow>
- <m:mtext mathcolor="Maroon">We can prove</m:mtext>
- <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
- <xsl:apply-templates select="*[position()=3]"/>
- <m:mrow>
- <m:mphantom>
- <m:mtext>_</m:mtext>
- </m:mphantom>
- <m:mtext mathcolor="Green">(explain)</m:mtext>
- </m:mrow>
- </m:mrow>
+ <m:mtable align="baseline 1" equalrows="false" columnalign="left">
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mtext mathcolor="Maroon">We can prove</m:mtext>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <xsl:apply-templates select="*[position()=3]"/>
+ <m:mrow>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
+ <m:mtext mathcolor="Green">(explain)</m:mtext>
+ </m:mrow>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ </m:mtable>
</xsl:if>
<!-- Show details -->
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext mathcolor="Maroon">we proved </m:mtext>
+ <m:mtext mathcolor="Maroon">we proved</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="*[position()=3]"/>
<m:mrow>
</m:mtr>
</m:mtable>
</xsl:when>
-
- <!-- CSC: Il caso che segue e' stato buttato li' giusto per vedere -->
- <!-- qualche cosa. Irene, appena puoi, risistemalo. -->
<xsl:when test="$name='by_induction'">
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext mathcolor="red">We prove </m:mtext>
+ <m:mtext mathcolor="red">We prove</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="../*[3]"/>
</m:mrow>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext mathcolor="red">by induction on </m:mtext>
+ <m:mtext mathcolor="red">by induction on</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
- <xsl:apply-templates
+ <xsl:apply-templates
select="*[position()=last()]/*[position()=last()]"/>
</m:mrow>
</m:mtd>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<xsl:for-each select="*[position()>3 and not(position()=last())]">
<m:mtr>
<m:mtd>
- <xsl:apply-templates select="."/>
+ <m:mrow>
+ <xsl:apply-templates select="."/>
+ </m:mrow>
</m:mtd>
</m:mtr>
</xsl:for-each>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext mathcolor="red">Case </m:mtext>
+ <m:mtext mathcolor="red">Case</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="*[2]"/>
</m:mrow>
<xsl:if test="*[3]/*[position()>1]">
<m:mtr>
<m:mtd>
- <m:mtext mathcolor="red">By induction hypothesis, we have:</m:mtext>
+ <m:mrow>
+ <m:mtext mathcolor="red">By induction hypothesis, we have:</m:mtext>
+ </m:mrow>
</m:mtd>
</m:mtr>
<m:mtr>
</xsl:if>
<m:mtr>
<m:mtd>
- <xsl:apply-templates select="*[4]"/>
+ <m:mrow>
+ <xsl:apply-templates select="*[4]"/>
+ </m:mrow>
</m:mtd>
</m:mtr>
</m:mtable>
</xsl:choose>
</m:mrow>
</xsl:when>
+ <!-- false_ind -->
<xsl:when test="$name='false_ind'">
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
</m:mtr>
</m:mtable>
</xsl:when>
- <!--CSC fine della parte da risistemare -->
-
<!-- LET-IN -->
<xsl:when test="$name='letin'">
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext>Then apply it to</m:mtext>
+ <m:mtext>Then apply it to</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="*[position()>2]"/>
</m:mrow>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext>In particular, we have</m:mtext>
+ <m:mtext>In particular, we have</m:mtext>
</m:mrow>
</m:mtd>
</m:mtr>
</m:mtr>
</m:mtable>
</xsl:when>
- <!-- CSC: Il caso che segue e' stato buttato li' giusto per vedere -->
- <!-- qualche cosa. Irene, appena puoi, risistemalo. -->
<!-- full_or_ind -->
<xsl:when test="$name='full_or_ind'">
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext>We proceed by cases to prove</m:mtext>
+ <m:mtext>We proceed by cases to prove</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="*[3]"/>
</m:mrow>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext>Left: suppose</m:mtext>
+ <m:mtext>Left: suppose</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<m:mo stretchy="false">(</m:mo>
<xsl:apply-templates select="*[4]/m:bvar/m:ci"/>
</m:mtr>
<m:mtr>
<m:mtd>
- <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<m:mrow>
+ <m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="*[4]/*[3]"/>
</m:mrow>
</m:mtd>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext>Right: suppose</m:mtext>
+ <m:mtext>Right: suppose</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<m:mo stretchy="false">(</m:mo>
<xsl:apply-templates select="*[5]/m:bvar/m:ci"/>
</m:mtr>
</m:mtable>
</xsl:when>
- <!--CSC fine della parte da risistemare -->
<!-- OR_IND -->
<xsl:when test="$name='or_ind'">
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext>We prove</m:mtext>
+ <m:mtext>We prove</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="*[3]"/>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
- <m:mtext>by cases:</m:mtext>
+ <m:mtext>by cases:</m:mtext>
</m:mrow>
</m:mtd>
</m:mtr>
<m:mtext>:</m:mtext>
<xsl:apply-templates select="*[4]"/>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
- <m:mtext>such that</m:mtext>
+ <m:mtext>such that</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<m:mtext>(</m:mtext>
<xsl:apply-templates select="*[5]"/>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext mathcolor="Maroon">we get</m:mtext>
+ <m:mtext mathcolor="Maroon">we get</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="."/>
</m:mrow>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext mathcolor="Maroon">we get</m:mtext>
+ <m:mtext mathcolor="Maroon">we get</m:mtext>
<m:mphantom><m:mtext>_</m:mtext></m:mphantom>
<xsl:apply-templates select="."/>
</m:mrow>
<xsl:variable name="symbol">
<xsl:choose>
<xsl:when test="m:and[1]">
- <xsl:value-of select="'wedge'"/>
+ <xsl:value-of select="'∧'"/>
</xsl:when>
<xsl:when test="m:or[1]">
- <xsl:value-of select="'vee'"/>
+ <xsl:value-of select="'∨'"/>
</xsl:when>
<xsl:when test="m:geq[1]">
- <xsl:value-of select="'geq'"/>
+ <xsl:value-of select="'≥'"/>
</xsl:when>
<xsl:when test="m:leq[1]">
- <xsl:value-of select="'leq'"/>
+ <xsl:value-of select="'≤'"/>
</xsl:when>
<xsl:when test="m:gt[1]">
- <xsl:value-of select="'gt'"/>
+ <xsl:value-of select="'>'"/>
</xsl:when>
<xsl:when test="m:lt[1]">
- <xsl:value-of select="'lt'"/>
+ <xsl:value-of select="'< '"/>
</xsl:when>
<xsl:when test="m:eq[1]">
- <xsl:value-of select="'Equal'"/>
+ <xsl:value-of select="'='"/>
</xsl:when>
<xsl:when test="m:in[1]">
- <xsl:value-of select="'Element'"/>
+ <xsl:value-of select="'∈'"/>
</xsl:when>
<xsl:when test="m:subset[1]">
- <xsl:value-of select="'SubsetEqual'"/>
+ <xsl:value-of select="'⊆'"/>
</xsl:when>
<xsl:when test="m:prsubset[1]">
- <xsl:value-of select="'subset'"/>
+ <xsl:value-of select="'⊂'"/>
</xsl:when>
<xsl:when test="m:intersect[1]">
- <xsl:value-of select="'Intersection'"/>
+ <xsl:value-of select="'⋂'"/>
</xsl:when>
<xsl:when test="m:union[1]">
- <xsl:value-of select="'Union'"/>
+ <xsl:value-of select="'⋃'"/>
</xsl:when>
<xsl:when test="m:setdiff[1]">
- <xsl:value-of select="'Backslash'"/>
+ <xsl:value-of select="'∖'"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
<m:mtd>
<m:mrow>
<m:mphantom><m:mtext>__</m:mtext></m:mphantom>
- <m:mo m:xref="{*[1]/@id}">
- <m:mchar name="{$symbol}"/>
- </m:mo>
+ <m:mo m:xref="{*[1]/@id}"><xsl:value-of select="$symbol"/></m:mo>
<xsl:apply-templates select="."/>
</m:mrow>
</m:mtd>
<xsl:template match = "m:set">
<xsl:choose>
<xsl:when test="count(child::*) = 0">
- <m:mi>
- <m:mchar name="emptyset"/>
- </m:mi>
+ <m:mi>∅</m:mi>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="charlength">
</xsl:template>
</xsl:stylesheet>
-
-
-