Hi Doug,

I think the issue has to do with forcing the use of the math renderung. It 
works for me when I omit the math display attribute as Peter suggested, and I 
set MathJax as the preferred method of math display in my user preferences in 
the authoring space. For all the courses I manage, I also set the default math 
display to MathJax and so far no students are having issues with the math 
display.

Yuk Tung Liu
E-Learning Specialist 
Department of Statistics
University of Illinois



________________________________________
From: lon-capa-users-boun...@mail.lon-capa.org 
[lon-capa-users-boun...@mail.lon-capa.org] on behalf of Mills, Douglas G 
[dmi...@illinois.edu]
Sent: Thursday, October 19, 2017 9:16 AM
To: Discussion list for LON-CAPA users
Cc: Mills, Douglas G
Subject: Re: [LON-CAPA-users] Interaction between jsMath or LaTeX and 
randomized multiple choice answers??

Hi All,

I've substituted MathJax for jsMath and tested and am actually getting the same 
results.  IF I set the max number of options to show to 6 then all 6 show every 
randomization.  If I leave it as given below though with the max number of 
options to show set to 4, then for a number of combinations, the LaTeX does not 
display at all. I keep looking to see if I can discern a pattern and I cannot; 
however, it does seem to be consistent. The following selections and orders in 
my testing when they are chosen as 4 out of 6, will not display the LaTeX:

6324
5624
2546
3564
5362
5263

The following orderings, some of which contain similar combinations do display 
the LaTeX

4621
4612
1465
1264
5261

This is all with the display set to MathJax rather than jsMath.

Is there an error in the LaTeX code?  Is there some nasty interaction between 
LaTeX and the choosing and ordering of a random number of prompts for an 
optionresponse?


Doug

Douglas Mills
Director of Instructional Technology
Department of Chemistry
University of Illinois




On 10/19/17, 8:57 AM, "Mills, Douglas G" <dmi...@illinois.edu> wrote:

    Thanks Peter. Yes, these are older problems and to be honest, I wasn't 
remembering which system, jsMath or MathJax was the newer option.  I had seen 
the note about fonts but since the problems appear at least half the time had 
figured it couldn't be missing fonts.  I will explore these additional options. 
Thank you for your help!


    Doug

    Douglas Mills
    Director of Instructional Technology
    Department of Chemistry
    University of Illinois




    On 10/18/17, 8:41 PM, "lon-capa-users-boun...@mail.lon-capa.org on behalf 
of Peter Dencker" <lon-capa-users-boun...@mail.lon-capa.org on behalf of 
denc...@math.uni-luebeck.de> wrote:


        As noted in the manual, setting the attribute display to jsmath is
        generally discouraged as it requires users to have installed jsmath
        fonts on their computer.
        (https://loncapa.msu.edu/adm/help/Authoring_Output_Tags.hlp)

        The last release of jsMath was more than 4 years ago. It was succeeded
        by MathJax. Forcing the use of this math rendering engine with <m
        display="MathJax"> seems to work in your example.

        The math rendering can be selected by the user or the course
        coordinator. Using your example without the display attribute in <m> ..
        </m> and forcing the jsMath math rendering as course coordinator seems
        to work. But using your example with display attribute "MathJax" and
        forcing the jsMath math rendering as course coordinator does not. I
        would like to recommend to omit the display attribute in <m> .. </m>.

        - Peter

        Am 18.10.2017 um 20:00 schrieb Mills, Douglas G:
        > HI All,
        >
        > Below is code for a problem that is acting quite strangely.  If you 
put this into your authoring space and hit new randomization a few times, 
you'll see that in some instances the LaTeX doesn't display at all for any of 
the answers. I added the "1:" etc. at the front of each one to try to get a 
handle on what was happening. I'm seeing that in some combinations of four, 
such as 6532, 3265, 6432, 4365 and 3625 (and some others), the LaTeX does not 
show.  Noticing that several of the combinations involved 2,3,5 and 6, I 
removed options 1 and 4 and left the rest of the code as is.  Under those 
conditions, even the combinations that do not appear when there are 6 options 
to choose from (6532 for example) DOES appear when there are only 4 options to 
be chosen from.  This leads me to suspect that there is some type of 
interaction going on between the LaTeX and the choosing of 4 out of 6 options 
in the problem below.
        >
        > Maybe I'm missing something obvious?  All help appreciated!
        >
        > Doug
        >
        > <problem>
        > Which of the following are variations of the ideal gas law?
        > <optionresponse id="14" randomize="yes" max="4">
        >     <foilgroup checkboxoptions="nochoice" options="('True','False')" 
checkboxvalue="True">
        >
        >         <foil value="True" name="Foil1">
        >             <startouttext />1: <m display="jsMath">$V = 
\frac{nRT}{P}$</m><br/><endouttext />
        >         </foil>
        >         <foil name="Foil2" value="True">
        >             <startouttext />2: <m display="jsMath">$P = 
\frac{nRT}{V}$</m><br/><endouttext />
        >         </foil>
        >          <foil value="True" name="Foil3">
        >             <startouttext />3: <m display="jsMath">$n = 
\frac{PV}{RT}$</m><br/><endouttext />
        >         </foil>
        >        <foil value="True" name="Foil4">
        >             <startouttext />4: <m display="jsMath">$T = 
\frac{PV}{nR}$</m><br/><endouttext />
        >         </foil>
        >         <foil value="True" name="Foil5">
        >             <startouttext />5: <m display="jsMath">$R = 
\frac{PV}{nT}$</m><br/><endouttext />
        >         </foil>
        >         <foil name="Foil6" value="True">
        >             <startouttext />6: <m display="jsMath">$PV = 
nRT$</m><br/><endouttext />
        >         </foil>
        >
        >     </foilgroup>
        > </optionresponse>
        >
        > </problem>
        >
        >
        >
        >
        > _______________________________________________
        > LON-CAPA-users mailing list
        > LON-CAPA-users@mail.lon-capa.org
        > http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
        >


        --
        Dr. Peter Dencker
            wissenschaftl. Mitarbeiter

        UNIVERSITÄT ZU LÜBECK
            INSTITUT FÜR MATHEMATIK

            Ratzeburger Allee 160
            23562 Lübeck

            denc...@math.uni-luebeck.de

            www.math.uni-luebeck.de
        _______________________________________________
        LON-CAPA-users mailing list
        LON-CAPA-users@mail.lon-capa.org
        http://mail.lon-capa.org/mailman/listinfo/lon-capa-users




_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

Reply via email to