WordPress.org

Ready to get started?Download WordPress

Forums

WP LaTeX
Size option of inline code not working (1 post)

  1. stefga
    Member
    Posted 4 months ago #

    I tried to set a size for my Latex formula, but it did not work as expected:

    (#1) Not working: $latex e^{\i \pi}&s=4$
    (#2) Working: $latex e^{\i \pi}& amp;s=4$
    (without the space)

    I changed in wp-latex.php the regular expression so it includes
    the non-escape ampersand:

    wp-latex,php line 118:
    preg_match( '/.+((?:& #038;|& amp;|&)s=(-?[0-4])).*/i', ...<br />
    Now, both versions work.

    Do I miss an option that makes #1 work out of the box? If not,
    would you change the regular expression for the next WP Latex relase,
    please?

    Kind Regards
    Stefan

    https://wordpress.org/plugins/wp-latex/

Reply

You must log in to post.

About this Plugin

About this Topic