[LON-CAPA-admin] Best practice for latex math entry?

Raeburn, Stuart raeburn at msu.edu
Tue Jan 15 16:26:45 EST 2019


Nathan,

If using the m tag in LON-CAPA, you should wrap math expressions either with <m> $ $ </m>, or <m> \(   \) </m> (both are valid ways of entering math mode in recent versions of LaTeX).

If you want to display the expression as a centered equation you would wrap the expression with <m> \[ \] </m>.

Although the MathJax renderer will display a TeX expression without the math mode characters you may encounter errors with the tth (TeX to HTML) renderer.


Course Coordinators can enforce use of a specific math rendering engine for the course via:
Settings > Course Settings > Display  ("Display of resources" checked) > "Force use of a specific math rendering engine"



The next release will also allow you to set  the "default method to display mathematics" for your domain, and the default used will become MathJax, if a domain default is not set. (Currently the default renderer is tth).

________________________________________
From: LON-CAPA-admin <lon-capa-admin-bounces at mail.lon-capa.org> on behalf of Moore, Nathan T <nmoore at winona.edu>
Sent: Tuesday, January 15, 2019 3:24:24 PM
To: list about administration and system updating
Subject: [LON-CAPA-admin] Best practice for latex math entry?

Which of these is best practice when it comes to typesetting math in a loncapa problem

<m>$y=x^2$</m>
Or
<m> y=x^2 </m>

Or something else?

I have a few students for whom the second form doesn't seem to render properly

--- --- --- ---
Nathan Moore, PhD
Physics, Winona State University
_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.lon-2Dcapa.org_mailman_listinfo_lon-2Dcapa-2Dadmin&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=VsGo3jOm8tGLd6f-KlhT-g&m=VphHOyF0hzfFNZiHgwoVgbIAy4MJl-0fnoIMRDdIj74&s=PXw8NeaA5Gk2PVSRAB0lT32kkdW4lqsdL3QtOAYd5Po&e=


More information about the LON-CAPA-admin mailing list