<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
{"id":43,"date":"2005-07-21T10:33:21","date_gmt":"2005-07-21T09:33:21","guid":{"rendered":"http:\/\/sixthform.info\/steve\/wordpress\/?p=43"},"modified":"2007-11-15T16:08:16","modified_gmt":"2007-11-15T16:08:16","slug":"odd-effects","status":"publish","type":"post","link":"https:\/\/sixthform.info\/steve\/wordpress\/?p=43","title":{"rendered":"Odd effects"},"content":{"rendered":"<p>WordPress is very flexible allowing you to choose various text filters. Unfortunately they can filter the mathematical text as well before it gets converted to an image. The most common effect you see is in matrices (or arrays, tables) where you get<\/p>\n<ul>\n<a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/989d76d2d9ef5c02f0e6360bd5769319.gif' title='\\begin{pmatrix}&#10;a &amp; 038;b &amp; 038;c &amp; 038;d &amp; 038;e \\\\&#10;x &amp; 038;\\hdotsfor{3} &amp; 038;z&#10;\\end{pmatrix}' alt='\\begin{pmatrix}&#10;a &amp; 038;b &amp; 038;c &amp; 038;d &amp; 038;e \\\\&#10;x &amp; 038;\\hdotsfor{3} &amp; 038;z&#10;\\end{pmatrix}' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5Cbegin%7Bpmatrix%7D%0Aa+%26+038%3Bb+%26+038%3Bc+%26+038%3Bd+%26+038%3Be+%5C%5C%0Ax+%26+038%3B%5Chdotsfor%7B3%7D+%26+038%3Bz%0A%5Cend%7Bpmatrix%7D','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a><\/ul>\n<p>instead of <\/p>\n<ul>\n<a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/5e381345a3e6990f92b948d62d81e20e.gif' title='\\begin{pmatrix}&#10;a &amp; b &amp; c &amp; d &amp; e \\\\&#10;x &amp; \\hdotsfor{3} &amp; z&#10;\\end{pmatrix}' alt='\\begin{pmatrix}&#10;a &amp; b &amp; c &amp; d &amp; e \\\\&#10;x &amp; \\hdotsfor{3} &amp; z&#10;\\end{pmatrix}' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5Cbegin%7Bpmatrix%7D%0Aa+%26+b+%26+c+%26+d+%26+e+%5C%5C%0Ax+%26+%5Chdotsfor%7B3%7D+%26+z%0A%5Cend%7Bpmatrix%7D','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a><\/ul>\n<p>This is because the ampersand has been converted to the equivalent HTML code.<\/p>\n<p>You can solve this problem by changing one line in <strong>latex.php<\/strong>. In<br \/>\n<code>\/\/ $latex_formula = str_replace(\"& #38;\",\"&\",$latex_formula);<\/code><br \/>\nremove the comment <code>\/\/<\/code> and change <code>38<\/code> to <code>038<\/code> so that the line reads<br \/>\n<code>$latex_formula = str_replace(\"& #038;\",\"&\",$latex_formula);<\/code><br \/>\n<font color=\"red\">Please note: In order to show the code here I have had to introduce a space between &#038; and #. That space should <em>not<\/em> be there in <strong>latex.php<\/strong><\/font><\/p>\n<p>Other odd effects can be dealt with similarly.<br \/>\nIf you see a8217; instead of a&#8217; then either<br \/>\n1. use ^\\prime in your LaTeX code <em>and\/or<\/em><br \/>\n2. add the line (<font color=\"red\">removing the space between &#038; and #<\/font>)<br \/>\n<code>$latex_formula = str_replace(\"& #8217;\",\"'\",$latex_formula);<\/code><br \/>\nin the same place as the previous one in <strong>latex.php<\/strong><\/p>\n<p>Both alterations appear in the latest download.<\/p>\n<p>Note: If you want to regenerate older images then you will either have to remove them from the cache or change the code slightly eg by putting in an extra space which <a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/c51d7e23458ca0e7373a8ed6ab56b2b9.gif' title='\\LaTeX' alt='\\LaTeX' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5CLaTeX','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a> will ignore<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is very flexible allowing you to choose various text filters. Unfortunately they can filter the mathematical text as well before it gets converted to an image. The most common effect you see is in matrices (or arrays, tables) where you get instead of This is because the ampersand has been converted to the equivalent [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-latexrender"],"_links":{"self":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":0,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"wp:attachment":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}