<definetag name = "revhist" parms = "arg">
   <meta>
       last_revision = $arg     
   </meta>
</definetag>

<definetag name = "SectTitle" parms = "index,title">
   <meta>
       name_section = $title
   </meta>
   <outtext>
      <web>
         <h1> Section <FONT COLOR="#FF0000">$index</FONT>: $title </h1>
      </web>
      <tex>
          \Section{ $title }
      </tex>
  </outtext>
</definetag>

<definetag name = "index" parms = "text,reftext">
   <outtext>
      <web>
         $text
      </web>
      <tex>
         $text 
      </tex>
  </outtext>
</definetag>

<definetag name = "history" parms = "argum">
   <meta>
       last_re = $argum 
   </meta>
</definetag>


<definetag name = "emph" parms = "arg">
   <outtext>
      <web>
         <i> $arg </i>
      </web>
      <tex>
         {\emph $arg} 
      </tex>
  </outtext>
</definetag>

<definetag name = "TxtStatement" parms = "arg">
   <outtext>
      <web>
        key_word = $arg
      </web>
      <tex>

      </tex>
  </outtext>
</definetag>

<definetag name = "Numeration" parms = "arg1,arg2">
   <outtext>
      <web>
     
      </web>
      <tex>
  
      </tex>
  </outtext>
</definetag>

<definetag name = "ProbHead" parms = "title,arg">
   <outtext>
            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>
  </outtext>
</definetag>
	
<definetag name = "TxtPro" parms = "arg1,arg2">
   <outtext>
      <web>
         <FONT COLOR="#FF0000">$arg1-$arg2</FONT>
      </web>
      <tex>
  
      </tex>
  </outtext>
</definetag>

<definetag name = "ProbHeader" parms = "title,subtitle">
   <meta>

   </meta>
   <outtext>
            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
  </outtext>
</definetag>

<definetag name = "ProbAns" parms = "arg">
   <outtext>
      <web>
         <i> (Answer: $arg) </i> 
      </web>
      <tex>
  
      </tex>
  </outtext>
</definetag>


<definetag name = "filltable" parms = "rows,cols">
   <outtext>
      <rat>
        <script> 

            $rs = $rows;
            $cs  = $cols;
            @table = ();

            for $i (0..$rs-1) {
               for $j (0..$cs-1) {
	          $table[$i][$j] = '0';
               } 
            }       
            
        </script>
      </rat>
  </outtext>
</definetag>


<definetag name = "hline" parms = "row,scol,ecol">
   <outtext>
      <rat>
        <script>

             $currow = $row;
             $sta_col = $scol;
             $en_col = $ecol;

              for $i ($sta_col..$en_col) {
                 $table[$currow-1][$i-1] = 'X';
              } 
 
        </script>
      </rat>
  </outtext>
</definetag><definetag name = "vline" parms = "col,srow,erow">
   <outtext>
      <rat>
        <script>

             $curcol = $col;
             $sta_row = $srow;
             $en_row = $erow;

              for $i ($sta_row..$en_row) {
                 $table[$i-1][$curcol-1] = 'X';
              }
          
        </script>
      </rat>
  </outtext>
</definetag>


<definetag name = "restable" parms = "rows,cols">
   <outtext>
      <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>
  </outtext>
</definetag>


<definetag name = "boka" parms = "arg">
   <meta>
      hhh_ooo = $arg
   </meta>
   <outtext>
      <web>
         Let me know $arg!!!!!
      </web>
      <tex>

      </tex>
  </outtext>
</definetag>


<definetag name = "/boka" parms = "arg">
   <outtext>
      <web>
         Let me know $arg now, now,, now now now!!!!!!!!!!!!!!!!!!!!!!
      </web>
      <tex>

      </tex>
  </outtext>
</definetag>


<definetag name = "InsideTag" parms = "index,title">
   <meta>
       
   </meta>
   <outtext>
      <web>
         <h2> Subsection <FONT COLOR="#FF0000">$index</FONT>: $title </h2>
      </web>
      <tex>
          \Subsection{ $title }
      </tex>
  </outtext>
</definetag>


<definetag name = "/InsideTag">
   <meta>
       
   </meta>
   <outtext>
      <web>
         <h3> This is the final target </h3>
      </web>
      <tex>
          \Subsection{ $title }
      </tex>
  </outtext>
</definetag>

<definetag name = "OutsideTag" parms = "index,title">
   <meta>
       
   </meta>
   <outtext>
      <web>
         <h1> Section <InsideTag> $index </InsideTag>: $title </h1>
      </web>
      <tex>
          \Section{ $title }
      </tex>
  </outtext>
</definetag>


<definetag name = "/restable" parms = "rows,cols">
   <outtext>
      <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>
  </outtext>
</definetag>

