Subversion Repositories wimsdev

Rev

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

  1. !! +exec+ +var+ +string+
  2. !goto end
  3. tit:texmath
  4. type:$type_both
  5. alias:TeXmath, math2tex
  6. syntax:!texmath ``expr''
  7. mean:Translate the mathematical expression ``expr'' into a TeX source. If the expression \
  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.\
  11.   Il might be useful to use ``!rawmath'' before applying ``!texmath''.<br>\
  12.   The following transformations are performed:\
  13.   <ul><li>\
  14.    Transform computer matrix as [ 4,5;6,7] in latex matrix.\
  15.    </li><li>\
  16.    Transform A/B in {1 over B} A or { A over B} according to the priority of\
  17.      the presume type of A and B (integer, numeric, variable, poly, transcend).\
  18.    </li><li> transforms &lt;=, &lt;=&gt; =&gt;, -&gt; in tex/latex codes.\
  19.    </li><li>\
  20.    Transform a relation without a second member by adding 1.\
  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.\
  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>
  51.