[LON-CAPA-users] A couple of questions on the use of "foils".

Robley Light lon-capa-users@mail.lon-capa.org
Tue, 11 Oct 2005 10:57:31 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_001F_01C5CE52.96ECF940
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

 Thanks, Guy.  

I see now that the <drawoptionlist /> is just designed to place the drop
down list somewhere in the question other than at the beginning.

Looks like your answer to my other question about <randomlist> can apply for
what I want to do here as well (I had done a search on <randomlist> instead
of randomlist on the author manual.).  I just need to use more than one
<optionresponse> group and surround them by the <randomlist>.

The attached example seems to work.  Do you see anything wrong with it?

Robley


*************************************************************
Robley J. Light                         Professor of Chemistry and
Biochemistry
Department of Chemistry          Phone:   (850) 644-3844
   and Biochemistry                   Email:  rlight@chem.fsu.edu  
Florida State University             Fax:      (850) 644-8281
Tallahassee, FL 32306-4390    Home Page:
http://www.chem.fsu.edu/editors/rlight   
                    

 

> -----Original Message-----
> From: lon-capa-users-admin@mail.lon-capa.org 
> [mailto:lon-capa-users-admin@mail.lon-capa.org] On Behalf Of 
> Guy Albertelli II
> Sent: Monday, October 10, 2005 6:19 PM
> To: lon-capa-users@mail.lon-capa.org
> Subject: Re: [LON-CAPA-users] A couple of questions on the 
> use of "foils".
> 
> Hi Robley<
> 
> > I note in the author's manual the following:
> > "By default, the list of options is presented in front of 
> the foils. 
> > Using the optional <drawoptionlist /> tag, the list of 
> options can be 
> > embedded into the foil."
> > 
> > What is the syntax for embedding the list in the foil?  i.e. in the 
> > template foil
> > 
> 
> <foil location="random" value="Green" name="Foil1">
>   <startouttext />
>      This is foil One. It is currently set to
>      "Green." You should pick Green in this list : 
> <drawoptionlist /> if
>      you want to get this question correct.
>   <endouttext />
> </foil>
> 
> 
> > This leads to the question of whether it is possible to 
> have a group 
> > of foils, some (or all) of which have different values in 
> their drop 
> > down lists?
> 
> No. This is not currently possible in a single <optionresponse>.
> 
> 
> -- 
> guy@albertelli.com   0-7-2-1-27,137
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
> 

------=_NextPart_000_001F_01C5CE52.96ECF940
Content-Type: text/plain;
	name="option response random sets.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="option response random sets.txt"

<problem><startouttext />Type Question Here.<endouttext />

<randomlist show=3D"3">
<optionresponse max=3D"1" randomize=3D"yes">
    <foilgroup options=3D"('Green','Red')">
<foil location=3D"random" value=3D"Green" name=3D"Foil1">
<startouttext />This is foil One. It is currently set to =
"Green."<endouttext />
</foil>
<foil location=3D"random" value=3D"Red" name=3D"Foil2">
<startouttext />This is foil Two. It is currently set to =
"Red."<endouttext />
</foil>
<foil location=3D"random" value=3D"Green" name=3D"Foil3">
<startouttext />This is foil Three. It is currently set to =
"Green."<endouttext />
</foil>
<foil location=3D"random" value=3D"Red" name=3D"Foil4">
<startouttext />This is foil Two. It is currently set to =
"Red."<endouttext />
</foil>
    </foilgroup>
    <hintgroup><startouttext /><endouttext />
    </hintgroup>
</optionresponse>
<optionresponse max=3D"1" randomize=3D"yes">
    <foilgroup options=3D"('Orange','Blue')">
<foil location=3D"random" value=3D"Orange" name=3D"Foil5">
<startouttext />This is foil Five. It is currently set to =
"Orange."<endouttext />
</foil>
<foil location=3D"random" value=3D"Blue" name=3D"Foil6">
<startouttext />This is foil six. It is currently set to =
"Blue."<endouttext />
</foil>
<foil location=3D"random" value=3D"Orange" name=3D"Foil7">
<startouttext />This is foil Three. It is currently set to =
"Orange."<endouttext />
</foil>
<foil location=3D"random" value=3D"Blue" name=3D"Foil8">
<startouttext />This is foil eight. It is currently set to =
"Blue."<endouttext />
</foil>
    </foilgroup>
    <hintgroup><startouttext /><endouttext />
    </hintgroup>
</optionresponse>
<optionresponse max=3D"1" randomize=3D"yes">
    <foilgroup options=3D"('Garnet','Gold')">
<foil location=3D"random" value=3D"Garnet" name=3D"Foil9">
<startouttext />This is foil nine. It is currently set to =
"Garnet."<endouttext />
</foil>
<foil location=3D"random" value=3D"Gold" name=3D"Foil10">
<startouttext />This is foil ten. It is currently set to =
"Gold."<endouttext />
</foil>
<foil location=3D"random" value=3D"Garnet" name=3D"Foil11">
<startouttext />This is foil eleven. It is currently set to =
"Garnet."<endouttext />
</foil>
<foil location=3D"random" value=3D"Gold" name=3D"Foil12">
<startouttext />This is foil twelve. It is currently set to =
"Gold."<endouttext />
</foil>
    </foilgroup>
    <hintgroup><startouttext /><endouttext />
    </hintgroup>
</optionresponse>
<optionresponse max=3D"1" randomize=3D"yes">
    <foilgroup options=3D"('Grey','White')">
<foil location=3D"random" value=3D"Grey" name=3D"Foil13">
<startouttext />This is foil nine. It is currently set to =
"Grey."<endouttext />
</foil>
<foil location=3D"random" value=3D"White" name=3D"Foil14">
<startouttext />This is foil ten. It is currently set to =
"White."<endouttext />
</foil>
<foil location=3D"random" value=3D"Grey" name=3D"Foil15">
<startouttext />This is foil eleven. It is currently set to =
"Grey."<endouttext />
</foil>
<foil location=3D"random" value=3D"White" name=3D"Foil16">
<startouttext />This is foil twelve. It is currently set to =
"White."<endouttext />
</foil>
    </foilgroup>
    <hintgroup><startouttext /><endouttext />
    </hintgroup>
</optionresponse>

</randomlist>
</problem>

------=_NextPart_000_001F_01C5CE52.96ECF940--