概要
時間微分記号d/dtを表示する
利用方法
<ddt/>
サンプル
<ddt/>x = -kx
| d |
| dt |
XSL template
<xsl:template match="ufcpp:ddt">
<table class="frac" summary="differential">
<tr><td class="num"><span class="normal">d</span><xsl:choose><xsl:when test="@var != ''"><xsl:value-of select="@var"/></xsl:when><xsl:when test="@v != ''"><xsl:value-of select="@v"/></xsl:when><xsl:otherwise><xsl:apply-templates/></xsl:otherwise></xsl:choose></td></tr>
<tr><td><span class="normal">d</span>t</td></tr>
</table>
</xsl:template>
<xsl:template match="ufcpp:math//ufcpp:dd|ufcpp:Math//ufcpp:dd">
<table class="frac" summary="differential">
<tr><td class="num"><span class="normal">d</span><xsl:choose><xsl:when test="@num != ''"><xsl:value-of select="@num"/></xsl:when><xsl:when test="@n != ''"><xsl:value-of select="@n"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:num"/></xsl:otherwise></xsl:choose></td></tr>
<tr><td><span class="normal">d</span><xsl:choose><xsl:when test="@denom != ''"><xsl:value-of select="@denom"/></xsl:when><xsl:when test="@d != ''"><xsl:value-of select="@d"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:denom"/></xsl:otherwise></xsl:choose></td></tr>
</table>
</xsl:template>
style sheet
table.frac
{
display:inline;
vertical-align:middle;
font-style:italic;
font-size:90%;
text-align:center;
}
td.num
{
border-bottom:#000000 1pt solid;
}
span.normal
{
font-weight:normal;
font-style:normal;
}
