Diff for /loncom/html/adm/help/tex/adaptive_hints.tex between versions 1.3 and 1.4

version 1.3, 2013/07/12 03:02:38 version 1.4, 2013/08/05 14:35:15
Line 1 Line 1
 \label{adaptive_hints}  \label{adaptive_hints}
 \index{hints}\index{conditional hints}\index{adaptive hints}  \index{hints}\index{conditional hints}\index{adaptive hints}
 Hints are placed within \textless hintgroup \textgreater \textless \textbackslash hintgroup\textgreater tags. The first part of the hint is the condition, which includes a specification of the foil(s) and foil answer(s) required to trigger the hint. The answers specified in the hint condition are compared with the user's submission, and if the condition is met, the hint action included in the conditional hint block will be executed (for example this could be the display of a block of text). You can set multiple hint conditions for a particular problem. Hint conditions are identified by a name. The corresponding hint action includes this hint condition name in the "on" parameter. When a hint condition evaluates to true, the corresponding hint action is triggered. Besides providing hint actions within \textless hintpart on="NAME" \textgreater\textless /hintpart \textgreater tags for each named (NAME) hint condition, a hint can be designated for display if none of the conditional hints evaluate to true. The default hint is not displayed if the conditions were met for any of the conditional hints. The default hint action is included between \textless hintpart on="default" \textgreater\textless /hintpart \textgreater tags.  Hints are placed within $<$hintgroup$>$$<$/hintgroup$>$ tags. The first part of the hint is the condition, which includes a specification of the foil(s) and foil answer(s) required to trigger the hint. The answers specified in the hint condition are compared with the user's submission, and if the condition is met, the hint action included in the conditional hint block will be executed (for example this could be the display of a block of text). You can set multiple hint conditions for a particular problem. Hint conditions are identified by a name. The corresponding hint action includes this hint condition name in the ``on'' parameter. When a hint condition evaluates to true, the corresponding hint action is triggered. Besides providing hint actions within $<$hintpart on="NAME"$>$$<$/hintpart$>$ tags for each named (NAME) hint condition, a hint can be designated for display if none of the conditional hints evaluate to true. The default hint is not displayed if the conditions were met for any of the conditional hints. The default hint action is included between $<$hintpart on=``default''$>$$<$/hintpart$>$ tags.
 There are five types of hint condition:  There are five types of hint condition:
   
 \begin{itemize}  \begin{itemize}
Line 15  There are five types of hint condition: Line 15  There are five types of hint condition:
 \begin{enumerate}  \begin{enumerate}
 \item Formula Hint condition  \item Formula Hint condition
   
 The formulahint tag takes three parameters: answer, name, and samples. The "name" is the unique name given to the hint condition. The formula answer for which you wish to provide conditional is included in the answer parameter. The samples parameter includes the points (or range of points) over which sampling of the student's submitted answer and the formula included in the formula hint answer parameter are to be compared. The syntax is the same as used to specify sampling points in the samples parameter of the formula reponse tag itself. The formula submitted by the student is evaluated at the sample points for the hint and the calculated values are compared with the corresponding values determined by evaluating the "hint" answer at the same sampling points. A close correspondence between the two sets of values will trigger the hint action specified in the \textless hintpart \textgreater tag.  The formulahint tag takes three parameters: answer, name, and samples. The ``name'' is the unique name given to the hint condition. The formula answer for which you wish to provide conditional is included in the answer parameter. The samples parameter includes the points (or range of points) over which sampling of the student's submitted answer and the formula included in the formula hint answer parameter are to be compared. The syntax is the same as used to specify sampling points in the samples parameter of the formula reponse tag itself. The formula submitted by the student is evaluated at the sample points for the hint and the calculated values are compared with the corresponding values determined by evaluating the ``hint'' answer at the same sampling points. A close correspondence between the two sets of values will trigger the hint action specified in the $<$hintpart$>$ tag.
 \begin{verbatim}  \begin{verbatim}
 <problem >  <problem>
  <script type="loncapa/perl" ># Enter computations here    <script type="loncapa/perl" ># Enter computations here 
  $x1 = random(2,4,1);   $x1 = random(2,4,1);
  $y1 = random(3,7,1);   $y1 = random(3,7,1);
Line 35  The formulahint tag takes three paramete Line 35  The formulahint tag takes three paramete
  $wrongans = "$inverted*x";   $wrongans = "$inverted*x";
  $wrongans =~ s/\+-/-/g;   $wrongans =~ s/\+-/-/g;
  $wrongans =~ s/-\+/-/g;   $wrongans =~ s/-\+/-/g;
 </script >  </script>
 <startouttext /><p > What is the equation of the line   <startouttext /><p> What is the equation of the line 
 which passess through ($x1,$y1) and ($x2,$y2)?</p > y = <endouttext />  which passess through ($x1,$y1) and ($x2,$y2)?</p > y = <endouttext />
 <formularesponse samples="x@-5:5#11" id="11" answer="$answer" >  <formularesponse samples="x@-5:5#11" id="11" answer="$answer">
  <textline size="25" / >   <textline size="25" />
   <hintgroup >    <hintgroup>
    <formulahint samples="x@-5:5#11" answer="$wrongans" name="inversegrad" >     <formulahint samples="x@-5:5#11" answer="$wrongans" name="inversegrad">
    </formulahint >     </formulahint>
    <hintpart on="inversegrad" >     <hintpart on="inversegrad">
     <startouttext />You have inverted the slope in the question.  Slope is      <startouttext />You have inverted the slope in the question.  Slope is
 (y2-y1)/(x2 - x1) you have the slope as (x2-x1)/(y2-y1).<endouttext / >  (y2-y1)/(x2 - x1) you have the slope as (x2-x1)/(y2-y1).<endouttext />
    </hintpart >     </hintpart>
   </hintgroup >         </hintgroup>
  </formularesponse >   </formularesponse>
 </problem >  </problem>
 \end{verbatim}  \end{verbatim}
   
 \item Numerical Response condition  \item Numerical Response condition
   
 The numericalhint tag takes four parameters: answer, name, unit and format. The "name" is the unique name given to the hint condition. The numerical answer for which you wish to provide conditional is included in the answer parameter. Student submission of that answer in combination with the "unit" parameter in the hint condition will trigger the hint action specified in the \textless hintpart \textgreater tag.  The numericalhint tag takes four parameters: answer, name, unit and format. The ``name'' is the unique name given to the hint condition. The numerical answer for which you wish to provide conditional is included in the answer parameter. Student submission of that answer in combination with the ``unit'' parameter in the hint condition will trigger the hint action specified in the $<$hintpart$>$ tag.
   
 \begin{verbatim}  \begin{verbatim}
 <problem > <startouttext /> A car travels 10 km in 10 min.   <problem> <startouttext /> A car travels 10 km in 10 min. 
  What is the speed of the car?<endouttext />   What is the speed of the car?<endouttext />
   <numericalresponse format="1f" unit="km/hr" answer="60">    <numericalresponse format="1f" unit="km/hr" answer="60">
    <responseparam description="Numerical Tolerance" default="2%"      <responseparam description="Numerical Tolerance" default="2%" 
      type="tolerance" name="tol" />       type="tolerance" name="tol" />
     <textline />      <textline />
     <hintgroup >      <hintgroup>
      <numericalhint format="1f" unit="km/min" answer="100" name="speed">       <numericalhint format="1f" unit="km/min" answer="100" name="speed">
        <responseparam description="Numerical Tolerance" type="tolerance"          <responseparam description="Numerical Tolerance" type="tolerance" 
        default="2%" name="tol" />         default="2%" name="tol" />
      </numericalhint >       </numericalhin >
       <hintpart on="speed">        <hintpart on="speed">
        <startouttext />You multiplied the distance by the time.  Remember          <startouttext />You multiplied the distance by the time.  Remember 
        speed = distance/time<endouttext />         speed = distance/time<endouttext />
       </hintpart >        </hintpart>
      </hintgroup >       </hintgroup>
    </numericalresponse >     </numericalresponse>
 </problem >  </problem>
 \end{verbatim}  \end{verbatim}
   
 \item Option Response Hint condition  \item Option Response Hint condition
   
 There are two types of option response hint conditions: one for standalone foils and one for concept groups. In both cases the option hint tag includes two parameters: answer and name for standalone foils, and concept and name for foils grouped together in a concept group. For the answer parameter, the names and submitted values for each of the foils that are being included in the hint condition are provided in a hash, i.e., in the format: ('Foil1'=\textgreater'True','Foil2'=\textgreater'False'). In the case of a conditional hint for a concept group, the format of the concept parameter is also a hash that links the name of each concept group included in the hint condition to either 'correct' or 'incorrect' - e.g., \textless optionhint concept="('buoyancy'=\textgreater'correct','density'=\textgreater'correct')" name="fluids" / \textgreater If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a student must be correct for the hint action to be triggered. If anything other than 'correct' is provided in the concept hash in the optionhint tag then then students answers will be compared with the set answers for the foils in the concept group and as long as at least one answer is incorrect (i.e., the concept group was not correctly answered) then the corresponding hint action will be triggered.  There are two types of option response hint conditions: one for standalone foils and one for concept groups. In both cases the option hint tag includes two parameters: answer and name for standalone foils, and concept and name for foils grouped together in a concept group. For the answer parameter, the names and submitted values for each of the foils that are being included in the hint condition are provided in a hash, i.e., in the format: ('Foil1'=$>$'True','Foil2'=$>$'False'). In the case of a conditional hint for a concept group, the format of the concept parameter is also a hash that links the name of each concept group included in the hint condition to either 'correct' or 'incorrect' - e.g., $<$optionhint concept="('buoyancy'=$>$'correct','density'=$>$'correct')" name=``fluids'' /$>$ If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a student must be correct for the hint action to be triggered. If anything other than 'correct' is provided in the concept hash in the optionhint tag then then students answers will be compared with the set answers for the foils in the concept group and as long as at least one answer is incorrect (i.e., the concept group was not correctly answered) then the corresponding hint action will be triggered.
   
 \begin{enumerate}  \begin{enumerate}
  \item optionresponse   \item optionresponse
 \begin{verbatim}  \begin{verbatim}
 <problem >  <problem>
  <startouttext />For each of the following rock types, indicate    <startouttext />For each of the following rock types, indicate 
   whether or not the rock is a volcanic rock.<endouttext / >    whether or not the rock is a volcanic rock.<endouttext />
  <optionresponse max="10" randomize="yes" >   <optionresponse max="10" randomize="yes">
   <foilgroup options="('Yes','No')" >    <foilgroup options="('Yes','No')" >
    <foil location="random" value="No" name="schist" >     <foil location="random" value="No" name="schist">
     <startouttext />Schist<endouttext / >      <startouttext />Schist<endouttext />
    </foil >     </foil>
    <foil location="random" value="No" name="marble" >     <foil location="random" value="No" name="marble">
     <startouttext />Marble<endouttext / >      <startouttext />Marble<endouttext />
    </foil >     </foil>
    <foil location="random" value="Yes" name="basalt" >     <foil location="random" value="Yes" name="basalt">
     <startouttext />Basalt<endouttext / >      <startouttext />Basalt<endouttext />
    </foil >     </foil>
    <foil location="random" value="No" name="gabbro" >     <foil location="random" value="No" name="gabbro">
     <startouttext />Gabbro<endouttext />      <startouttext />Gabbro<endouttext />
    </foil >     </foil>
    <foil location="random" value="No" name="granite" >     <foil location="random" value="No" name="granite">
     <startouttext />Granite<endouttext />      <startouttext />Granite<endouttext />
    </foil >     </foil>
   </foilgroup >    </foilgroup >
   <hintgroup >    <hintgroup >
    <optionhint answer="('schist'=>'Yes','marble'=>'Yes')"      <optionhint answer="('schist'=>'Yes','marble'=>'Yes')" 
      name="metamorphic"/ >       name="metamorphic"/>
    <optionhint answer="('gabbro'=>'Yes','granite'=>'Yes')"      <optionhint answer="('gabbro'=>'Yes','granite'=>'Yes')" 
      name="plutonic" / >       name="plutonic" />
    <hintpart on="metamorphic">     <hintpart on="metamorphic">
     <startouttext />Schist and Marble are both examples of       <startouttext />Schist and Marble are both examples of 
       metamorphic rocks as described on page 2 of the textbook.        metamorphic rocks as described on page 2 of the textbook.
       <br / ><br / ><endouttext / >        <br /><br /><endouttext />
    </hintpart >     </hintpart>
    <hintpart on="plutonic" >     <hintpart on="plutonic">
     <startouttext />Granite and Gabbro are both examples of       <startouttext />Granite and Gabbro are both examples of 
      igneous rocks that crystallized beneath the surface, i.e.,        igneous rocks that crystallized beneath the surface, i.e., 
      they are plutonic rocks.<br / ><br / ><endouttext / >       they are plutonic rocks.<br /><br /><endouttext />
    </hintpart >     </hintpart>
    <hintpart on="default" >     <hintpart on="default" >
     <startouttext />Volcanic rocks are described on page 22       <startouttext />Volcanic rocks are described on page 22 
      of the textbook.<endouttext / >       of the textbook.<endouttext />
    </hintpart >     </hintpart>
   </hintgroup >    </hintgroup>
  </optionresponse >   </optionresponse>
 </problem >  </problem>
 \end{verbatim}  \end{verbatim}
   
 \item optionresponse with concept groups  \item optionresponse with concept groups
   
 \begin{verbatim}  \begin{verbatim}
 <problem >  <problem>
  <startouttext />Choose the likely plate boundary type,    <startouttext />Choose the likely plate boundary type, 
   where you are most likely to encounter each of the following     where you are most likely to encounter each of the following 
   geologic features or phenomena.<endouttext / >    geologic features or phenomena.<endouttext />
  <optionresponse max="10" randomize="yes" >   <optionresponse max="10" randomize="yes">
    <foilgroup options="('Convergent','Divergent','Transform')" >     <foilgroup options="('Convergent','Divergent','Transform')" >
      <conceptgroup concept="faulting" >       <conceptgroup concept="faulting">
        <foil name="normal" value="Divergent" >         <foil name="normal" value="Divergent">
          <startouttext / >Normal faults<endouttext / >            <startouttext / >Normal faults<endouttext /> 
        </foil >         </foil>
        <foil name="strike" value="Transform" >         <foil name="strike" value="Transform">
          <startouttext / >Strike-slip faults<endouttext />           <startouttext / >Strike-slip faults<endouttext />
        </foil >         </foil>
        <foil name="thrust" value="Convergent" >         <foil name="thrust" value="Convergent">
          <startouttext />Thrust faults<endouttext />           <startouttext />Thrust faults<endouttext />
        </foil >         </foil>
      </conceptgroup >       </conceptgroup>
      <conceptgroup concept="earthquakes" >       <conceptgroup concept="earthquakes">
        <foil name="deep" value="Convergent" >         <foil name="deep" value="Convergent">
          <startouttext / >Large Magntitude, deep and intermediate            <startouttext / >Large Magntitude, deep and intermediate 
           focus earthquakes<endouttext / >            focus earthquakes<endouttext />
        </foil >         </foil>
        <foil name="shallow" value="Transform" >         <foil name="shallow" value="Transform">
          <startouttext / >Large magnitude, shallow focus earthquakes           <startouttext / >Large magnitude, shallow focus earthquakes
           <endouttext />            <endouttext />
        </foil >         </foil>
       <foil name="lowmag" value="Divergent" >        <foil name="lowmag" value="Divergent">
          <startouttext / >Low magnitude shallow focus earthquakes           <startouttext / >Low magnitude shallow focus earthquakes
           <endouttext />            <endouttext />
        </foil >         </foil>
      </conceptgroup >       </conceptgroup>
      <conceptgroup concept="topography" >       <conceptgroup concept="topography">
        <foil name="gentle" value="Divergent" >         <foil name="gentle" value="Divergent">
          <startouttext / >Broad area of elevated topography with a            <startouttext / >Broad area of elevated topography with a 
           central rift valley.<endouttext / >            central rift valley.<endouttext />
        </foil >         </foil>
        <foil name="linear" value="Transform" >         <foil name="linear" value="Transform">
          <startouttext / >A narrow linear fault zone with limited            <startouttext / >A narrow linear fault zone with limited 
           topgraphic expression.<endouttext / >            topgraphic expression.<endouttext />
        </foil >         </foil>
        <foil name="trench" value="Convergent" >         <foil name="trench" value="Convergent">
          <startouttext />A deep trench adjacent to a volcanic arc.           <startouttext />A deep trench adjacent to a volcanic arc.
           <endouttext / >            <endouttext />
        </foil >         </foil>
      </conceptgroup >       </conceptgroup>
      <conceptgroup concept="volcanism" >       <conceptgroup concept="volcanism">
        <foil name="explosize" value="Convergent" >         <foil name="explosize" value="Convergent">
          <startouttext />Explosive volcanism involving volatile-rich            <startouttext />Explosive volcanism involving volatile-rich 
            viscous magma.<endouttext / >             viscous magma.<endouttext />
        </foil >         </foil>
        <foil name="fluid" value="Divergent" >         <foil name="fluid" value="Divergent">
          <startouttext />Non-explosive outpourings of low-viscosity            <startouttext />Non-explosive outpourings of low-viscosity 
            magma.<endouttext / >             magma.<endouttext />
        </foil >         </foil>
        <foil name="nonvolcanic" value="Transform" >         <foil name="nonvolcanic" value="Transform">
          <startouttext />No volcanic activity.<endouttext / >           <startouttext />No volcanic activity.<endouttext />
        </foil >         </foil>
      </conceptgroup >       </conceptgroup>
    </foilgroup >     </foilgroup>
    <hintgroup >     <hintgroup>
      <optionhint concept="('earthquakes' => 'incorrect')"        <optionhint concept="('earthquakes' => 'incorrect')" 
        name="quakes" / >         name="quakes" />
      <optionhint concept="('volcanism' => 'incorrect')"        <optionhint concept="('volcanism' => 'incorrect')" 
        name="volcactivity" / >         name="volcactivity" />
      <optionhint concept="('topography' => 'incorrect')"        <optionhint concept="('topography' => 'incorrect')" 
        name="relief" / >         name="relief" />
      <hintpart on="volcanism" >       <hintpart on="volcanism">
        <startouttext />Volcanism requires a source of magma.          <startouttext />Volcanism requires a source of magma. 
         Magma can be generated by either a depression in the solidus           Magma can be generated by either a depression in the solidus 
         caused by an influx of volatiles, or by decompression melting.           caused by an influx of volatiles, or by decompression melting. 
         Magma rich in volatiles tends to cause explosive volcanism.          Magma rich in volatiles tends to cause explosive volcanism.
         <endouttext / >          <endouttext />
      </hintpart >       </hintpart>
      <hintpart on="quakes" >       <hintpart on="quakes">
        <startouttext />Earthquakes require brittle failure, so there          <startouttext />Earthquakes require brittle failure, so there 
         is a correlation between the depth of earthquake foci and the           is a correlation between the depth of earthquake foci and the 
         geotherm.  The geotherm is depressed in subduction zones, and           geotherm.  The geotherm is depressed in subduction zones, and 
         elevated at mid-ocean ridges.<endouttext / >          elevated at mid-ocean ridges.<endouttext />
      </hintpart >       </hintpart>
      <hintpart on="relief" >       <hintpart on="relief">
        <startouttext / >On a broad scale topography is an expression          <startouttext />On a broad scale topography is an expression 
         of density variation, as embodied in the concept of isostasy.            of density variation, as embodied in the concept of isostasy.  
         Density variation in the earth is a function of temperature and           Density variation in the earth is a function of temperature and 
         composition.  Cold oceanic crust entering a subduction zone is           composition.  Cold oceanic crust entering a subduction zone is 
         dense, whereas as magma is buoyant and of lower density.          dense, whereas as magma is buoyant and of lower density.
         <br / ><br / ><endouttext / >          <br /><br /><endouttext />
      </hintpart >       </hintpart>
     <hintpart on="default" >      <hintpart on="default">
      <startouttext / >The characteristics of plate boundaries are        <startouttext />The characteristics of plate boundaries are 
        described on page 52 of the textbook.<endouttext / >         described on page 52 of the textbook.<endouttext />
     </hintpart >      </hintpart>
    </hintgroup >     </hintgroup>
  </optionresponse >   </optionresponse>
 </problem >  </problem>
 \end{verbatim}  \end{verbatim}
 \end{enumerate}  \end{enumerate}
   
