<xsl:import href="mmltheoryextension.xsl"/>
+<xsl:param name="explodeall" select="false()"/>
+
<!--***********************************************************************-->
<!-- Parameter affecting line-breaking -->
<!--***********************************************************************-->
<!-- ***************************************** -->
<!-- PROOF -->
<xsl:when test="$name='proof'">
+ <m:maction actiontype="toggle">
+ <!-- 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>
+ </xsl:if>
+ <!-- Show details -->
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mtd>
<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:mphantom>
+ <m:mtext>_</m:mtext>
+ </m:mphantom>
+ <m:mtext mathcolor="Green">(hide details)</m:mtext>
+ </m:mrow>
</m:mrow>
</m:mtd>
</m:mtr>
</m:mtable>
+ </m:maction>
</xsl:when>
<!-- LETIN1 -->
<xsl:when test="$name='letin1'">