~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to build/stylesheets/db2latex/mathml/mathml.content.constsymb.mod.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0'?>
 
2
<!DOCTYPE xsl:stylesheet
 
3
[
 
4
 <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent">  %mmlalias;
 
5
 <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent">  %mmlextra;
 
6
]>
 
7
<!--############################################################################# 
 
8
 |      $Id: mathml.content.constsymb.mod.xsl,v 1.2 2004/01/18 10:40:17 j-devenish Exp $
 
9
 |- #############################################################################
 
10
 |      $Author: j-devenish $                                                                                           
 
11
 |                                                                                                              
 
12
 |   PURPOSE: MathML content markup, constants and symbols, 4.4.12.
 
13
 |      MathML namespace used -> mml
 
14
 + ############################################################################## -->
 
15
 
 
16
<xsl:stylesheet version='1.0'
 
17
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 
18
        xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML">
 
19
 
 
20
<!-- integer numbers -->
 
21
<xsl:template match="mml:integers">
 
22
        <xsl:text>\mathbb Z </xsl:text>
 
23
</xsl:template>
 
24
 
 
25
<!-- real numbers -->
 
26
<xsl:template match="mml:reals">
 
27
        <xsl:text>\mathbb R </xsl:text>
 
28
</xsl:template>
 
29
 
 
30
<!-- rational numbers -->
 
31
<xsl:template match="mml:rationals">
 
32
        <xsl:text>\mathbb Q </xsl:text>
 
33
</xsl:template>
 
34
 
 
35
<!-- natural numbers -->
 
36
<xsl:template match="mml:naturalnumbers">
 
37
        <xsl:text>\mathbb N </xsl:text>
 
38
</xsl:template>
 
39
 
 
40
<!-- complex numbers -->
 
41
<xsl:template match="mml:complexes">
 
42
        <xsl:text>\mathbb C </xsl:text>
 
43
</xsl:template>
 
44
 
 
45
<!-- prime numbers -->
 
46
<xsl:template match="mml:primes">
 
47
        <xsl:text>\mathbb P </xsl:text>
 
48
  <mi><xsl:text disable-output-escaping='yes'>&amp;#x1D547;</xsl:text></mi>  <!-- open face P --> <!-- UNICODE char does not work -->
 
49
</xsl:template>
 
50
 
 
51
 
 
52
 
 
53
 
 
54
 
 
55
 
 
56
 
 
57
<!-- exponential base -->
 
58
<xsl:template match="mml:exponentiale">
 
59
        <xsl:text>\textrm{e} </xsl:text>
 
60
</xsl:template>
 
61
 
 
62
<!-- square root of -1 -->
 
63
<xsl:template match="mml:imaginaryi">
 
64
        <xsl:text>\textrm{i} </xsl:text>
 
65
</xsl:template>
 
66
 
 
67
<xsl:template match="mml:notanumber">
 
68
        <xsl:text>\NaN </xsl:text>
 
69
</xsl:template>
 
70
 
 
71
<!-- logical constant for truth -->
 
72
<xsl:template match="mml:true">
 
73
        <xsl:text>true</xsl:text>
 
74
</xsl:template>
 
75
 
 
76
<!-- logical constant for falsehood -->
 
77
<xsl:template match="mml:false">
 
78
        <xsl:text>false</xsl:text>
 
79
</xsl:template>
 
80
 
 
81
<!-- empty set -->
 
82
<xsl:template match="mml:emptyset">
 
83
        <xsl:text>\empty</xsl:text>
 
84
</xsl:template>
 
85
 
 
86
<!-- ratio of a circle's circumference to its diameter -->
 
87
<xsl:template match="mml:pi">
 
88
        <xsl:text>\pi</xsl:text>
 
89
</xsl:template>
 
90
 
 
91
<!-- Euler's constant -->
 
92
<xsl:template match="mml:eulergamma">
 
93
        <xsl:text>\Gamma</xsl:text>
 
94
</xsl:template>
 
95
 
 
96
<!-- Infinity -->
 
97
<xsl:template match="mml:infinity">
 
98
        <xsl:text>\infty</xsl:text>
 
99
</xsl:template>
 
100
 
 
101
</xsl:stylesheet>