Line 236  the name of the hint condition, and the Line 236  the name of the hint condition, and the
       
 \begin{verbatim}  \begin{verbatim}
  <radiobuttonhint answer="('foil','granite','gabbro')"   <radiobuttonhint answer="('foil','granite','gabbro')"
 name="igneous" ></radiobuttonhint >  name="igneous"></radiobuttonhint>
   \end{verbatim}
   
   In order to trigger display of this hint you also need to create a    In order to trigger display of this hint you also need to create a
 <hintpart ></hintpart > block that will include a textblock that   $<$hintpart$>$$<$/hintpart$>$ block that will include a textblock that 
   contains the text of the actual hint.    contains the text of the actual hint.
  <hintpart on="igneous" >  
   \begin{verbatim}
    <hintpart on="igneous">
   <startouttext />This type of rock is composed of interlocking     <startouttext />This type of rock is composed of interlocking 
    crystals, a characteristic of igneous rocks.<endouttext / >     crystals, a characteristic of igneous rocks.<endouttext />
  </hintpart >   </hintpart>
 \end{verbatim}  \end{verbatim}
   
   The complete radiobutton response would look as follows:    The complete radiobutton response would look as follows:
     
 \begin{verbatim}  \begin{verbatim}
 <problem >  <problem>
  <startouttext />   <startouttext />
  Which of the following is a sedimentary rock?   Which of the following is a sedimentary rock?
  <endouttext />   <endouttext />
   
  <radiobuttonresponse max="3" randomize="yes" >   <radiobuttonresponse max="3" randomize="yes">
    <foilgroup >     <foilgroup>
      <foil location="random" value="false" name="granite" >       <foil location="random" value="false" name="granite">
     <startouttext / >      <startouttext />
      Granite       Granite
     <endouttext / >      <endouttext />
    </foil >     </foil>
   
    <foil location="random" value="false" name="gabbro" >     <foil location="random" value="false" name="gabbro">
     <startouttext / >      <startouttext />
      Gabbro       Gabbro
     <endouttext / >      <endouttext />
    </foil >     </foil>
   
    <foil location="random" value="false" name="schist">     <foil location="random" value="false" name="schist">
     <startouttext / >      <startouttext />
      Schist       Schist
     <endouttext />      <endouttext />
    </foil >     </foil>
   
    <foil location="random" value="false" name="gneiss" >     <foil location="random" value="false" name="gneiss">
     <startouttext / >      <startouttext />
      Gneiss       Gneiss
     <endouttext / >      <endouttext />
    </foil >     </foil>
   
    <foil location="random" value="true" name="shale" >     <foil location="random" value="true" name="shale">
     <startouttext / >      <startouttext />
      Shale       Shale
     <endouttext / >      <endouttext />
    </foil >     </foil>
       <foil location="random" value="true" name="sandstone" >        <foil location="random" value="true" name="sandstone">
     <startouttext / >      <startouttext />
      Sandstone       Sandstone
     <endouttext / >      <endouttext />
    </foil >     </foil>
   
   </foilgroup >    </foilgroup>
   <hintgroup >    <hintgroup>
    <radiobuttonhint answer="('foil','granite','gabbro')"     <radiobuttonhint answer="('foil','granite','gabbro')"
 name="igneous" ></radiobuttonhint >  name="igneous" ></radiobuttonhint>
    <radiobuttonhint answer="('foil','gneiss','schist')"     <radiobuttonhint answer="('foil','gneiss','schist')"
 name="metamorphic" ></radiobuttonhint >  name="metamorphic"></radiobuttonhint>
   
    <hintpart on="igneous" >     <hintpart on="igneous">
     <startouttext />This type of rock is composed of interlocking       <startouttext />This type of rock is composed of interlocking 
       crystals, a characteristic of igneous rocks.<br / ><br / ><endouttext / >        crystals, a characteristic of igneous rocks.<br /><br /><endouttext />
    </hintpart >     </hintpart>
    <hintpart on="metamorphic" >     <hintpart on="metamorphic">
     <startouttext />This type of rock is composed of oriented crystals, a      <startouttext />This type of rock is composed of oriented crystals, a
 characteristic of foliated metamorphic rocks.<endouttext / >  characteristic of foliated metamorphic rocks.<endouttext />
    </hintpart >     </hintpart>
   </hintgroup >    </hintgroup>
  </radiobuttonresponse >   </radiobuttonresponse>
 </problem >  </problem>
 \end{verbatim}  \end{verbatim}
   
 \item String Hint condition  \item String Hint condition
