1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
-*- html -*- 
<info> 
version="$Id$"; 
name="gtext_list"; 
doc="Replace the normal list tags with graphical list numbers."; 
help=1; 
</info> 
 
<define container="gol"> 
<if variable="help"> 
  Within the "Graphical Ordered List Tag", &lt;gol&gt;, you should 
  place &lt;li&gt;-tags, just as you would do in an ordinary ol/li-construction. 
  The difference is that the numbers are generated with gtext. You can give 
  any gtext-attribute to the surrounding gli-tag. E.g.<br /> 
<pre> 
&lt;gol fgcolor="#5500ff"&gt; 
&lt;li&gt;This is one reason.&lt;/li&gt; 
&lt;li&gt;This is another.&lt;/li&gt; 
&lt;/gol&gt; 
</pre> 
  would create the following effect:<br /> 
<gol fgcolor="#5500ff"> 
<li>This is one reason.</li> 
<li>This is another.</li> 
</gol> 
</if> 
<else> 
  <set variable="var.cnt">0</set> 
  <set variable="var.cnt-args">&_.args:none;</set> 
  <define container="li"><inc variable="var.cnt"/> 
    <tr><td align="right"><gtext ::="&var.cnt-args;">&var.cnt;</gtext></td> 
        <td><contents/></td></tr> 
  </define> 
  <table> 
  <contents/> 
  </table> 
  <undefine container="li"/> 
  <unset variable="var.cnt"/> 
</else> 
</define>