• Resolved lisajtx

    (@lisajtx)


    I would love to use TablePress instead of the many tables of math I have on my site https://www.shelovesmath.com. I tried putting latex in the cells in your program and they didn’t render. (I use the mathjax-latex plugin) Any ideas? THANKS for all the hard work you do! Lisa

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    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

    Thread Starter lisajtx

    (@lisajtx)

    Thanks so much, Tobias. I’ll give it a try! You’re the best.
    Lisa

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Tablepress and Latex’ is closed to new replies.