{"id":682,"date":"2019-08-09T20:24:09","date_gmt":"2019-08-09T16:54:09","guid":{"rendered":"https:\/\/behnudi.ir\/?p=682"},"modified":"2024-08-21T10:27:40","modified_gmt":"2024-08-21T06:57:40","slug":"katex-2","status":"publish","type":"post","link":"https:\/\/behnudi.ir\/?p=682","title":{"rendered":"\u062f\u0631 \u0648\u0628 \u0686\u06af\u0648\u0646\u0647 \u0641\u0631\u0645\u0648\u0644 \u0628\u0646\u0648\u06cc\u0633\u06cc\u0645\u061f"},"content":{"rendered":"<p>\u067e\u0631\u0648\u0698\u0647 <strong>KaTeX<\/strong> \u06cc\u06a9 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u067e\u0646 \u0633\u0648\u0631\u0633 \u0648 \u0622\u0632\u0627\u062f \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0631\u0627 \u0645\u0624\u0633\u0633\u0647 <strong>\u062e\u0627\u0646 \u0622\u06a9\u0627\u062f\u0645\u06cc<\/strong> \u0639\u0631\u0636\u0647 \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a.<!--more--> \u0628\u0647 \u06a9\u0645\u06a9 \u0627\u06cc\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0646\u0648\u0627\u0639 \u0641\u0631\u0645\u0648\u0644\u200c\u0647\u0627 \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u0628\u0627\u0646 <strong>\u0644\u06cc\u200c\u062a\u06a9<\/strong> \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f \u0648 \u0631\u0648\u06cc \u0635\u0641\u062d\u0627\u062a \u0648\u0628 \u0628\u0627 \u0633\u0631\u0639\u062a \u0628\u0627\u0644\u0627 \u0648 \u0628\u0647 \u0632\u06cc\u0628\u0627\u06cc\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u0646\u062d\u0648\u0647\u200c\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0628\u0633\u06cc\u0627\u0631 \u0633\u0627\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<h4>\u0642\u062f\u0645 \u0627\u0648\u0644:<\/h4>\n<p>\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0644\u06cc\u0646\u06a9 \u0641\u0627\u06cc\u0644 CSS \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u062f\u0631 head \u0641\u0627\u06cc\u0644\u200c\u062a\u0627\u0646.<\/p>\n<pre><code class=\"html\">&lt;link rel=\"stylesheet\" href=\"katex.min.css\"&gt;<\/code><\/pre>\n<h4>\u0642\u062f\u0645 \u062f\u0648\u0645:<\/h4>\n<p>\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0644\u06cc\u0646\u06a9 \u0641\u0627\u06cc\u0644 \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0628\u0647 \u0627\u0646\u062a\u0647\u0627\u06cc \u0641\u0627\u06cc\u0644\u200c\u062a\u0627\u0646.<\/p>\n<pre><code class=\"html\">&lt;script src=\"katex.min.js\" type=\"text\/javascript\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<h4>\u0642\u062f\u0645 \u0633\u0648\u0645:<\/h4>\n<p>\u06cc\u06a9 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u06a9\u0648\u0686\u06a9 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f \u062a\u0627 \u0641\u0631\u0645\u0648\u0644\u200c\u0647\u0627\u06cc\u062a\u0627\u0646 \u0631\u0627 \u06a9\u0647 \u062f\u0631 \u06a9\u0644\u0627\u0633 \u062e\u0627\u0635\u06cc \u0646\u0648\u0634\u062a\u0647 \u0627\u06cc\u062f \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0647 \u0641\u0631\u0645\u0648\u0644 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0646\u062f.<\/p>\n<pre><code class=\"html\">&lt;script&gt;\r\nvar equations = document.getElementsByClassName(\"<span style=\"color: #ff0000;\">latex<\/span>\");\r\nfor (item of equations) {\r\n  try {\r\n    katex.render(item.innerHTML, item);\r\n  } catch (err) {\r\n    if (item.className.search(\"errorMessage\") == -1) item.className += \" errorMessage\";\r\n    item.innerHTML = err;\r\n  }\r\n}\r\n&lt;\/script&gt;<\/code><\/pre>\n<p>\u062f\u0631 \u067e\u0627\u06cc\u0627\u0646 \u06a9\u0644\u06cc\u0647 \u0641\u0631\u0645\u0648\u0644\u0647\u0627\u06cc\u062a\u0627\u0646 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u06a9\u0644\u0627\u0633 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f. (\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u0645\u0646 \u06a9\u0644\u0627\u0633 <span style=\"color: #ff0000;\">latex<\/span> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0645.)<\/p>\n<pre><code class=\"html\">&lt;span class=\"<span style=\"color: #ff0000;\">latex<\/span>\"&gt;\\displaystyle V = \\frac{4}{3} \\pi r^3&lt;\/span&gt;<\/code><\/pre>\n<p>\u0645\u0647\u0645 \u0646\u06cc\u0633\u062a \u0641\u0631\u0645\u0648\u0644\u200c\u0647\u0627\u06cc\u062a\u0627\u0646 \u0631\u0627 \u0628\u0627 \u06a9\u062f\u0627\u0645 \u062a\u06af HTML \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f. (div \u06cc\u0627 span)<\/p>\n<p>\u062f\u0631 \u06a9\u0627\u062f\u0631 \u0632\u06cc\u0631 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u0622\u0648\u0631\u062f\u0647\u200c\u0627\u0645 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0633\u0648\u0631\u0633 \u0622\u0646 \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f:<\/p>\n<p><iframe loading=\"lazy\" style=\"border: 2px solid;\" src=\"https:\/\/behnudi.ir\/f\/iframe\/katex\/example.html\" width=\"100%\" height=\"60\" frameborder=\"0\"><\/iframe><br \/>\n\u0628\u0631\u0627\u06cc \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u06a9\u0633\u0628 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0622\u062f\u0631\u0633 <a href=\"https:\/\/github.com\/Khan\/KaTeX\" target=\"_blank\" rel=\"noopener noreferrer\">github.com\/Khan\/KaTeX<\/a> \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u067e\u0631\u0648\u0698\u0647 KaTeX \u06cc\u06a9 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u067e\u0646 \u0633\u0648\u0631\u0633 \u0648 \u0622\u0632\u0627\u062f \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0631\u0627 \u0645\u0624\u0633\u0633\u0647 \u062e\u0627\u0646 \u0622\u06a9\u0627\u062f\u0645\u06cc \u0639\u0631\u0636\u0647 \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a.<\/p>\n","protected":false},"author":1,"featured_media":683,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[46,44],"class_list":["post-682","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-science","tag-javascript","tag-web-design"],"_links":{"self":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/posts\/682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=682"}],"version-history":[{"count":0,"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/posts\/682\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/media\/683"}],"wp:attachment":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}