pkra
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Mathjax] LaTex is not working on Live PageHi,
Unfortunately, there’s not much I’m able to tell from the page. The usual script tags are not present in the page source code or resulting DOM, so I’m guessing something else is getting in the way of the plugin. The most obvious candidates for that are the theme and other plugins.
You could try disabling other plugins or switching to another theme temporarily to narrow it down. If you can identify the particular aspect of the site that interacts poorly with the plugin, then we can look into guarding against it.
Sorry for not having a better suggestion.
I’m afraid these questions are unrelated to this plugin. You might want to ask the theme’s developers or perhaps the MathJax community for help.
Forum: Plugins
In reply to: [Simple Mathjax] Not every equation displaysSorry, I don’t have time to “purchase” anything, even free.
The screenshot looks like something is removing backslashes. The HTML source will likely not have any backslashes. That would be an authoring or plugin issue perhaps. In theory, it might be a mathjax issue but we don’t provide mathjax support here – mathjax has its own forums and issue trackers for that.
In any case, the screenshot shows that mathjax is running and that’s all this plugin aims to provide, so this is not an issue with the plugin.
Forum: Plugins
In reply to: [Simple Mathjax] Not every equation displaysThere are no images I can find.
But images won’t be sufficient to help you. You might want to post a link to a live sample page.
A quick look seems to confirm SPA-style routing.
this doc, Typesetting and Converting Mathematics — MathJax 3.2 documentation, it seems like the process should be automatic
That page specifically says:
it will do this automatically when it is first loaded
(emphasis mine). When the site adds/replaces content dynamically, MathJax has already completed its automatic-on-load rendering.
First, I’d try to figure out how the site is doing its client-side routing. Ideally, that will tell you how to hook into the routing. Then a script can leverage that hook to trigger mathjax – the link I had posted earlier will help with the MathJax part.
Marking this as resolved since it is not an issue with this plugin but the way MathJax and the site’s design interact.
Hard to say without a live page. My first guess would be that there’s SPA-like routing happening, i.e., clicking a link fetches some data and replaces the body HTML on the fly.
In that case, MathJax needs to be triggered to render the fresh content, see https://docs.mathjax.org/en/latest/advanced/typeset.html
Forum: Plugins
In reply to: [Simple Mathjax] Shouldn’t the plugin’s name be spelled with a capital J?I don’t see the need to change the name after 13 years. Even if I did, I’d probably go with mathjax (all lowercase).
Forum: Plugins
In reply to: [Simple Mathjax] Not able to save formula by using \Sorry, I don’t do unpaid consulting.
If you can provide a minimal example exhibiting the problem, I’m happy to take a look at that.
Forum: Plugins
In reply to: [Simple Mathjax] Not able to save formula by using \Hi,
There’s not enough information to tell if your problem has to do with this plugin.
I’m guessing something on your site is stripping out backslashes (which are used to escape characters in PHP) long before it reaches MathJax.
This plugin only affects the resulting HTML so it’s very unlikely that it is causing such a problem.
Regards,
Forum: Plugins
In reply to: [Simple Mathjax] Some math rendered, some not renderedHi,
Sorry for the somewhat slow response.
I don’t see the problem on the linked page. I’m guessing you figured it out on your own. Otherwise, please feel free to re-open this issue.
Best regards,
Forum: Plugins
In reply to: [Simple Mathjax] overflow-x for long equations doesn’t workSee https://ww.wp.xz.cn/support/topic/equations-cut-off-in-mobile-view/ for some guidance.
Adding features for basic CSS issues like this does not match the goals for this plugin.
Forum: Plugins
In reply to: [Simple Mathjax] equations cut off in mobile viewHi,
This is not an issue with the plugin but (depending on your point of view) mathjax or your site’s css.
Something as simple as
mjx-container{overflow: auto}might help (by making mathjax output scrollable if it’s too wide).But you really should ask on https://groups.google.com/g/mathjax-users for robust advice on all things MathJax.
Regards,
Forum: Plugins
In reply to: [Simple Mathjax] Problem with inline equationsPS I’ve filed https://github.com/boolesrings/Simple-Mathjax-wordpress-plugin/issues/33 just in case.
Forum: Plugins
In reply to: [Simple Mathjax] Problem with inline equationsHi Daniele,
Looking at the URL, it seems the configuration is not present it in the page source. Additionally, the page source seems to break off within a script tag.
It looks like the site is using a plugin to move the script tags out of the header, so perhaps that’s the cause for both the invalid markup and the missing configuration script.
Try de-activating such plugins to see if it fixes the problem.
If you have a suggestion on improving the script injection, please file an issue over on https://github.com/boolesrings/Simple-Mathjax-wordpress-plugin/.
Best regards,
Forum: Plugins
In reply to: [Simple Mathjax] Back Slashes disappeared when export siteHi,
The Simple MathJax pluging does not affect anything but the rendering of the final HTML in the browser; in other words, it cannot affect exported content.
Something else must be stripping those backslashes from the export. Since backslashes are often escape characters, I suspect something along the way is not escaping your content properly.
Best of luck hunting this down elsewhere.