WeBWorK Main Forum

Quirk: latex in PGML blocks

Re: Quirk: latex in PGML blocks

by Alex Jordan -
Number of replies: 1

If you only use the backticks, then WW will not see that content as math at any stage. Ultimately the `A` will be displayed on your browser, and then MathJax running in the browser will intercept that and (if MathJax is using a common configuration) will process the inside stuff as AsciiMath. So something simple like "A" can appear with a math font. (But LaTeX expressions with backslashes won't work this way.)

Note that if you use WW's hardcopy generator to run these same problems to make a PDF, you will see the same thing you see in Edfinity: the backticks will be there with no math processing of the insides.

I think the right thing to do is change the problems to use the real PGML delimiters. You could ask Edfinity if they would want to reconfigure their MathJax to process stuff inside backticks as AsciiMath to mirror the behavior you had before, but since WW still won't perceive that content is math, it could cause other problems. For example is Edfinity would like to use some output format other than HTML some day.