-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
math in solution knowl not rendering #1360
Comments
Is there a specific example to look at?
…On Mon, 10 May 2021, Alex Jordan wrote:
We have two reports (one from a student and one from an instructor) that on their iPads with
Safari, the math content in a solution knowl is not rendering. We are using the latest version of
MathJax rendering that puts it inside script tags. I can't reproduce it, but I do not have an
iPad. With Safari on a MacBookPro, I do not experience the issue.
My first guess is that MathJax is trying to render the math in the knowl before it has been fully
loaded, but it's hard to say without hands on access. Could that be the explanation?
The instructor's details are:
Device: iPad Pro (Late 2018 model)
OS: 14.4.2
Safari: (Google says my iOS and Safari version are the same. Otherwise, I'm not sure.)
Then they upgraded the OS a little, but still no math in the solution knowls.
Device: iPad Pro (Late 2018 model)
OS: 14.5.1
Safari: (Google says my iOS and Safari version are the same. Otherwise, I'm not sure.)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, orunsubscribe.[AABTULC2N24IYS6NGMEUBI3TNAMFFA5CNFSM44R25B22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW
45C7NFSM4NF4C3XA.gif]
|
@Alex-Jordan - Can you make a sample problem available somewhere for people to test. (Guest login to a demo course?) You could also see if using AnyDesk (https://anydesk.com) + developer tools in the iPad browser can be of help. |
Are you using the knowls javascript code from PreTeXt,
or your own code? (Presumably an old copy from PreTeXt.)
Recently I updated the PreTeXt version to work with MathJax 3.
Was the WeBWorK version updated?
…On Mon, 10 May 2021, Nathan Wallach wrote:
@Alex-Jordan - Can you make a sample problem available somewhere for people to test. (Guest login
to a demo course?)
You could also see if using AnyDesk (https://anydesk.com) + developer tools in the iPad browser
can be of help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, orunsubscribe.[AABTULBG3R3Q3ICJ3IBJXHDTNANMDA5CNFSM44R25B22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXH
JKTDN5WW2ZLOORPWSZGOGHSHTTI.gif]
|
@davidfarmer This is not a PreTeXt issue, it's with @taniwallach The report is that this happens with any problem file. But I will set up something public and see if the instructor confirms seeing the issue there. And then post it here. |
Can you point me to the knowls javascript in the repository?
|
updated to point at the 2.16 branch |
I will send a pull request with updated knowls code that works with
MathJax 3.
…On Mon, 10 May 2021, K. Andrew Parker wrote:
knowl.js
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or
unsubscribe.[AABTULFQAZSYBPQXY7ZEC4LTNATKTA5CNFSM44R25B22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGHS3TFY.gif]
|
Just to clarify, as far as I can tell, there is no issue with people using WeBWorK that is using MathJax3, when those people are using Firefox. Or even using Safari but using it on a laptop (as opposed to a tablet). |
Since the knowls code calls MathJax.Hub, which does not exist in MathJax3,
I don't see how math could be rendering in a knowl in any browser.
But, I have not actually had a chance to see an example.
…On Mon, 10 May 2021, Alex Jordan wrote:
Just to clarify, as far as I can tell, there is no issue with people using WeBWorK that is using MathJax3, when those people are using
Firefox. Or even using Safari but using it on a laptop (as opposed to a tablet).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or
unsubscribe.[AABTULAGEN2ETPM7DVRCWDLTNAVFNA5CNFSM44R25B22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGHTCCII.gif]
|
@davidfarmer: The knowl.js javascript for WeBWorK 2.16 release candidate does not call MathJax.Hub. |
I will have an example posted, but I have a class coming up that has my focus. I will be out at 4:00 PDT, and I hope to make the public example and ask my local colleague to check that it still fails for him, and then post it here. |
I see: someone already updated the knowls code to work with MathJax 3.
…On Mon, 10 May 2021, K. Andrew Parker wrote:
@drgrice1 you're right - I should have linked the 2.16 branch for knowl.js
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or
unsubscribe.[AABTULHX4TLEYLMRVZ7FQMLTNAXMNA5CNFSM44R25B22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGHTJD4I.gif]
|
I sent the following link to my colleague and asked him to see if the solution math still did not render using the iPad and Safari. I wanted to make sure that the issue was not localized to problems being rendered in the system template. Initially the math in the solution did not render. Then there was a flash and that math appeared. And now, when he goes back to the same problems from this morning, the solution math renders. It's bizarre. His device must have the right mathjax config file cached, since it shows math in the problem statement. But then the complete lack of math in the solution was consistent with not having a mathjax config that handled math in script tags. Then, visiting that simple format problem above triggered his device acquiring the needed config file, and now solution math appears in other problems. Part of me thinks this issue may be confined to our WW server (and maybe Glenn's?) because we each had MathJax 3 going for a time before the move to using script tags around math, and then move to script tags around math and the config file changed. |
@Alex-Jordan, there is a bug in WebKit (the underlying HTML engine for Safari) that can cause CHTML output to be clipped (some characters don't show fully) intermittently. It may be that this is the underlying problem your users are seeing. If they continue to get it, ask them to use the MathJax menu to select SVG output instead, and see if that works better for them. |
The solution and hint knowls has been changes to using html details/summary tags in openwebwork/pg#941 |
We have two reports (one from a student and one from an instructor) that on their iPads with Safari, the math content in a solution knowl is not rendering. We are using the latest version of MathJax rendering that puts it inside script tags. I can't reproduce it, but I do not have an iPad. With Safari on a MacBookPro, I do not experience the issue.
My first guess is that MathJax is trying to render the math in the knowl before it has been fully loaded, but it's hard to say without hands on access. Could that be the explanation?
The instructor's details are:
Then they upgraded the OS a little, but still no math in the solution knowls.
The text was updated successfully, but these errors were encountered: