Annotation of loncom/xml/attempt1.sty, revision 1.2
1.1 sakharuk 1: <definetag name = "revhist" parms = "arg">
2: <meta>
3: last_revision = $arg
4: </meta>
5: </definetag>
6:
7: <definetag name = "SectTitle" parms = "index,title">
8: <meta>
9: name_section = $title
10: </meta>
1.2 ! albertel 11: <render>
1.1 sakharuk 12: <web>
13: <h1> Section <FONT COLOR="#FF0000">$index</FONT>: $title </h1>
14: </web>
15: <tex>
16: \Section{ $title }
17: </tex>
1.2 ! albertel 18: </render>
1.1 sakharuk 19: </definetag>
20:
21: <definetag name = "index" parms = "text,reftext">
1.2 ! albertel 22: <render>
1.1 sakharuk 23: <web>
24: $text
25: </web>
26: <tex>
27: $text
28: </tex>
1.2 ! albertel 29: </render>
1.1 sakharuk 30: </definetag>
31:
32: <definetag name = "history" parms = "argum">
33: <meta>
34: last_re = $argum
35: </meta>
36: </definetag>
37:
38:
39: <definetag name = "emph" parms = "arg">
1.2 ! albertel 40: <render>
1.1 sakharuk 41: <web>
42: <i> $arg </i>
43: </web>
44: <tex>
45: {\emph $arg}
46: </tex>
1.2 ! albertel 47: </render>
1.1 sakharuk 48: </definetag>
49:
50: <definetag name = "TxtStatement" parms = "arg">
1.2 ! albertel 51: <render>
1.1 sakharuk 52: <web>
53: key_word = $arg
54: </web>
55: <tex>
56:
57: </tex>
1.2 ! albertel 58: </render>
1.1 sakharuk 59: </definetag>
60:
61: <definetag name = "Numeration" parms = "arg1,arg2">
1.2 ! albertel 62: <render>
1.1 sakharuk 63: <web>
64:
65: </web>
66: <tex>
67:
68: </tex>
1.2 ! albertel 69: </render>
1.1 sakharuk 70: </definetag>
71:
72: <definetag name = "ProbHead" parms = "title,arg">
1.2 ! albertel 73: <render>
1.1 sakharuk 74: This is a new problem:
75: <web>
76: <center><h1> $title </h1></center>
77: </web>
78: corresponding the material
79: <tex>
80: /begin{center}{\large $title }/end{center}
81: </tex>
82: ttttt ttttt ttttt
83: <web>
84: <center><h3> $arg </h3></center>
85: </web>
1.2 ! albertel 86: </render>
1.1 sakharuk 87: </definetag>
88:
89: <definetag name = "TxtPro" parms = "arg1,arg2">
1.2 ! albertel 90: <render>
1.1 sakharuk 91: <web>
92: <FONT COLOR="#FF0000">$arg1-$arg2</FONT>
93: </web>
94: <tex>
95:
96: </tex>
1.2 ! albertel 97: </render>
1.1 sakharuk 98: </definetag>
99:
100: <definetag name = "ProbHeader" parms = "title,subtitle">
101: <meta>
102:
103: </meta>
1.2 ! albertel 104: <render>
1.1 sakharuk 105: Semaphor
106: <web>
107: <center><h1> $title </h1></center>
108: </web>
109: chorosho
110: <tex>
111: /begin{center}{\large $arg }/end{center}
112: </tex>
113: lepota
114: <web>
115: <center><h3> $subtitle </h3></center>
116: </web>
117: ghgjh hgkjhgkh ghk
1.2 ! albertel 118: </render>
1.1 sakharuk 119: </definetag>
120:
121: <definetag name = "ProbAns" parms = "arg">
1.2 ! albertel 122: <render>
1.1 sakharuk 123: <web>
124: <i> (Answer: $arg) </i>
125: </web>
126: <tex>
127:
128: </tex>
1.2 ! albertel 129: </render>
1.1 sakharuk 130: </definetag>
131:
132:
133: <definetag name = "filltable" parms = "rows,cols">
1.2 ! albertel 134: <render>
1.1 sakharuk 135: <rat>
136: <script>
137:
138: $rs = $rows;
139: $cs = $cols;
140: @table = ();
141:
142: for $i (0..$rs-1) {
143: for $j (0..$cs-1) {
144: $table[$i][$j] = '0';
145: }
146: }
147:
148: </script>
149: </rat>
1.2 ! albertel 150: </render>
1.1 sakharuk 151: </definetag>
152:
153:
154: <definetag name = "hline" parms = "row,scol,ecol">
1.2 ! albertel 155: <render>
1.1 sakharuk 156: <rat>
157: <script>
158:
159: $currow = $row;
160: $sta_col = $scol;
161: $en_col = $ecol;
162:
163: for $i ($sta_col..$en_col) {
164: $table[$currow-1][$i-1] = 'X';
165: }
166:
167: </script>
168: </rat>
1.2 ! albertel 169: </render>
1.1 sakharuk 170: </definetag><definetag name = "vline" parms = "col,srow,erow">
1.2 ! albertel 171: <render>
1.1 sakharuk 172: <rat>
173: <script>
174:
175: $curcol = $col;
176: $sta_row = $srow;
177: $en_row = $erow;
178:
179: for $i ($sta_row..$en_row) {
180: $table[$i-1][$curcol-1] = 'X';
181: }
182:
183: </script>
184: </rat>
1.2 ! albertel 185: </render>
1.1 sakharuk 186: </definetag>
187:
188:
189: <definetag name = "restable" parms = "rows,cols">
1.2 ! albertel 190: <render>
1.1 sakharuk 191: <rat>
192: <script>
193:
194: $rs = $rows;
195: $cs = $cols;
196: @table;
197: $outputstring = '';
198:
199: $outputstring .= " <table> ";
200:
201: for $i (0..$rs-1) {
202: $outputstring .= " <tr> ";
203: for $j (0..$cs-1) {
204: $outputstring .= " <td> $table[$i][$j] </td> ";
205:
206:
207: }
208: $outputstring .= " </tr> ";
209: }
210: $outputstring .= " </table> ";
211:
212:
213: </script>
214:
215: </rat>
216:
217: <rat>
218: <evaluate expression = "$outputstring"></evaluate>
219: </rat>
1.2 ! albertel 220: </render>
1.1 sakharuk 221: </definetag>
222:
223:
224: <definetag name = "boka" parms = "arg">
225: <meta>
226: hhh_ooo = $arg
227: </meta>
1.2 ! albertel 228: <render>
1.1 sakharuk 229: <web>
230: Let me know $arg!!!!!
231: </web>
232: <tex>
233:
234: </tex>
1.2 ! albertel 235: </render>
1.1 sakharuk 236: </definetag>
237:
238:
239: <definetag name = "/boka" parms = "arg">
1.2 ! albertel 240: <render>
1.1 sakharuk 241: <web>
242: Let me know $arg now, now,, now now now!!!!!!!!!!!!!!!!!!!!!!
243: </web>
244: <tex>
245:
246: </tex>
1.2 ! albertel 247: </render>
1.1 sakharuk 248: </definetag>
249:
250:
251: <definetag name = "InsideTag" parms = "index,title">
252: <meta>
253:
254: </meta>
1.2 ! albertel 255: <render>
1.1 sakharuk 256: <web>
257: <h2> Subsection <FONT COLOR="#FF0000">$index</FONT>: $title </h2>
258: </web>
259: <tex>
260: \Subsection{ $title }
261: </tex>
1.2 ! albertel 262: </render>
1.1 sakharuk 263: </definetag>
264:
265:
266: <definetag name = "/InsideTag">
267: <meta>
268:
269: </meta>
1.2 ! albertel 270: <render>
1.1 sakharuk 271: <web>
272: <h3> This is the final target </h3>
273: </web>
274: <tex>
275: \Subsection{ $title }
276: </tex>
1.2 ! albertel 277: </render>
1.1 sakharuk 278: </definetag>
279:
280: <definetag name = "OutsideTag" parms = "index,title">
281: <meta>
282:
283: </meta>
1.2 ! albertel 284: <render>
1.1 sakharuk 285: <web>
286: <h1> Section <InsideTag> $index </InsideTag>: $title </h1>
287: </web>
288: <tex>
289: \Section{ $title }
290: </tex>
1.2 ! albertel 291: </render>
1.1 sakharuk 292: </definetag>
293:
294:
295: <definetag name = "/restable" parms = "rows,cols">
1.2 ! albertel 296: <render>
1.1 sakharuk 297: <rat>
298: <script>
299:
300: $rs = $rows;
301: $cs = $cols;
302: @table;
303: $outputstring = '';
304:
305: $outputstring .= " <table> ";
306:
307: for $i (0..$rs-1) {
308: $outputstring .= " <tr> ";
309: for $j (0..$cs-1) {
310: $outputstring .= " <td> $table[$i][$j] </td> ";
311:
312:
313: }
314: $outputstring .= " </tr> ";
315: }
316: $outputstring .= " </table> ";
317:
318:
319: </script>
320:
321: </rat>
322:
323: <rat>
324: <evaluate expression = "$outputstring"></evaluate>
325: </rat>
1.2 ! albertel 326: </render>
1.1 sakharuk 327: </definetag>
328:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>