openlab-at-city-tech / webworkqa

WeBWorK integration for WordPress and BuddyPress
GNU General Public License v2.0
4 stars 2 forks source link

Backticks are not recognized as LaTeX delimiters #210

Open bree-z opened 3 years ago

bree-z commented 3 years ago

From #115:

There's one place where LaTeX isn't rendering correctly in the following problem: http://146.111.135.122/webwork2/WW-Dev-Deux/Explore_-_Instantaneous_Rate_of_Change/1/

To test this, I first deleted the previous questions for this problem. I still see the issue when I click 'Ask for Help' from WeBWorK. I'm using MacOS Big Sur 11.5.2. I tried in two different browsers and see the same thing: Chrome, Version 93.0.4577.63 and in Safari, Version 14.1.2.

Problem URL: https://hardg.com/webwork/#:problemId=Contrib/CUNY/CityTech/Calculus/setExplore_-_Instantaneous_Rate_of_Change/geogebra-slopes-zoom.pg:questionId=52

Thanks!

Screen Shot 2021-08-26 at 5 34 30 PM Screen Shot 2021-08-26 at 5 34 23 PM
boonebgorges commented 3 years ago

It appears that the original problem sets use backticks as TeX delimiters. This is not supported by the current configuration of webworkqa + MathJax. Here's what we currently support (see https://github.com/openlab-at-city-tech/webworkqa/blob/c5d018620936a04a23cd32c9f94e155d8aabf8d7/classes/Server/Util/ProblemFormatter.php#L270):

It may be possible down the road to support backticks alone, but this has potential side-effects that we can't explore right now.

boonebgorges commented 3 years ago

cc @drdrew42 on the above, since we will need to document these editorial guidelines ^^

drdrew42 commented 3 years ago

Okay, understood. Backticks are (fingers-crossed) relatively rare as LaTeX delimiters -- this example is one of my problems, and I'm unsure of why I even used them here. I'll see what I can do about finding and updating any of our custom problems so that they use supported delimiters...

And yes, this will be an important thing to mention in the documentation.