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

    (@tobiasbg)

    Hi,

    thanks for your question. The reason why this does not work out of the box is that WP-QuickLaTeX does not use the regular WordPress Shortcode API, but a custom implementation.
    Making it work with WP-Table Reloaded is not too difficult though, and just requires a minor piece of code. Please try adding

    add_filter( 'wp_table_reloaded_post_output_table', 'quicklatex_parser', 7);

    to the “functions.php” of your theme.

    Regards,
    Tobias

    Thread Starter dfcastro

    (@dfcastro)

    I just did as you instructed, but it did not work. ??
    I added it to the end of the file functions.php
    I switched to the begin and surrounded with <?php and ?> and nothing happened.

    Should I update anything on the source of the plugin WT-Table Reloaded?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, nothing needs to be changed within WP-Table Reloaded.

    Please try again with

    add_filter( 'wp_table_reloaded_cell_content', 'quicklatex_parser', 7);

    which tries to hook into a different filter hook.

    If that also does not work, please post the URL to the page with your table where the LaTeX is not working.

    Regards,
    Tobias

    Thread Starter dfcastro

    (@dfcastro)

    It also did not work

    Here it is the URL with the table – https://www.uvirundum.com/2012/05/test/

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, thanks for the URL.

    Does the LaTeX code work outside of the table, in the regular post content?

    Also, I don’t see a Shortcode [latex] wrapped around the code. I thought that this was necessary?!

    Regards,
    Tobias

    Thread Starter dfcastro

    (@dfcastro)

    yes, it does.

    The shortcode is [latexpage], as you can see in other posts. It is the first line of each page.

    The post source is just that
    [latexpage]
    [table id=”11″]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for that explanation. This explains why the LaTeX code is not parsed. The reason is that WP-QuickLaTeX executes the parsing before the table is actually processed. They do this by using a very high priority during the filter hook usage. I’m not really sure why they do it this way, but just as with WP-Table Reloaded, no other Shortcodes will by able to deliver LaTeX code with this

    Now, I saw that the plugin also supports another Shortcode:

    [latex] ... [/latex]

    wrapped around each equation.
    Although this is a little bit more work for you, it should work, together with the code from my second post above.

    Regards,
    Tobias

    Thread Starter dfcastro

    (@dfcastro)

    Yes, it worked.

    Thanks a lot, Tobias. ??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    awesome, very cool! ?? Thanks a lot for the confirmation!

    Best wishes,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WP-Table Reloaded] WP-Table-Reloaded integration with LaTex content’ is closed to new replies.