mathematics, latexrender and \array issues (ampersand problem) (4 posts)

  1. asif
    Posted 10 years ago #

    I am using this plugin by steve. Whenever I input an \array variable and enter an "ampersand sign", it gets replaced by a "038;" in the rendered gif image.

    Is there any method where I can turn off, the translation of an "ampersand" into its code so that I get valid mathematical expressions?

  2. asif
    Posted 10 years ago #

    Okay I solved it...., you can see the post here without annoying "038;"


    The solution is:

    edit "functions-formatting.php" and lookfor function "convert_chars". Remark the line

    $content = preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $content);

    Things should work fine :)

    If there is a side-effect to it, I would appreciate your feekback. Thanks.

  3. llizard
    Posted 10 years ago #

    What does "remark the line" mean? I went to asif's site but comments are closed and I cannot locate an email address to find out how asif got rid of '038;' (the ampersand character) in WordPress.

    edit: I'm guessing that "remark the line" means to "comment out the line". I tried that in wp-includes/functions-formatting.php

    // $content = preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $content);

    But that had no effect at all on ampersands. They are still being replaced and appearing as &

  4. llizard
    Posted 10 years ago #

    Upgrading to 1.5 resolved the ampersand problem in the sidebar

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.