| 1 |
<HTML> |
| 2 |
|
| 3 |
<!-----------------------------------------------------------------------------> |
| 4 |
<!-- START OF AUTOMATICALLY GENERATED HTML FILE --> |
| 5 |
<!-----------------------------------------------------------------------------> |
| 6 |
<!-- --> |
| 7 |
<!-- This HTML file was generated by the FunnelWeb literate programming --> |
| 8 |
<!-- preprocessor. You can display this file using popular web browsers --> |
| 9 |
<!-- such as Netscape Navigator and Microsoft Internet Explorer. --> |
| 10 |
<!-- --> |
| 11 |
<!-- FunnelWeb is a preprocessor that allows programmers to weave programs --> |
| 12 |
<!-- and their documentation together in a single document. The FunnelWeb --> |
| 13 |
<!-- program analyses such documents producing both program files and --> |
| 14 |
<!-- typeset documentation such as this HTML file. --> |
| 15 |
<!-- --> |
| 16 |
<!-- FunnelWeb was created by Ross N. Williams (www.ross.net) and is --> |
| 17 |
<!-- available free of charge under a GNU General Public Licence. --> |
| 18 |
<!-- The FunnelWeb website can be found at http://www.ross.net/funnelweb/ --> |
| 19 |
<!-- --> |
| 20 |
<!-----------------------------------------------------------------------------> |
| 21 |
|
| 22 |
<HEAD> |
| 23 |
|
| 24 |
<TITLE>Package wv07</TITLE> |
| 25 |
|
| 26 |
<STYLE TYPE="text/css"> |
| 27 |
<!-- |
| 28 |
A {text-decoration: none} |
| 29 |
H1 { font-family: sans-serif; font-size: large } |
| 30 |
H2 { font-family: sans-serif; font-size: medium; font-weight: bold } |
| 31 |
H3 { font-family: sans-serif; font-size: medium } |
| 32 |
H4 { font-family: sans-serif; font-size: small } |
| 33 |
H5 { font-family: sans-serif; font-size: small } |
| 34 |
// --> |
| 35 |
</STYLE> |
| 36 |
|
| 37 |
</HEAD> |
| 38 |
<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#CC0033 VLINK=#CC0033 ALINK=#CC0000> |
| 39 |
|
| 40 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 41 |
WV07: Test the typesetting of library macros. |
| 42 |
|
| 43 |
<P></TD></TR></TABLE> |
| 44 |
<P><HR SIZE=4 NOSHADE><P><A NAME="sec_1"></A> |
| 45 |
<H1>1. 1. Test an ordinary library macro.</H1> |
| 46 |
<FONT COLOR=#CC0033> |
| 47 |
<P><A NAME="1"></A>1. Sloth[<B>ZL</B>]={<FONT COLOR=#000033><TT>I am the sloth</TT> |
| 48 |
</FONT>}<BR> |
| 49 |
</FONT> |
| 50 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 51 |
<P><HR SIZE=4 NOSHADE><P><A NAME="sec_2"></A> |
| 52 |
<H1>2. 2. Test a library macro with two body parts.</H1> |
| 53 |
<FONT COLOR=#CC0033> |
| 54 |
<P><A NAME="2"></A>2. <A HREF="#11">Two body parts</A>[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Sloth</TT> |
| 55 |
</FONT>}<BR> |
| 56 |
</FONT> |
| 57 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#2">2</A> and <A HREF="#3">3</A>.</FONT><BR> |
| 58 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#11">11</A>.</FONT><BR> |
| 59 |
<FONT COLOR=#CC0033> |
| 60 |
<P><A NAME="3"></A>3. <A HREF="#11">Two body parts</A>[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Walrus</TT> |
| 61 |
</FONT>}<BR> |
| 62 |
</FONT> |
| 63 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#2">2</A> and <A HREF="#3">3</A>.</FONT><BR> |
| 64 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#11">11</A>.</FONT><BR> |
| 65 |
<P><HR SIZE=4 NOSHADE><P><A NAME="sec_3"></A> |
| 66 |
<H1>3. 3. Test a library macro with three body parts.</H1> |
| 67 |
<FONT COLOR=#CC0033> |
| 68 |
<P><A NAME="4"></A>4. <A HREF="#9">Three body parts</A>[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Sloth</TT> |
| 69 |
</FONT>}<BR> |
| 70 |
</FONT> |
| 71 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#4">4</A>, <A HREF="#5">5</A> and <A HREF="#6">6</A>.</FONT><BR> |
| 72 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#9">9</A>.</FONT><BR> |
| 73 |
<FONT COLOR=#CC0033> |
| 74 |
<P><A NAME="5"></A>5. <A HREF="#9">Three body parts</A>[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Walrus</TT> |
| 75 |
</FONT>}<BR> |
| 76 |
</FONT> |
| 77 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#4">4</A>, <A HREF="#5">5</A> and <A HREF="#6">6</A>.</FONT><BR> |
| 78 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#9">9</A>.</FONT><BR> |
| 79 |
<FONT COLOR=#CC0033> |
| 80 |
<P><A NAME="6"></A>6. <A HREF="#9">Three body parts</A>[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Aardvaark</TT> |
| 81 |
</FONT>}<BR> |
| 82 |
</FONT> |
| 83 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#4">4</A>, <A HREF="#5">5</A> and <A HREF="#6">6</A>.</FONT><BR> |
| 84 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#9">9</A>.</FONT><BR> |
| 85 |
<P><HR SIZE=4 NOSHADE><P><A NAME="sec_4"></A> |
| 86 |
<H1>4. 4. Test a library macro with five body parts.</H1> |
| 87 |
<FONT COLOR=#CC0033> |
| 88 |
<P><A NAME="7"></A>7. Five body parts[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Sloth</TT> |
| 89 |
</FONT>}<BR> |
| 90 |
</FONT> |
| 91 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#7">7</A>, <A HREF="#8">8</A>, <A HREF="#9">9</A>, <A HREF="#10">10</A> and <A HREF="#11">11</A>.</FONT><BR> |
| 92 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 93 |
<FONT COLOR=#CC0033> |
| 94 |
<P><A NAME="8"></A>8. Five body parts[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Walrus</TT> |
| 95 |
</FONT>}<BR> |
| 96 |
</FONT> |
| 97 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#7">7</A>, <A HREF="#8">8</A>, <A HREF="#9">9</A>, <A HREF="#10">10</A> and <A HREF="#11">11</A>.</FONT><BR> |
| 98 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 99 |
<FONT COLOR=#CC0033> |
| 100 |
<P><A NAME="9"></A>9. Five body parts[<B>ZL</B>]+={<FONT COLOR=#000033><A HREF="#4">Three body parts</A></FONT>}<BR> |
| 101 |
</FONT> |
| 102 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#7">7</A>, <A HREF="#8">8</A>, <A HREF="#9">9</A>, <A HREF="#10">10</A> and <A HREF="#11">11</A>.</FONT><BR> |
| 103 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 104 |
<FONT COLOR=#CC0033> |
| 105 |
<P><A NAME="10"></A>10. Five body parts[<B>ZL</B>]+={<FONT COLOR=#000033><TT>Aardvaark</TT> |
| 106 |
</FONT>}<BR> |
| 107 |
</FONT> |
| 108 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#7">7</A>, <A HREF="#8">8</A>, <A HREF="#9">9</A>, <A HREF="#10">10</A> and <A HREF="#11">11</A>.</FONT><BR> |
| 109 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 110 |
<FONT COLOR=#CC0033> |
| 111 |
<P><A NAME="11"></A>11. Five body parts[<B>ZL</B>]+={<FONT COLOR=#000033><A HREF="#2">Two body parts</A></FONT>}<BR> |
| 112 |
</FONT> |
| 113 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#7">7</A>, <A HREF="#8">8</A>, <A HREF="#9">9</A>, <A HREF="#10">10</A> and <A HREF="#11">11</A>.</FONT><BR> |
| 114 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 115 |
<P><HR SIZE=4 NOSHADE><P><A NAME="sec_5"></A> |
| 116 |
<H1>5. 5. Test a library macro that is overruled.</H1> |
| 117 |
<FONT COLOR=#CC0033> |
| 118 |
<P><A NAME="12"></A>12. Walrus[<B>ZL</B>]={<FONT COLOR=#000033><TT>Walrus library</TT> |
| 119 |
</FONT>}<BR> |
| 120 |
</FONT> |
| 121 |
<FONT SIZE=1>This library macro was overruled by definition |
| 122 |
<A HREF="#13">13</A> and is not active.</FONT> |
| 123 |
<FONT COLOR=#CC0033> |
| 124 |
<P><A NAME="13"></A>13. Walrus[<B>Z</B>]={<FONT COLOR=#000033><TT>Walrus main</TT> |
| 125 |
</FONT>}<BR> |
| 126 |
</FONT> |
| 127 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 128 |
<P><HR SIZE=4 NOSHADE><P><A NAME="sec_6"></A> |
| 129 |
<H1>6. 6. Test interlaced and overruled.</H1> |
| 130 |
<FONT COLOR=#CC0033> |
| 131 |
<P><A NAME="14"></A>14. <A HREF="#18">Aardvark</A>[<B>ZL</B>]+={<FONT COLOR=#000033><TT>First aardvark level one text (correct)<BR> |
| 132 |
</TT> |
| 133 |
</FONT>}<BR> |
| 134 |
</FONT> |
| 135 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#14">14</A> and <A HREF="#16">16</A>.</FONT><BR> |
| 136 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#18">18</A>.</FONT><BR> |
| 137 |
<FONT COLOR=#CC0033> |
| 138 |
<P><A NAME="15"></A>15. <A HREF="#18">Aardvark</A>[<B>LL</B>]+={<FONT COLOR=#000033><TT>Second aardvark level two text</TT> |
| 139 |
</FONT>}<BR> |
| 140 |
</FONT> |
| 141 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#15">15</A> and <A HREF="#17">17</A>.</FONT><BR> |
| 142 |
<FONT SIZE=1>This library macro was overruled by definition |
| 143 |
<A HREF="#14">14</A> and is not active.</FONT> |
| 144 |
<FONT COLOR=#CC0033> |
| 145 |
<P><A NAME="16"></A>16. <A HREF="#18">Aardvark</A>[<B>ZL</B>]+={<FONT COLOR=#000033><TT>First aardvark level one text (correct)<BR> |
| 146 |
</TT> |
| 147 |
</FONT>}<BR> |
| 148 |
</FONT> |
| 149 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#14">14</A> and <A HREF="#16">16</A>.</FONT><BR> |
| 150 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#18">18</A>.</FONT><BR> |
| 151 |
<FONT COLOR=#CC0033> |
| 152 |
<P><A NAME="17"></A>17. <A HREF="#18">Aardvark</A>[<B>LL</B>]+={<FONT COLOR=#000033><TT>Second aardvark level two text</TT> |
| 153 |
</FONT>}<BR> |
| 154 |
</FONT> |
| 155 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#15">15</A> and <A HREF="#17">17</A>.</FONT><BR> |
| 156 |
<FONT SIZE=1>This library macro was overruled by definition |
| 157 |
<A HREF="#14">14</A> and is not active.</FONT> |
| 158 |
<FONT COLOR=#CC0033> |
| 159 |
<P><A NAME="18"></A><B>18. File:</B> wv07.out={<FONT COLOR=#000033><A HREF="#14">Aardvark</A></FONT>}<BR> |
| 160 |
</FONT> |
| 161 |
<FONT SIZE=1>This macro is attached to an output file.</FONT> |
| 162 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 163 |
|
| 164 |
|
| 165 |
<P>End of tests. |
| 166 |
</TD></TR></TABLE> |
| 167 |
<P> |
| 168 |
<HR SIZE=4 NOSHADE> |
| 169 |
<CENTER><B>End Of File</B></CENTER> |
| 170 |
<HR SIZE=4 NOSHADE> |
| 171 |
</BODY> |
| 172 |
|
| 173 |
<!-----------------------------------------------------------------------------> |
| 174 |
<!-- END OF AUTOMATICALLY GENERATED HTML FILE --> |
| 175 |
<!-----------------------------------------------------------------------------> |
| 176 |
</HTML> |