概要
演算子。 (短縮形: o)
利用方法
<operator name="name">operator</operator>
サンプル
x <o>+</o> y, x <o name="pm"/> y, x <o n="mp"/> y
x + y,
x ± y,
x ∓ y
XSL template
<xsl:template match="ufcpp:math//ufcpp:o|ufcpp:math//ufcpp:operator|ufcpp:Math//ufcpp:o|ufcpp:Math//ufcpp:operator"> <xsl:variable name="n"><xsl:choose><xsl:when test="@name != ''"><xsl:value-of select="@name"/></xsl:when><xsl:otherwise><xsl:value-of select="@n"/></xsl:otherwise></xsl:choose></xsl:variable> <span class="normal"> <xsl:choose> <xsl:when test="$n = 'in'">∈</xsl:when><!--∈--> <xsl:when test="$n = 'nin'">∉</xsl:when><!--∉--> <xsl:when test="$n = 'ni'">∋</xsl:when><!--∋--> <xsl:when test="$n = 'nni'">∌</xsl:when><!--∌--> <xsl:when test="$n = 'wedge'">∧</xsl:when><!--∧--> <xsl:when test="$n = 'vee'">∨</xsl:when><!--∨--> <xsl:when test="$n = 'cap'">∩</xsl:when><!--∩--> <xsl:when test="$n = 'cup'">∪</xsl:when><!--∪--> <xsl:when test="$n = 'sub'">⊂</xsl:when><!--⊂--> <xsl:when test="$n = 'sup'">⊃</xsl:when><!--⊃--> <xsl:when test="$n = 'nsub'">⊄</xsl:when><!--⊄--> <xsl:when test="$n = 'nsup'">⊅</xsl:when><!--⊅--> <xsl:when test="$n = 'sube'">⊆</xsl:when><!--⊆--> <xsl:when test="$n = 'supe'">⊇</xsl:when><!--⊇--> <xsl:when test="$n = 'perp'">⊥</xsl:when><!--⊥--> <xsl:when test="$n = 'para'">⅂</xsl:when><!--∥--> <xsl:when test="$n = 'eq'">=</xsl:when><!--=--> <xsl:when test="$n = 'sim'">∼</xsl:when><!--∼--> <xsl:when test="$n = 'approx'">≅</xsl:when><!--≅--> <xsl:when test="$n = 'asymp'">≈</xsl:when><!--≈--> <xsl:when test="$n = 'ne'">≠</xsl:when><!--≠--> <xsl:when test="$n = 'equiv'">≡</xsl:when><!--≡--> <xsl:when test="$n = 'prop'">∝</xsl:when><!--∝--> <xsl:when test="$n = 'lt'"><</xsl:when><!--<--> <xsl:when test="$n = 'gt'">></xsl:when><!-->--> <xsl:when test="$n = 'le'">≤</xsl:when><!--≤--> <xsl:when test="$n = 'ge'">≥</xsl:when><!--≥--> <xsl:when test="$n = 'lE'">≦</xsl:when><!--≦--> <xsl:when test="$n = 'gE'">≧</xsl:when><!--≧--> <xsl:when test="$n = 'lnE'">≨</xsl:when><!--≨--> <xsl:when test="$n = 'gnE'">≩</xsl:when><!--≩--> <xsl:when test="$n = 'Lt'">≪</xsl:when><!--≪--> <xsl:when test="$n = 'Gt'">≫</xsl:when><!--≫--> <xsl:when test="$n = 'p'">+</xsl:when><!--+--> <xsl:when test="$n = 'plus'">+</xsl:when><!--+--> <xsl:when test="$n = 'm'">−</xsl:when><!--−--> <xsl:when test="$n = 'minus'">−</xsl:when><!--−--> <xsl:when test="$n = 'times'">×</xsl:when><!--×--> <xsl:when test="$n = 'div'">÷</xsl:when><!--÷--> <xsl:when test="$n = 'slash'">/</xsl:when><!--/--> <xsl:when test="$n = 'mp'">∓</xsl:when><!--∓--> <xsl:when test="$n = 'pm'">±</xsl:when><!--±--> <xsl:when test="$n = 'oplus'">⊕</xsl:when><!--⊕--> <xsl:when test="$n = 'ominus'">⊖</xsl:when><!--⊖--> <xsl:when test="$n = 'otimes'">⊗</xsl:when><!--⊗--> <xsl:when test="$n = 'bs'">∖</xsl:when><!--∖--> <xsl:when test="$n = 'dot'">⋅</xsl:when><!--⋅--> <xsl:when test="$n = 'cross'">×</xsl:when><!--×--> <xsl:when test="$n = 'wedge'">∧</xsl:when><!--∧--> <xsl:when test="$n = 'ring'">∘</xsl:when><!--∘--> <xsl:when test="$n = 'aster'">∗</xsl:when><!--∗--> <xsl:when test="$n = 'star'">⋆</xsl:when><!--⋆--> <xsl:when test="$n = 'not'">¬</xsl:when><!--¬--> <xsl:when test="$n = 'larr'">←</xsl:when><!--←--> <xsl:when test="$n = 'uarr'">↑</xsl:when><!--↑--> <xsl:when test="$n = 'rarr'">→</xsl:when><!--→--> <xsl:when test="$n = 'darr'">↓</xsl:when><!--↓--> <xsl:when test="$n = 'harr'">↔</xsl:when><!--↔--> <xsl:when test="$n = 'lArr'">⇐</xsl:when><!--⇐--> <xsl:when test="$n = 'uArr'">⇑</xsl:when><!--⇑--> <xsl:when test="$n = 'rArr'">⇒</xsl:when><!--⇒--> <xsl:when test="$n = 'dArr'">⇓</xsl:when><!--⇓--> <xsl:when test="$n = 'hArr'">⇔</xsl:when><!--⇔--> <xsl:when test="$n = 'prec'">≺</xsl:when><!--≺--> <xsl:when test="$n = 'succ'">≻</xsl:when><!--≻--> <xsl:when test="$n = 'cr'">↵</xsl:when><!--↵--> <xsl:otherwise> <xsl:value-of select="text()"/> </xsl:otherwise> </xsl:choose> </span> </xsl:template>
style sheet
span.normal { font-weight:normal; font-style:normal; }