Subversion Repositories wimsdev

Rev

Rev 11292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11292 Rev 16258
Line 1... Line 1...
1
!! +exec+ +var+ +string+
1
!! +exec+ +var+ +string+
-
 
2
!goto end
2
tit:texmath
3
tit:texmath
3
type:$type_both
4
type:$type_both
4
alias:TeXmath, math2tex
5
alias:TeXmath, math2tex
5
syntax:!texmath ``expr''
6
syntax:!texmath ``expr''
6
mean:Translate the mathematical expression ``expr'' into a TeX source. If the expression \
7
mean:Translate the mathematical expression ``expr'' into a TeX source. If the expression \
7
  is not a "machine-understandable mathematical expression", there is no garanty on the result \
8
  is not a "machine-understandable mathematical expression", like products without *,\
-
 
9
  there is no garanty on the result \
8
  (at the moment and in the future !).\
10
  (at the moment and in the future !). See examples below.\
-
 
11
  Il might be useful to use ``!rawmath'' before applying ``!texmath''.<br/>\
9
  The transformations made are the following:\
12
  The following transformations are performed:\
10
  <ul><li>\
13
  <ul><li>\
11
   Transforms computer matrix as [ 4,5;6,7] in latex matrix.\
14
   Transform computer matrix as [ 4,5;6,7] in latex matrix.\
12
   </li><li>\
15
   </li><li>\
13
   Transforms A/B in {1 over B} A or { A over B} according to the priority of\
16
   Transform A/B in {1 over B} A or { A over B} according to the priority of\
14
     the presume type of A and B (integer, numeric, variable, poly, transcend).\
17
     the presume type of A and B (integer, numeric, variable, poly, transcend).\
15
   </li><li> transforms &lt;=, &lt;=&gt; =&gt;, -&gt; in tex/latex codes.\
18
   </li><li> transforms &lt;=, &lt;=&gt; =&gt;, -&gt; in tex/latex codes.\
16
   </li><li>\
19
   </li><li>\
17
   Transforms a relation without a second member by adding 1.\
20
   Transform a relation without a second member by adding 1.\
18
   </li><li>\
21
   </li><li>\
19
   Replace scientific notation 35E-05 by 10 power and add multiplication sign. Remove the + or 0 useless.\
22
   Replace scientific notation 35E-05 by 10 power and add multiplication sign. Remove the + or 0 useless.\
20
  </li><li>\
23
  </li><li>\
21
   Remove the stars *.\
24
   Remove the stars *.\
22
   </li><li>\
25
   </li><li>\
23
   Replace some names as greek letters by their equivalents.\
26
   Replace some names as greek letters by their equivalents.\
24
   </li><li>\
27
   </li><li>\
25
   interpret sum(), integrate, prod () (coming from maxima ) in tex/latex codes.\
28
   interpret sum(), integrate, prod () (coming from maxima ) in tex/latex codes.\
26
</li></ul>
29
</li></ul>
-
 
30
 
-
 
31
sample:see below
-
 
32
:end
-
 
33
<tr>
-
 
34
  <td><code>!texmath 1*x+3*y = 35E-05</code></td>
-
 
35
  <td>
-
 
36
    !texmath 1*x+3*y = 35E-05
-
 
37
  </td>
-
 
38
</tr>
-
 
39
<tr>
-
 
40
  <td><code>!texmath 2x, 2*x</code></td>
-
 
41
  <td>
-
 
42
    !texmath 2x, 2*x
-
 
43
  </td>
-
 
44
</tr>
-
 
45
<tr>
-
 
46
  <td><code>!texmath x2, x_2, x^2</code></td>
-
 
47
  <td>
-
 
48
    !texmath x2, x_2, x^2
-
 
49
  </td>
-
 
50
</tr>