Subversion Repositories wimsdev

Rev

Rev 16258 | Details | Compare with Previous | Last modification | View Log | RSS feed

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