Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Can't render latex code in Explanation of answer
(1 viewing) (1) Guest
"ARI Stream Quiz" WordPress plugin
Go to bottomPage: 12
TOPIC: Can't render latex code in Explanation of answer
#61946
Can't render latex code in Explanation of answer 7 Years ago Karma: 0
Hi there,

I've upgraded the plugin just now and tried to add some explanations to the answer. As this feature is not available in the free version, I can't test if this explanation content can render latex code.

As all my quiz questions are for Math problem, and all latex are rendered correctly in questions and multiple choice answers, but don't know why latex codes can't be rendered in explanation and result area.

fyi, I'm running the latest ver. of WordPress, and using MathJax-latex for rendering latex codes. Thanks for your help in advance!
The administrator has disabled public write access.
 
#61949
Re:Can't render latex code in Explanation of answer 7 Years ago Karma: 760
Hello,

The problem occurs because explanation is shown dynamically and MathJax-latex plugin can't handle dynamically created content. It executed only once when page is loaded.

We will try to provide a custom solution for integration with MathJax within 2 days.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#61987
Re:Can't render latex code in Explanation of answer 7 Years ago Karma: 760
Hello,

Update the plugin to v. 1.5.12. After this open "Advanced" tab on "ARI Stream Quiz -> Settings" page and populate "Custom JS code" parameter with the following code:

Code:


if (jQuery) {
  jQuery(document).on('question-result:stream_quiz', function(e, options) {
   if (typeof(MathJax) != 'undefined') {
      MathJax.Hub.Queue(["Typeset",MathJax.Hub,options.container.get(0)]);
   }
  });
}



Open also quiz settings page and make sure "Settings -> Support shortcodes in quiz description, questions, answers and results" parameter is enabled.

It should help.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#62036
Re:Can't render latex code in Explanation of answer 7 Years ago Karma: 0
The fix is working fine so far.
Thanks!
The administrator has disabled public write access.
 
#62182
Re:Can't render latex code in Explanation of answer 6 Years, 11 Months ago Karma: 0
It's been working for couple of weeks after inserting the javascript provided and checked "Support Shortcode", but recently don't konw why the Latex codes can't be rendered. Would it possible that upgrading MathJax plugin or ARI Stream Quiz would affect this?

Pls kindly advise!
The administrator has disabled public write access.
 
#62185
Re:Can't render latex code in Explanation of answer 6 Years, 11 Months ago Karma: 760
Update the plugin to v. 1.5.18 please.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12