Support » How-To and Troubleshooting » mathematics, latexrender and \array issues (ampersand problem)

mathematics, latexrender and \array issues (ampersand problem)

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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 &

    Upgrading to 1.5 resolved the ampersand problem in the sidebar

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘mathematics, latexrender and \array issues (ampersand problem)’ is closed to new replies.