Hi,
thanks for your post, and sorry for the trouble.
Just to confirm, is the “Use wp-latex syntax?” checkbox checked in the mathjax-latex plugin’s settings? If so, please try adding this code to the end of your theme’s “functions.php” file to enable LaTeX in TablePress tables:
if ( get_option( 'kblog_mathjax_use_wplatex_syntax' ) ) {
add_filter( 'tablepress_cell_content', array( 'MathJax', 'inline_to_shortcode' ) );
}
add_filter( 'tablepress_cell_content', array( 'MathJax', 'filter_br_tags_on_math' ) );
Regards,
Tobias
Thanks so much, Tobias. I’ll give it a try! You’re the best.
Lisa
Hi,
no problem, you are very welcome! 🙂 I hope it helps!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Hello. Does the above described solution work with WP QuickLaTeX?
Thanks olflab
Hi olflab,
the code for WP QuickLaTeX would be
add_filter( 'tablepress_cell_content', 'quicklatex_parser' );
Just append that to the end of your theme’s “functions.php” file.
Regards,
Tobias
Thanks, it works perfect.
Regards,
olflab
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!