[LON-CAPA-cvs] cvs: modules /matthew/DQC DQC.sty

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 25 May 2004 19:56:26 -0000


matthew		Tue May 25 15:56:26 2004 EDT

  Added files:                 
    /modules/matthew/DQC	DQC.sty 
  Log:
  Style file for DQC project.
  
  

Index: modules/matthew/DQC/DQC.sty
+++ modules/matthew/DQC/DQC.sty
<!--
  Contents:
    DQCcenter
          Provides html to center the 
    DQCouterheader
          Outputs the path on a resource when it is printed.
    DQCheader
    DQCsubheader
    DQCfooter 
 -->

<definetag name="DQCcenter">
    <render>
        <web>
<script type="loncapa/perl">
$centercommand = '<div style="width: 500px; padding: 0% 15% 0% 15%;">';
if (&EXT('browser.type') eq 'mozilla' && &EXT('browser.version') <= 4.8) {
    $centercommand = '<center><table><tr><td>';
}
</script>
$centercommand
       </web>
        <tex></tex>
    </render>
</definetag>
<definetag name="/DQCcenter">
    <render>
        <web>
<script type="loncapa/perl">
$endcentercommand = '</div>';
if (&EXT('browser.type') eq 'mozilla' && &EXT('browser.version') <= 4.8) {
    $endcentercommand = '</td></tr></table></center>';
}
</script>
$endcentercommand
        </web>
        <tex></tex>
    </render>
</definetag>

<definetag name="DQCouterheader">
    <render>
        <web>
        </web>
        <tex>
<script type="loncapa/perl">
    $DQCpath='';
    if (&EXT('user.domain') =~ /^(msu|103)$/){
        if (&EXT('user.name') =~ m/^(andya    | turtle |
                                     ebertmay |
                                     sibley   |
                                     kortemey |
                                     merrill3 |
                                     limhj    |
                                     linlond  |
                                     heidema2 |
                                     parker13 |
                                     reckase  |
                                     hallmat3)/x) {
            my $uri = &EXT('request.uri');
            $uri =~ s:^/~:/home/:;
            $DQCpath.=' \verb|'.$uri.' | \vskip 0 mm';
        }
    }
</script>
\bf{<displaytitle />}
$DQCpath
        </tex>
    </render>
</definetag>
<definetag name="/DQCouterheader">
    <render>
        <web></web>
        <tex></tex>
    </render>
</definetag>

<definetag name="DQCmeta">
    <render>
        <web>
<table>
<tr><th align="right"><nobr>Question ID</nobr></th><td>$Meta{'Question ID'}</td>
    <th align="right"><nobr>Answer</nobr></th><td>$Meta{'Answer'}</td></tr>
<tr><th align="right"><nobr>Class</nobr></th><td>$Meta{'Class'}</td>
    <th align="right"><nobr>Class 1</nobr></th><td>$Meta{'Class 1'}</td></tr>
<tr><th align="right"><nobr>Class 2</nobr></th><td>$Meta{'Class 2'}</td>
    <th align="right"><nobr>Class 3</nobr></th><td>$Meta{'Class 3'}</td></tr>
<tr><th align="right"><nobr>Created Date</nobr></th><td>$Meta{'Created Date'}</td>
    <th align="right"><nobr>Data File</nobr></th><td>$Meta{'Data File'}</td></tr>
<tr><th align="right"><nobr>Developer</nobr></th><td>$Meta{'Developer'}</td>
    <th align="right"><nobr>Instructor 2</nobr></th><td>$Meta{'Instructor 2'}</td></tr>
<tr><th align="right"><nobr>Instructor 3</nobr></th><td>$Meta{'Instructor 3'}</td>
    <th align="right"><nobr>Instructor1</nobr></th><td>$Meta{'Instructor1'}</td></tr>
<tr><th align="right"><nobr>Level</nobr></th><td>$Meta{'Level'}</td>
    <th align="right"><nobr>Model Elements</nobr></th><td>$Meta{'Model Elements'}</td></tr>
