Hi,
thanks for your post, and sorry for the trouble.
Indeed, due to how that plugin works, it does currently not pick up LaTeX content in table cells. To change that, please add this to the end of your theme’s “functions.php” file:
add_filter( 'tablepress_cell_content', 'quicklatex_parser' );
Regards,
Tobias
Thank you very much, Tobias, for your quick and accurate answer !
Now it works perfectly 🙂
Adren
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Hi again Tobias 🙂
For some unknown reason, and without having changed anything in functions.php, interpretation of Latex code in TablePress doesn’t work anymore.
TablePress version is 1.14
Do you have updated your plugin in some way that could affect this behaviour ?
Tank you for your help.
Cheers
René
Hi,
no, TablePress did not receive any changes that would influence this behavior.
Please check if that line is really still there (and not maybe commented out or something), and if the LaTeX plugin is still active, and still provides that quicklatex_parser function.
Regards,
Tobias
Hi Tobias,
Thank you for your answer.
After some checking, I found why latex interpretation had stopped in TablePress and I guess that this information could be useful for others :
In the QuickLatex parameters (WordPress Admin), there is a tab named Advanced.
The checkbox Use LaTeX Syntax Sitewide has to be checked.
I finally remembered that I had unchecked it recently for some reason 🙂
I think that this shouldn’t be the desired behaviour, because checking this checkbox has a side effect : the $ character in interpreted in a very special way (LaTeX delimiter) sitewide …
Cheers,
René
Hi,
thanks for investigating this further! That’s good to know!
Unfortunately, there’s nothing that I can do about this setting or the wrong behavior with the $ symbol in TablePress. That would have to be adjusted in the LaTeX plugin.
Regards,
Tobias