Annotation of loncom/xml/attempt1.sty, revision 1.1
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>
! 11: <outtext>
! 12: <web>
! 13: <h1> Section <FONT COLOR="#FF0000">$index</FONT>: $title </h1>
! 14: </web>
! 15: <tex>
! 16: \Section{ $title }
! 17: </tex>
! 18: </outtext>
! 19: </definetag>
! 20:
! 21: <definetag name = "index" parms = "text,reftext">
! 22: <outtext>
! 23: <web>
! 24: $text
! 25: </web>
! 26: <tex>
! 27: $text
! 28: </tex>
! 29: </outtext>
! 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">
! 40: <outtext>
! 41: <web>
! 42: <i> $arg </i>
! 43: </web>
! 44: <tex>
! 45: {\emph $arg}
! 46: </tex>
! 47: </outtext>
! 48: </definetag>
! 49:
! 50: <definetag name = "TxtStatement" parms = "arg">
! 51: <outtext>
! 52: <web>
! 53: key_word = $arg
! 54: </web>
! 55: <tex>
! 56:
! 57: </tex>
! 58: </outtext>
! 59: </definetag>
! 60:
! 61: <definetag name = "Numeration" parms = "arg1,arg2">
! 62: <outtext>
! 63: <web>
! 64:
! 65: </web>
! 66: <tex>
! 67:
! 68: </tex>
! 69: </outtext>
! 70: </definetag>
! 71:
! 72: <definetag name = "ProbHead" parms = "title,arg">
! 73: <outtext>
! 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>
! 86: </outtext>
! 87: </definetag>
! 88:
! 89: <definetag name = "TxtPro" parms = "arg1,arg2">
! 90: <outtext>
! 91: <web>
! 92: <FONT COLOR="#FF0000">$arg1-$arg2</FONT>
! 93: </web>
! 94: <tex>
! 95:
! 96: </tex>
! 97: </outtext>
! 98: </definetag>
! 99:
! 100: <definetag name = "ProbHeader" parms = "title,subtitle">
! 101: <meta>
! 102:
! 103: </meta>
! 104: <outtext>
! 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
! 118: </outtext>
! 119: </definetag>
! 120:
! 121: <definetag name = "ProbAns" parms = "arg">
! 122: <outtext>
! 123: <web>
! 124: <i> (Answer: $arg) </i>
! 125: </web>
! 126: <tex>
! 127:
! 128: </tex>
! 129: </outtext>
! 130: </definetag>
! 131:
! 132:
! 133: <definetag name = "filltable" parms = "rows,cols">
! 134: <outtext>
! 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>
! 150: </outtext>
! 151: </definetag>
! 152:
! 153:
! 154: <definetag name = "hline" parms = "row,scol,ecol">
! 155: <outtext>
! 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>
! 169: </outtext>
! 170: </definetag><definetag name = "vline" parms = "col,srow,erow">
! 171: <outtext>
! 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>
! 185: </outtext>
! 186: </definetag>
! 187:
! 188:
! 189: <definetag name = "restable" parms = "rows,cols">
! 190: <outtext>
! 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>
! 220: </outtext>
! 221: </definetag>
! 222:
! 223:
! 224: <definetag name = "boka" parms = "arg">
! 225: <meta>
! 226: hhh_ooo = $arg
! 227: </meta>
! 228: <outtext>
! 229: <web>
! 230: Let me know $arg!!!!!
! 231: </web>
! 232: <tex>
! 233:
! 234: </tex>
! 235: </outtext>
! 236: </definetag>
! 237:
! 238:
! 239: <definetag name = "/boka" parms = "arg">
! 240: <outtext>
! 241: <web>
! 242: Let me know $arg now, now,, now now now!!!!!!!!!!!!!!!!!!!!!!
! 243: </web>
! 244: <tex>
! 245:
! 246: </tex>
! 247: </outtext>
! 248: </definetag>
! 249:
! 250:
! 251: <definetag name = "InsideTag" parms = "index,title">
! 252: <meta>
! 253:
! 254: </meta>
! 255: <outtext>
! 256: <web>
! 257: <h2> Subsection <FONT COLOR="#FF0000">$index</FONT>: $title </h2>
! 258: </web>
! 259: <tex>
! 260: \Subsection{ $title }
! 261: </tex>
! 262: </outtext>
! 263: </definetag>
! 264:
! 265:
! 266: <definetag name = "/InsideTag">
! 267: <meta>
! 268:
! 269: </meta>
! 270: <outtext>
! 271: <web>
! 272: <h3> This is the final target </h3>
! 273: </web>
! 274: <tex>
! 275: \Subsection{ $title }
! 276: </tex>
! 277: </outtext>
! 278: </definetag>
! 279:
! 280: <definetag name = "OutsideTag" parms = "index,title">
! 281: <meta>
! 282:
! 283: </meta>
! 284: <outtext>
! 285: <web>
! 286: <h1> Section <InsideTag> $index </InsideTag>: $title </h1>
! 287: </web>
! 288: <tex>
! 289: \Section{ $title }
! 290: </tex>
! 291: </outtext>
! 292: </definetag>
! 293:
! 294:
! 295: <definetag name = "/restable" parms = "rows,cols">
! 296: <outtext>
! 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>
! 326: </outtext>
! 327: </definetag>
! 328:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>