• Resolved adrenmaths

    (@adrenmaths)


    Hello,

    I have the plugin QuickLatex installed and activated on my site.

    I installed TablePress two days ago and everything works just fine … except that latex formulas are _not_ interpreted in table cells (please look at the first row in the second table).

    Latex is pretty well interpreted on all articles / posts though.

    Here are some technical infos which could help :

    · Website: https://math-os.com
    · TablePress: 1.13
    · TablePress (DB): 42
    · TablePress table scheme: 3
    · Plugin installed: 2021/03/19 05:55:47
    · WordPress: 5.6.2
    · Multisite: no
    · PHP: 7.4.15
    · mysqli Extension: true
    · mySQL (Server): 5.6.50-log
    · mySQL (Client): mysqlnd 7.4.15
    · ZIP support: yes
    · UTF-8 conversion: yes
    · WP Memory Limit: 40M
    · Server Memory Limit: 512M
    · WP_DEBUG: false
    · WP_POST_REVISIONS: true`

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter adrenmaths

    (@adrenmaths)

    Thank you very much, Tobias, for your quick and accurate answer !

    Now it works perfectly 🙂

    Adren

    Plugin Author Tobias Bäthge

    (@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!

    Thread Starter adrenmaths

    (@adrenmaths)

    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é

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter adrenmaths

    (@adrenmaths)

    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é

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Latex and TablePress’ is closed to new replies.