Line 316  characteristic of foliated metamorphic r Line 320  characteristic of foliated metamorphic r
 The radiobutton hint tag takes two parameters: answer and name. The name is the name of the hint condition, and the answer is a text string. The type parameter allows you to choose between case sensitive, case insensitive, and case insensitive in any order. A simple example is shown below.  The radiobutton hint tag takes two parameters: answer and name. The name is the name of the hint condition, and the answer is a text string. The type parameter allows you to choose between case sensitive, case insensitive, and case insensitive in any order. A simple example is shown below.
   
 \begin{verbatim}  \begin{verbatim}
 <problem >  <problem>
  <startouttext />Which US state has Lansing as its capital?<endouttext / >   <startouttext />Which US state has Lansing as its capital?<endouttext />
   <stringresponse answer="Michigan" type="ci" >    <stringresponse answer="Michigan" type="ci">
   <textline size="20" / >    <textline size="20" />
   <hintgroup >    <hintgroup>
    <stringhint answer="wisconsin" type="cs" name="wisc" >     <stringhint answer="wisconsin" type="cs" name="wisc">
    </stringhint >     </stringhint>
    <stringhint answer="minnesota" type="cs" name="minn" >     <stringhint answer="minnesota" type="cs" name="minn">
    </stringhint >     </stringhint>
    <hintpart on="wisc">     <hintpart on="wisc">
     <startouttext />The state capital of Wisconsin is Madison.<endouttext / >      <startouttext />The state capital of Wisconsin is Madison.<endouttext />
    </hintpart >     </hintpart>
    <hintpart on="minn">     <hintpart on="minn">
     <startouttext />The state capital of Minnesota is St. Paul.<endouttext / >      <startouttext />The state capital of Minnesota is St. Paul.<endouttext />
    </hintpart >     </hintpart>
    <hintpart on="default" >     <hintpart on="default"> 
     <startouttext />The state you are looking for is also known as the       <startouttext />The state you are looking for is also known as the 
      'Great Lakes State'<endouttext / >       'Great Lakes State'<endouttext />
    </hintpart >          </hintpart>     
   </hintgroup >    </hintgroup>
  </stringresponse >   </stringresponse>
 </problem >   </problem> 
 \end{verbatim}  \end{verbatim}
   
 \end{enumerate}  \end{enumerate}

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>