<tr><th align="right"><nobr>Question type</nobr></th><td>$Meta{'Question type'}</td>
    <th align="right"><nobr>Result</nobr></th><td>$Meta{'Result'}</td></tr>
<tr><th align="right"><nobr>System</nobr></th><td>$Meta{'System'}</td>
    <th align="right"><nobr>Test 1</nobr></th><td>$Meta{'Test 1'}</td></tr>
<tr><th align="right"><nobr>Test 2</nobr></th><td>$Meta{'Test 2'}</td>
    <th align="right"><nobr>Test 3</nobr></th><td>$Meta{'Test 3'}</td></tr>
<tr><th align="right"><nobr>Test Date</nobr></th><td>$Meta{'Test Date'}</td>
    <th align="right"><nobr>Test Date1</nobr></th><td>$Meta{'Test Date1'}</td></tr>
<tr><th align="right"><nobr>Test Date2</nobr></th><td>$Meta{'Test Date2'}</td>
    <th align="right"><nobr>Test Date3</nobr></th><td>$Meta{'Test Date3'}</td></tr>
<tr><th align="right"><nobr>Topic</nobr></th><td>$Meta{'Topic'}</td>
    <th align="right"><nobr>Type</nobr></th><td>$Meta{'Type'}</td></tr>
</table>
        </web>
        <tex>
\begin{tabular}{rlrl}
\textit{Question ID}&$Meta{'Question ID'}&\textit{Topic}&$Meta{'Topic'} \\
\textit{Level}&$Meta{'Level'}&\textit{Developer}&$Meta{'Developer'} \\ 
\textit{Model Elements}&$Meta{'Model Elements'}&\textit{System}&$Meta{'System'} \\ 
\textit{Created Date}&$Meta{'Created Date'}&\textit{Data File}&$Meta{'Data File'} \\ 
\textit{Question type}&$Meta{'Question type'} &\textit{Answer}&$Meta{'Answer'} \\
\textit{Result}&$Meta{'Result'} & & \\ 
\strut
\end{tabular}
\par
\begin{tabular}{crrrr}
&\textit{Class}&\textit{Instuctor}&\textit{Test}\textit{Test Date} \\
1&$Meta{'Class 1'}&$Meta{'Instructor1'}&$Meta{'Test 1'}&$Meta{'Test Date1'} \\ 
2&$Meta{'Class 2'}&$Meta{'Instructor 2'}&$Meta{'Test 2'}&$Meta{'Test Date2'} \\ 
3&$Meta{'Class 3'}&$Meta{'Instructor 3'}&$Meta{'Test 3'}&$Meta{'Test Date3'} \\ 
\strut
\end{tabular}
        </tex>
    </render>
</definetag>
<definetag name="/DQCmeta">
    <render>
        <web></web>
        <tex></tex>
    </render>
</definetag>

<definetag name="DQCheader">
    <render>
        <web></web>
        <tex></tex>
    </render>
</definetag>
<definetag name="/DQCheader">
    <render>
        <web></web>
        <tex></tex>
    </render>
</definetag>

<definetag name="DQCsubheader">
    <render>
        <web></web>
        <tex></tex>
    </render>
</definetag>
<definetag name="/DQCsubheader">
    <render>
        <web></web>
        <tex></tex>
    </render>
</definetag>

<definetag name="DQCfooter">
   <render>
      <tex>
<p><center>Michigan State University Copyright &copy; 2004.  All rights reserved.</center></p>
      </tex>
      <web>
<p align="center">
  <font face="verdana,geneva,arial" color="#0000AA">
    Michigan State University 
    <br />
    Copyright &copy; 2004. All rights reserved. 
  </font>
</p>
       </web>
   </render>
</definetag>
<definetag name="/DQCfooter">
   <render><web></web><tex></tex></render>
</definetag>

<definetag name="/problem">
   <render>
   <tex>\end{minipage}\newpage</tex>
   </render>
</definetag>