File:
[LON-CAPA] /
loncom /
xml /
attempt1.sty
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Wed Jun 28 13:28:05 2000 UTC (24 years, 6 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_X,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
version_2_1_99_0,
version_2_1_3,
version_2_1_2,
version_2_1_1,
version_2_1_0,
version_2_12_X,
version_2_11_X,
version_2_11_6,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_11_0,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
version_2_0_X,
version_2_0_99_1,
version_2_0_2,
version_2_0_1,
version_2_0_0,
version_1_99_3,
version_1_99_2,
version_1_99_1_tmcc,
version_1_99_1,
version_1_99_0_tmcc,
version_1_99_0,
version_1_3_X,
version_1_3_3,
version_1_3_2,
version_1_3_1,
version_1_3_0,
version_1_2_X,
version_1_2_99_1,
version_1_2_99_0,
version_1_2_1,
version_1_2_0,
version_1_1_X,
version_1_1_99_5,
version_1_1_99_4,
version_1_1_99_3,
version_1_1_99_2,
version_1_1_99_1,
version_1_1_99_0,
version_1_1_3,
version_1_1_2,
version_1_1_1,
version_1_1_0,
version_1_0_99_3,
version_1_0_99_2,
version_1_0_99_1,
version_1_0_99,
version_1_0_3,
version_1_0_2,
version_1_0_1,
version_1_0_0,
version_0_99_5,
version_0_99_4,
version_0_99_3,
version_0_99_2,
version_0_99_1,
version_0_99_0,
version_0_6_2,
version_0_6,
version_0_5_1,
version_0_5,
version_0_4,
stable_2002_spring,
stable_2002_july,
stable_2002_april,
stable_2001_fall,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
conference_2003,
bz6209-base,
bz6209,
bz5969,
bz2851,
STABLE,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
- we want to use the <render> tag in style files
<definetag name = "revhist" parms = "arg">
<meta>
last_revision = $arg
</meta>
</definetag>
<definetag name = "SectTitle" parms = "index,title">
<meta>
name_section = $title
</meta>
<render>
<web>
<h1> Section <FONT COLOR="#FF0000">$index</FONT>: $title </h1>
</web>
<tex>
\Section{ $title }
</tex>
</render>
</definetag>
<definetag name = "index" parms = "text,reftext">
<render>
<web>
$text
</web>
<tex>
$text
</tex>
</render>
</definetag>
<definetag name = "history" parms = "argum">
<meta>
last_re = $argum
</meta>
</definetag>
<definetag name = "emph" parms = "arg">
<render>
<web>
<i> $arg </i>
</web>
<tex>
{\emph $arg}
</tex>
</render>
</definetag>
<definetag name = "TxtStatement" parms = "arg">
<render>
<web>
key_word = $arg
</web>
<tex>
</tex>
</render>
</definetag>
<definetag name = "Numeration" parms = "arg1,arg2">
<render>
<web>
</web>
<tex>
</tex>
</render>
</definetag>
<definetag name = "ProbHead" parms = "title,arg">
<render>
This is a new problem:
<web>
<center><h1> $title </h1></center>
</web>
corresponding the material
<tex>
/begin{center}{\large $title }/end{center}
</tex>
ttttt ttttt ttttt
<web>
<center><h3> $arg </h3></center>
</web>
</render>
</definetag>
<definetag name = "TxtPro" parms = "arg1,arg2">
<render>
<web>
<FONT COLOR="#FF0000">$arg1-$arg2</FONT>
</web>
<tex>
</tex>
</render>
</definetag>
<definetag name = "ProbHeader" parms = "title,subtitle">
<meta>
</meta>
<render>
Semaphor
<web>
<center><h1> $title </h1></center>
</web>
chorosho
<tex>
/begin{center}{\large $arg }/end{center}
</tex>
lepota
<web>
<center><h3> $subtitle </h3></center>
</web>
ghgjh hgkjhgkh ghk
</render>
</definetag>
<definetag name = "ProbAns" parms = "arg">
<render>
<web>
<i> (Answer: $arg) </i>
</web>
<tex>
</tex>
</render>
</definetag>
<definetag name = "filltable" parms = "rows,cols">
<render>
<rat>
<script>
$rs = $rows;
$cs = $cols;
@table = ();
for $i (0..$rs-1) {
for $j (0..$cs-1) {
$table[$i][$j] = '0';
}
}
</script>
</rat>
</render>
</definetag>
<definetag name = "hline" parms = "row,scol,ecol">
<render>
<rat>
<script>
$currow = $row;
$sta_col = $scol;
$en_col = $ecol;
for $i ($sta_col..$en_col) {
$table[$currow-1][$i-1] = 'X';
}
</script>
</rat>
</render>
</definetag><definetag name = "vline" parms = "col,srow,erow">
<render>
<rat>
<script>
$curcol = $col;
$sta_row = $srow;
$en_row = $erow;
for $i ($sta_row..$en_row) {
$table[$i-1][$curcol-1] = 'X';
}
</script>
</rat>
</render>
</definetag>
<definetag name = "restable" parms = "rows,cols">
<render>
<rat>
<script>
$rs = $rows;
$cs = $cols;
@table;
$outputstring = '';
$outputstring .= " <table> ";
for $i (0..$rs-1) {
$outputstring .= " <tr> ";
for $j (0..$cs-1) {
$outputstring .= " <td> $table[$i][$j] </td> ";
}
$outputstring .= " </tr> ";
}
$outputstring .= " </table> ";
</script>
</rat>
<rat>
<evaluate expression = "$outputstring"></evaluate>
</rat>
</render>
</definetag>
<definetag name = "boka" parms = "arg">
<meta>
hhh_ooo = $arg
</meta>
<render>
<web>
Let me know $arg!!!!!
</web>
<tex>
</tex>
</render>
</definetag>
<definetag name = "/boka" parms = "arg">
<render>
<web>
Let me know $arg now, now,, now now now!!!!!!!!!!!!!!!!!!!!!!
</web>
<tex>
</tex>
</render>
</definetag>
<definetag name = "InsideTag" parms = "index,title">
<meta>
</meta>
<render>
<web>
<h2> Subsection <FONT COLOR="#FF0000">$index</FONT>: $title </h2>
</web>
<tex>
\Subsection{ $title }
</tex>
</render>
</definetag>
<definetag name = "/InsideTag">
<meta>
</meta>
<render>
<web>
<h3> This is the final target </h3>
</web>
<tex>
\Subsection{ $title }
</tex>
</render>
</definetag>
<definetag name = "OutsideTag" parms = "index,title">
<meta>
</meta>
<render>
<web>
<h1> Section <InsideTag> $index </InsideTag>: $title </h1>
</web>
<tex>
\Section{ $title }
</tex>
</render>
</definetag>
<definetag name = "/restable" parms = "rows,cols">
<render>
<rat>
<script>
$rs = $rows;
$cs = $cols;
@table;
$outputstring = '';
$outputstring .= " <table> ";
for $i (0..$rs-1) {
$outputstring .= " <tr> ";
for $j (0..$cs-1) {
$outputstring .= " <td> $table[$i][$j] </td> ";
}
$outputstring .= " </tr> ";
}
$outputstring .= " </table> ";
</script>
</rat>
<rat>
<evaluate expression = "$outputstring"></evaluate>
</rat>
</render>
</definetag>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>