• Resolved Hirshy

    (@hirshy)


    Hi,

    I am currently looking into the WPLMS Theme and have encountered a problem with WP QuickLaTeX when using it in a question/quiz. I already contacted the support at VibeThemes (copy/paste from my support thread over there):

    I am using the Plugin WP QuickLaTeX to display mathematical formulas on pages and would also like to use it when creating questions and explanations for the answers. I have the following problems with that:

    The formulas do not get displayed at all in the answer explanations when checking results. This is very important to me (for obvious reasons).

    If I want to check my results as a user at a later time (via Dashboard – Courses – Results) the formulas in the question also don’t get displayed or only in a very strange way. This is very important to me as I want my students to be able to come back later and check their results and the explanation again.

    If I create a multiple choice question and I enter the LaTeX code in the field for an answer, it does not get displayed. This is not so important as I can work around that by including the possible choices in the question itself, but if possible might be something for the future to add(?)

    I created two quizzes to test this, they can be found here:

    https://la-chemie.de/quiz/determinantenberechnung/

    https://la-chemie.de/quiz/testquiz/

    Is there a way to fix this? I’d like to continue using WP QuickLaTeX over e.g. a mathjax-solution because WP QuickLaTeX gives me the possibility to (almost) use the complete LaTeX features on the site.

    So far I was told that the quizzes by WPLMS are “fully ajax based” and that they “haven’t tested WP QuickLaTeX with WPLMS as of yet and they have to see if it is ajax compatible or not”. Is there any input you can give on this? Maybe even get in contact with the developers of the theme and integrate WP QuickLaTeX for further versions of the theme? So far the WPLMS looks great to me for learning/education purposes and having WP QuickLaTeX as a fully working plugin for questions and quizzes would highly improve it.

    Thank you very much in advance (and in general for such a powerful plugin!)

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author advanpix

    (@advanpix)

    WP QuickLaTeX just replaces pieces of LaTeX code with URLs to images (PNG or SVG).
    I believe this shouldn’t create any difficulties for AJAX themes.

    WP QuickLaTeX processes only pages of standard types – posts, pages, etc.
    But, I suspect that the theme uses custom-defined, non-standard type of content to create quizzes. The easiest solution would be to include WP QuickLaTeX parser/filter to handle these specialized pages.

    This is only my guess, and developers of the theme are the most qualified to confirm this situation.

    Thread Starter Hirshy

    (@hirshy)

    Thank you very much! I contact the developers of the theme again with these information!

    Thread Starter Hirshy

    (@hirshy)

    I’ve heard back from the developers. Can you tell me which filter should be run on custom post types content?

    Plugin Author advanpix

    (@advanpix)

    The filter name is ‘quicklatex_parser’.

    Please take a look on lines 305-311 in wp-quicklatex.php to see how to install it for custom post types.

    Thread Starter Hirshy

    (@hirshy)

    Hi,

    I have contacted the developers of the theme and they responded:

    Okay thanks for confirming this . We have now applied the _content filter to our explanation in your site.Now the plugin should evaluate the shortcode and show the picture .
    same fix will be added in next update of wplms theme and vibe course module plugin .

    Unfortunately it still doesn’t work right and I was told

    Well we have already applied the the_content filter on the explanation as suggested by the author .Now please contact this third party plugin author it is not working .
    I would still recommend you using jetpack beautiful math addon for that .

    Do you have any more insight? I really don’t want to use jetpack, even if it was just for the sake of using it in questions/explanations, because it just doesn’t offer me the full LaTeX potential.

    Plugin Author advanpix

    (@advanpix)

    @”Unfortunately it still doesn’t work right”

    Could you please elaborate a bit, how it doesn’t work, what changed, test page to see the situation?

    Thread Starter Hirshy

    (@hirshy)

    Of course. A test quiz can be found on my dummy site Quiz

    You might have to register to get full access (you can also contact me via this form and I will create an admin account for you).

    While taking the quiz, the formulas get displayed fine. However, once you are done with the quiz and want to see the results, there is the possibility to include an explanation on how to get to this answer. The question still displays everything fine, but in this explanation box no pictures are rendered.

    Then, if you leave the answer page and maybe later want to check back on your answers via the user dashboard -> Courses -> Results, even the question gets messed up, because it seems that some of the backslashes get removed (resulting in code like $begin{pmatrix} 1 end{pmatrix}$ instead of $\begin{pmatrix} 1 \end{pmatrix}$).

    I hope this makes it clearer and if there is any more information you need, I’m happy to provide it!

    Plugin Author advanpix

    (@advanpix)

    As for backslashes – please make sure that Markdown feature is disabled in JetPack. Usually it is responsible for stripping off the backslashes.

    As for the equations in “answer explanation” – theme simply doesn’t apply QuickLaTeX filter to this text.

    Are equations in “answer explanation” shown correctly when you use JetPack?

    Plugin Author advanpix

    (@advanpix)

    …when you use JetPack Math?

    Thread Starter Hirshy

    (@hirshy)

    As of now I am not using JetPack Math for anything. This is what the theme developers suggested to do as this should work with everything their theme offers. I will look into Jetpack if there is no other way though (and will still use QuickLaTeX for everything else).

    I set your account to “Admin”, so if you feel to look around and play with the theme/quiz yourself, please do so. I am still hoping that somehow it will get sorted out…do you think it would be worth to aim for a collaboration with the developers to include QuickLaTeX as a native plugin in the theme for every math related subjects?

    Thread Starter Hirshy

    (@hirshy)

    Hi again,

    this is where/how the filter was added: Link
    Is this correct? If yes, there seems to be another problem as the problem persists.

    For now I might go for a combined usage of JetPack for questions and WP QuickLaTeX for everything else on the website. If in the future there is a complete solution for QuickLaTeX that fixes this problem, I would of course switch back! Thank you so far for the support!

    • This reply was modified 7 years, 9 months ago by Hirshy.
    • This reply was modified 7 years, 9 months ago by Hirshy.
    Thread Starter Hirshy

    (@hirshy)

    Hello again,

    I was in contact with the theme developers again and the issue seems to be resolved. The fix will be added in the next update of the theme.

    Plugin Author advanpix

    (@advanpix)

    Congratulations on this and thank you for your donation!

    Unfortunately we (as QuickLaTeX developers) can do very little when it comes to enabling third-party plugins & themes with QuickLaTeX support.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Using “WP QuickLaTeX” formulas in Theme “WPLMS” questions’ is closed to new replies.