Subversion Repositories wimsdev

Rev

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

Rev 32 Rev 1091
Line 4... Line 4...
4
evaluation can be done on variables via the variable command
4
evaluation can be done on variables via the variable command
5
$(ref1)cmdlist_eval_&cmd_choose=all$(ref2)cmdlist_eval_>!eval</a>.
5
$(ref1)cmdlist_eval_&+cmd_choose=all$(ref2)cmdlist_eval_">!eval</a>.
6
<p>
6
<p>
7
A variable may be defined or modified in a variable processing file, or by
7
A variable may be defined or modified in a variable processing file, or by
8
the commands
8
the commands
9
$(ref1)cmdlist_let_&cmd_choose=all$(ref2)cmdlist_let_>!let</a> and
9
$(ref1)cmdlist_let_&+cmd_choose=all$(ref2)cmdlist_let_">!let</a> and
10
$(ref1)cmdlist_default_&cmd_choose=all$(ref2)cmdlist_default_>!default</a>.
10
$(ref1)cmdlist_default_&+cmd_choose=all$(ref2)cmdlist_default_">!default</a>.
11
<p>
11
<p>
12
Variable names can contain any alphanumeric character, as well as the
12
Variable names can contain any alphanumeric character, as well as the
13
underscore character $(emph)_$emphend. There is a limit to the length of
13
underscore character $(emph)_$emphend. There is a limit to the length of
14
variable names, and a limit to the length of values. (Limits depending on
14
variable names, and a limit to the length of values. (Limits depending on
15
server configuration.)
15
server configuration.)
Line 47... Line 47...
47
  <p><center><tt>$$M=x,y,z;a,b,c</tt>
47
  <p><center><tt>$$M=x,y,z;a,b,c</tt>
48
  </center> <p>
48
  </center> <p>
49
  (a 2x3 matrix), then
49
  (a 2x3 matrix), then
50
  <p><center>
50
  <p><center>
51
  <tt> $$(M[1;3,2])=z,y </tt>
51
  <tt> $$(M[1;3,2])=z,y </tt>
52
  </center> <p>
-
 
53
 <li>If the character $emph$$$emphend is followed by the left bracket
52
  </center> <li><p>If the character $emph$$$emphend is followed by the left bracket
54
  $emph[$emphend, the matching $emph]$emphend will be located, the content
53
  $emph[$emphend, the matching $emph]$emphend will be located, the content
55
  of the pair of brackets substituted then evaluated to a real number value whose
54
  of the pair of brackets substituted then evaluated to a real number value whose
56
  precision depends on the value of $emph print_precision$emphend.
55
  precision depends on the value of $emph print_precision$emphend.
57
  This value will replace the whole thing
56
  This value will replace the whole thing
58
  together with the leading $emph$$$emphend. <br>
57
  together with the leading $emph$$$emphend. <br>
Line 104... Line 103...
104
  (but may vary with the config of the installation).
103
  (but may vary with the config of the installation).
105
 <li>Variable names starting with $emph module_$emphend will have special
104
 <li>Variable names starting with $emph module_$emphend will have special
106
  meanings: they are used to hold variables defined in the module's INDEX
105
  meanings: they are used to hold variables defined in the module's INDEX
107
  file. Currently implemented variables:
106
  file. Currently implemented variables:
108
  <center><table border=0 cellspacing=10>
107
  <center><table border=0 cellspacing=10>
109
   <tr><td>$emph module_title<td>title of the module
108
   <tr><td>$emph module_title$emphend<td>title of the module
110
   <tr><td>$emph module_description<td>short description of the module
109
   <tr><td>$emph module_description$emphend<td>short description of the module
111
   <tr><td>$emph module_author<td>name(s) of author(s) of the module
110
   <tr><td>$emph module_author$emphend<td>name(s) of author(s) of the module
112
   <tr><td>$emph module_address<td>e-mail address of the (principal) author
111
   <tr><td>$emph module_address$emphend<td>e-mail address of the (principal) author
113
   <tr><td>$emph module_copyright<td>copyright notice of the module
112
   <tr><td>$emph module_copyright$emphend<td>copyright notice of the module
114
   <tr><td>$emph module_version<td>current version of the module
113
   <tr><td>$emph module_version$emphend<td>current version of the module
115
   <tr><td>$emph module_wims_version<td>minimal wims version required<br>
114
   <tr><td>$emph module_wims_version$emphend<td>minimal wims version required<br>
116
        to run this module
115
        to run this module
117
   <tr><td>$emph module_language<td>language of the module<br>(en, fr, de, or ...)
116
   <tr><td>$emph module_language$emphend<td>language of the module<br>(en, fr, de, or ...)
118
   <tr><td>$emph module_category<td>category of the module<br>
117
   <tr><td>$emph module_category$emphend<td>category of the module<br>
119
        (exercise, tool, course, pedia, recreation, adm, other)
118
        (exercise, tool, course, pedia, recreation, adm, other)
120
   <tr><td>$emph module_level<td>level of the module
119
   <tr><td>$emph module_level$emphend<td>level of the module
121
   <tr><td>$emph module_domain<td>algebra, analysis, geometry, ...
120
   <tr><td>$emph module_domain$emphend<td>algebra, analysis, geometry, ...
122
   <tr><td>$emph module_keywords<td>keywords, to be placed in the html header
121
   <tr><td>$emph module_keywords$emphend<td>keywords, to be placed in the html header
123
   <tr><td>$emph module_scoring<td>= yes if the module gives scores according
122
   <tr><td>$emph module_scoring$emphend<td>= yes if the module gives scores according
124
        to wims standard
123
        to wims standard
125
  </table></center>
124
  </table></center>
126
  Also, variables $emph module_has_intro$emphend,
125
  Also, variables $emph module_has_intro$emphend,
127
  $emph module_has_help$emphend and
126
  $emph module_has_help$emphend and
128
  $emph module_has_about$emphend
127
  $emph module_has_about$emphend