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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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: 1
TOPIC: Can't render latex code in Explanation of answer
#69161
Can't render latex code in Explanation of answer 1 Year, 8 Months ago Karma: 0
Hello,

I have purchased "ARI Stream Quiz - Personal v.1.7.4".
The quiz I want to make is about math.
When I actually try to make the quiz, the latex code does not seem to work correctly in the "Explanation of answer".

The symptoms are the same as those in the URL below.
However, in my case, I am using the pro version, not the basic version.

www.ari-soft.com/ARI-Stream-Quiz/61946-Can-t-render-latex-code-in-Explanation-of-answer.html

Please let me know how to deal with this.

Regards,
The administrator has disabled public write access.
 
#69179
Re:Can't render latex code in Explanation of answer 1 Year, 8 Months ago Karma: 747
Hello,

Could you specify what plugin to render LaTeX code you use and provide a link to a quiz where the problem occurs?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#69182
Re:Can't render latex code in Explanation of answer 1 Year, 8 Months ago Karma: 0
Thanks for the reply.

The plugin I use is MathJax-LaTeX ver 1.3.11.

Also see below for links.

taku-naka.site/2022/08/14/other/quiz_fluid_reynolds/

That image is also attached.
File Attachment:
File Name: img-d8b9a45a7fcfe920923d483da9f3609f.zip
File Size: 11380
The administrator has disabled public write access.
 
#69186
Re:Can't render latex code in Explanation of answer 1 Year, 8 Months ago Karma: 747
Add the following code to "Custom JS code" parameter on "ARI Stream Quiz -> Settings -> Advanced" page:

Code:


jQuery(function($) {
  setTimeout(function() {
    var quizzes = jQuery('.ari-stream-quiz').ariStreamQuiz();
    if (!quizzes) return;
    if (!(quizzes instanceof Array)) quizzes = [quizzes];
    $.each(quizzes, function(idx, quiz) {
        var showQuestionResult = quiz.showQuestionResult;
        quiz.showQuestionResult = function(questionId, pageNum) {
           showQuestionResult.call(quiz, questionId, pageNum);

           if (typeof(MathJax) != 'undefined') {
            MathJax.Hub.Queue(["Typeset",MathJax.Hub,quiz.el.get(0)]);
          }
        }
    });
  }, 10);
});



Regards,
ARI Soft
The administrator has disabled public write access.
 
#69189
Re:Can't render latex code in Explanation of answer 1 Year, 8 Months ago Karma: 0
The above settings were successfully handled. Thank you very much.
The administrator has disabled public write access.
 
Go to topPage: 1