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