Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
32 reyssat 1
<p>
2
WIMS has a very simple way to let you make use of many of its features,
3
without being a specialist of its structure: $emph light phtml$emphend.
4
Just take any of your existing html page, add a few WIMS
5
commands here and there, and publish it on a WIMS site as a light phtml
9071 bpr 6
file. And your page looks much more intelligent.
5799 bpr 7
</p><p>
32 reyssat 8
Once your page is on a wims site, it can be called from anywhere on the web,
9
just like an ordinary web page.
5799 bpr 10
</p><p>
32 reyssat 11
It goes without saying that really intelligent pages require intelligent
12
programming, so if you want your page behave as intelligent as yourself, you
13
have to know a minimum of the principle of computer programming, and dig a bit into
9071 bpr 14
the technical reference part of this documentation to know what commands and variables
32 reyssat 15
you should use for the
16
effects you want. However, even without interactivity and programming, your
17
page will get the following basic features:
5799 bpr 18
</p>
32 reyssat 19
<ol>
20
 <li>Inline mathematical symbols. Simply write
5921 bpr 21
  <span class="tt">$$m_alpha$$m_le$$m_beta</span> in your phtml file, and you get
32 reyssat 22
  $m_alpha$m_le$m_beta under wims. Your visitor will
23
  be able to choose the size of the font he wants (as well as the instex
9071 bpr 24
  font sizes as below), without you having to worry about this. See also the section
25
  $(ref1)mathfonts$(ref2)mathfonts">$title_mathfonts</a>.
5799 bpr 26
</li><li>
27
  For more complicated mathematical formulas, you can choose to use
1091 bpr 28
  $(ref1)cmdlist_instex_&+cmd_choose=all$(ref2)cmdlist_instex_">instex</a>.
9071 bpr 29
  For example, the line
32 reyssat 30
  !set ins_align=middle
31
  <pre>
32
  $ !instex $$$$ \int^b_a \sqrt{x^2+1}dx $$$$
33
  </pre>
9071 bpr 34
  in your phtml source will give the inline formula
32 reyssat 35
  !instex $$ \int^b_a\sqrt{x^2+1}dx $$
36
  , while <pre>
37
  $ !instex $$$$$$$$ \int^b_a \sqrt{x^2+1}dx $$$$$$$$
38
  </pre>
39
  gives the same formula in displayed style:
40
  !instex $$$$ \int^b_a \sqrt{x^2+1}dx $$$$
41
  . Unlike some other packages, you don't have to precompile your phtml
42
  file, and your formula can vary from request to request (see below).
43
  <p>Planned for near future, there will
44
  also be a WIMS command translating raw mathematical
45
  expressions into TeX source. So you even don't have to know TeX in order to
5920 bpr 46
  insert beautified equations... </p>
9071 bpr 47
</li><li>
48
  Dynamic insertion of graphisms. Just one WIMS command
1091 bpr 49
  ($(ref1)cmdlist_insplot_&+cmd_choose=all$(ref2)cmdlist_insplot_">insplot</a>)
32 reyssat 50
  with an equation, and your page will contain a figure which may be
51
  animated in the way you like. And it may be made to vary from
9071 bpr 52
  request to request...
53
</li><li>
54
  You may define and use substitutable variables. The value of these
32 reyssat 55
  variables may be client-defined, random, etc... And you may put them in
5921 bpr 56
  the sources of <span class="tt">instex</span>, <span class="tt">insplot</span>, etc. Imagine the
32 reyssat 57
  effect. Such variables also allow you to define your style macros, among
9071 bpr 58
  other things.
59
</li><li>
60
  Powerful mathematical softwares are directly at your disposal: A simple
32 reyssat 61
  line <pre>!exec pari factor(2^67-1)</pre>
9071 bpr 62
  gives you the factorisation of the number 2<sup>67</sup>-1 (but you have to
32 reyssat 63
  copy one of my modules to reformat the output in an intelligent way).
5799 bpr 64
</li><li>By using wims commands, you will automatically benefit from future
9071 bpr 65
  enhancements/improvements of the wims server, without modifying your page:
32 reyssat 66
  e.g. better TeX fonts or graphics, more intelligent translations of
67
  mathematical expressions, etc.
5799 bpr 68
</li>
32 reyssat 69
</ol>
70
 
5799 bpr 71
<p>At any time, when you want heavy interactivity features, you can migrate
32 reyssat 72
your light page into a real WIMS module which allows you to built very
73
complicated structures. See the chapter
1091 bpr 74
$(ref1)migrate$(ref2)mibrate">$title_migrate</a>.
5799 bpr 75
</p><p>
1091 bpr 76
Now $(ref1)lighthowto$(ref2)lighthowto">read this</a> for the detail of how
32 reyssat 77
to publish a light phtml page.
5799 bpr 78
</p>