[LON-CAPA-admin] [External] tex rendering problem?

Lucas, Mark lucasm at ohio.edu
Wed Sep 7 16:37:42 EDT 2022


Nathan,

The text the student is seeing is from the tth (TeX to HTML) processor.

There are three options for display right now: 
MathJax, Convert to Images (mimetex: converts latex to a graphic and displays the graphic) or TeX to HTML.

On a course basis under Course Settings -> Display of Resources you can force the math rendering
engine to one of those three choices or “None Specified - Use Student Choice”.

A student (or other user) can select the math rendering type under their own user preferences. The
default may still be tth.

Under your course settings you can change this to MathJax. My impression is that is now pretty safe,
but the mathematicians may be able to chime in better. This will guaranteed MathJax is used.

(Renderers can be forced in the problem code, but I remember that being frowned upon.)

Hope this helps,
Mark

> On Sep 7, 2022, at 4:10 PM, Moore, Nathan T via LON-CAPA-admin <lon-capa-admin at mail.lon-capa.org> wrote:
> 
> Use caution with links and attachments.
> 
> Hi,
> 
> I have a few problems that use the <m>$x^2=4$</m> latex syntax for math rendering.
> 
> Some of my students tell me that the problem code
> 
> <p>
> What is <m>$\vec{A}\cdot\vec{C}$</m>?
> </p>
> 
> renders on their screen as the bare ASCII text:
> 
> What is [(A)\vec].[(C)\vec]?
> 
> When I look at this problem on my laptop I see normally rendered Computer Modern tex output.  Is there a security or config setting on my students' computers that I should attend to?
> 
> These problems live in the public repository, /res/winona/NMoore/openstax-university-physics-1/ch2-vectors/
> 
> Any suggestions appreciated!
> 
> Nathan
> 
> 
> 
> Problem follows
> <problem>
> 
> <script type="loncapa/perl">
> #Enter the computations here
> $a=&random(1,10,1);
> $b=&random(1,10,1);
> $c=$a+$b;
> $i_dot_b=5.0*&cos(53*&acos(-1.0)/180.0)
> </script>
> 
> <startouttext />
> <img alt="images from the book's chapter 2, problem 62" src="vectors.jpg"></img>
> 
> <p>
> What is <m>$\vec{A}\cdot\vec{C}$</m>?
> </p>
> <endouttext />
> 
> <numericalresponse id="11" answer="0">
>    <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
>    <textline spellcheck="none" readonly="no" />
> </numericalresponse><startouttext /><p>
> What is <m>$\vec{A}\cdot\vec{F}$</m>?
> </p><endouttext />
> <numericalresponse answer="-200" id="12">
> <responseparam description="Numerical Tolerance" type="tolerance" name="tol" default="5%" />
> <responseparam default="0,15" name="sig" type="int_range,0-16" description="Significant Figures" />
>    <textline spellcheck="none" readonly="no" />
> 
> </numericalresponse><startouttext />
> <p>
> What is <m>$\hat{i}\cdot\vec{B}$</m>?
> </p><endouttext />
> <numericalresponse id="13" answer="$i_dot_b">
> <responseparam default="5%" description="Numerical Tolerance" type="tolerance" name="tol" />
> <responseparam default="0,15" name="sig" description="Significant Figures" type="int_range,0-16" />
>    <textline readonly="no" spellcheck="none" />
>    <hintgroup showoncorrect="no">
>    <startouttext /><endouttext />
>    </hintgroup>
> </numericalresponse><startouttext /><p>
> What is <m>$\vec{B}\cdot\hat{B}$</m>?
> </p><endouttext />
> <numericalresponse id="14" answer="5.0">
> <responseparam default="5%" name="tol" description="Numerical Tolerance" type="tolerance" />
> <responseparam default="0,15" name="sig" type="int_range,0-16" description="Significant Figures" />
>    <textline readonly="no" spellcheck="none" />
>    <hintgroup showoncorrect="no">
>    <startouttext /><endouttext />
>    </hintgroup>
> </numericalresponse>
> <allow src="/res/winona/NMoore/openstax-university-physics-1/ch2-vectors/vectors.jpg" />
> </problem>
> 
> 
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.lon-capa.org%2Fmailman%2Flistinfo%2Flon-capa-admin&data=05%7C01%7Clucasm%40ohio.edu%7Ced13dd1914dd4f434bd908da910d4d8f%7Cf3308007477c4a70888934611817c55a%7C0%7C0%7C637981783583952753%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Bavtiz7d34htwOxFnGfYHnqz4PjB5eviWKs2Jlz6RdE%3D&reserved=0

-- 
Mark Lucas
Professor of Instruction
Department of Physics and Astronomy (College of Arts and Sciences)/Ohio Honors Program (Honors College)
252D Clippinger Lab, Ohio University, Athens, OH 45701
email: lucasm at ohio.edu
phone: (740)597-2984
Pronouns: He, Him, His








More information about the LON-CAPA-admin mailing list