{"id":2204,"date":"2022-08-30T15:22:55","date_gmt":"2022-08-30T15:22:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/04\/problem-about-mathjax-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:55","modified_gmt":"2022-08-30T15:22:55","slug":"problem-about-mathjax-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-mathjax-collection-of-common-programming-errors\/","title":{"rendered":"problem about mathjax-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/24ee67b1248cbefa2ce8f65c67524b5f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1411469<br \/>\njavascript mathjax<br \/>\nI&#8217;ve made an online math quiz with mathjax but it interferes with the timer. The timer won&#8217;t count down when mathjax is enabled.Here is my mathjax code:&lt;script type=&#8221;text\/x-mathjax-config&#8221;&gt; MathJax.Hub.Config({tex2jax: {inlineMath: [[&#8216;$&#8217;,&#8217;$&#8217;], [&#8216;\\\\(&#8216;,&#8217;\\\\)&#8217;]],processEscapes: true},&#8221;HTML-CSS&#8221;: {scale: 95} }); &lt;\/script&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;https:\/\/c328740.ssl.cf1.rackcdn.com\/mathjax\/latest\/MathJax.js?config=TeX-AMS-MML_HTMLorMML&#8221;&gt; &lt;\/script&gt;Here is my timer co<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/13b41b2620da0b1e630715e0c91a0b03?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJosh Lee<br \/>\ngoogle-chrome-app mathjax content-security-policy<br \/>\nI am trying to use MathJax in Chrome Packaged app. It is not loading at all giving the following error :Uncaught EvalError: Refused to evaluate a string as JavaScript because &#8216;unsafe-eval&#8217; is not an allowed source of script in the following Content Security Policy directive: &#8220;default-src &#8216;self&#8217; chrome-extension-resource:&#8221;.How can I make it work?EDITIT is showing this line to be the problem in the libraryvar CONSTRUCTOR = function () {return new Function (&#8220;return arguments.callee.Init.call(this,a<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e31d9d39e9fb0ec4cc5573a5e5b01ce7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJiew Meng<br \/>\njavascript markdown mathjax<br \/>\nUPDATED POSTOk I&#8217;ve managed to make Markdown and MathJax work together, it was relatively simple actually. I&#8217;ve used marked together with MathJax. $(function() {var $text = $(&#8220;#text&#8221;), \/\/ the markdown textarea$preview = $(&#8220;#preview&#8221;); \/\/ the preview div$text.on(&#8220;keyup&#8221;, function() {$preview.html( marked($text.val()) ); \/\/ parse markdownMathJax.Hub.Queue([&#8220;Typeset&#8221;, MathJax.Hub, &#8220;preview&#8221;]); \/\/ then let MathJax do its job}) });Problem now is: I think markdown is parsing my math 1st befor<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d33de36840c07629b0dfc5ecbc0ff2cf?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLukas Halim<br \/>\nangularjs mathjax<br \/>\nI am trying to use AngularJS two-way binding text which includes Latex style equations. I would like to call MathJax to format the equations, but I&#8217;m not sure of the best way to ensure that MathJax is called after AngularJS finishes changing the model. I think I need a callback. Here is my JavaScript:var myApp = angular.module(&#8216;myApp&#8217;,[]); function MyCtrl($scope) {$scope.Update = function() {$scope.Expression = &#8216;Evaluate: \\\\( \\\\frac{9}{4} \\\\div \\\\frac{1}{6} \\\\)&#8217;;MathJax.Hub.Queue([&#8220;Typeset&#8221;,<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/981171154da9652fb17ab0a05acd9fae?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nShulabh<br \/>\nlatex mediawiki mathjax<br \/>\nI am not able to enable math display\/latex on the mediawiki. In standard instructions to enable latex, I need to compile texvc files, but I cannot do that because I am on a shared host (Linux Radhat). (http:\/\/www.mediawiki.org\/wiki\/Manual:Enable_TeX)I tried with precompiled binaries, but no success. I tried JsMath alternative, and I am getting this error &#8220;Fatal error: Call to undefined method ParserOptions::getUseTeX() in \/Shulabh\/MediaWikiS\/extensions\/JsMath\/JsMath.php on line 159&#8243;(http:\/\/www.m<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-01-04 14:18:47. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>user1411469 javascript mathjax I&#8217;ve made an online math quiz with mathjax but it interferes with the timer. The timer won&#8217;t count down when mathjax is enabled.Here is my mathjax code:&lt;script type=&#8221;text\/x-mathjax-config&#8221;&gt; MathJax.Hub.Config({tex2jax: {inlineMath: [[&#8216;$&#8217;,&#8217;$&#8217;], [&#8216;\\\\(&#8216;,&#8217;\\\\)&#8217;]],processEscapes: true},&#8221;HTML-CSS&#8221;: {scale: 95} }); &lt;\/script&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;https:\/\/c328740.ssl.cf1.rackcdn.com\/mathjax\/latest\/MathJax.js?config=TeX-AMS-MML_HTMLorMML&#8221;&gt; &lt;\/script&gt;Here is my timer co Josh Lee google-chrome-app mathjax content-security-policy I am [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2204","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2204"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2204\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}