Fifis
Forum Replies Created
-
Forum: Plugins
In reply to: [LaTeX for WordPress] Unnecessary space around formulaeSolved! I figured it out!
At line 129 (ver. 3.4.6) or so you will see the following:
else return " <span class='MathJax_Preview'>".(get_option('latex_img_server')==""?"\(".($formula_text)."\)":"<img src='$cache_formula_url' style='".get_option('latex_imgcss')." $padding' class='tex' alt=\"".($formula_text)."\" />")."</span>".(get_option("mathjax_server") != ""?"<script type='math/tex'>".($formula_text)."</script> ":" ");
Eliminate the spaces before the opening “span class” and after the closing “/script”, like this:
else return "<span class='MathJax_Preview'>".(get_option('latex_img_server')==""?"\(".($formula_text)."\)":"<img src='$cache_formula_url' style='".get_option('latex_imgcss')." $padding' class='tex' alt=\"".($formula_text)."\" />")."</span>".(get_option("mathjax_server") != ""?"<script type='math/tex'>".($formula_text)."</script>":"");
The result is just as desired. I am currently maintatining a blog at https://kostyrka.ru/blog, and there are lots of formul? in some posts, as you can see, and now they are perfectly and tenderly touched by commas and brackets.
The same for me! After several reinstallations, I installed it manually and… The first time it opened a configuration window. I checked the ?Override WP LaTeX? box (or sort of), after which the plugin displayed a message that I am using an obsolete version of MathJax (1.0.1) and I should configure the plugin. When I entered the config page again, it stopped displaying right after the first checkbox description THe rest of the config page did not load (neither did the ?Save changes? button) (WP 3.4.1, too!).
Using header.php and configuring MathJax (to detect the [latex] opening syntax instead of \[ etc.) renders formul? only if the post is opened in its own window. It does not render when several posts are displayed from the index page (which of cause may be caused by the InfiniteScroll plugin). I ask you to check if it is compatible with continuous page loading. I cannot check it due to the reason the plugin crashes the same way described by monsieur WebDrake.
Thank you for the further suggestions.