{"id":88,"date":"2016-09-27T20:49:48","date_gmt":"2016-09-27T20:49:48","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/userguide\/chapter\/add-mathematical-notation\/"},"modified":"2024-09-19T04:19:24","modified_gmt":"2024-09-19T04:19:24","slug":"add-mathematical-notation","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/userguide\/chapter\/add-mathematical-notation\/","title":{"raw":"Add Mathematical Notation","rendered":"Add Mathematical Notation"},"content":{"raw":"Pressbooks offers two different methods for rendering mathematical equations in your books: via a native MathJax integration and through the WP QuickLaTeX plugin. MathJax is an open source JavaScript display engine that translates mathematical markup into accessible equations on the web. Pressbooks features a native integration with MathJax that renders math expressions with MathJax in the webbook and creates accessible image versions of equations and other mathematical markup for its EPUB and PDF exports.\n<h1><a id=\"MathJax\" href=\"\"><\/a>Display LaTeX with MathJax<\/h1>\n<div class=\"textbox shaded\"><strong>NOTE: <\/strong>MathJax is not available on Pressbooks.com. All books published on Pressbooks.com have the WP QuickLaTeX plugin enabled by default.<\/div>\nThere are two ways to use LaTeX syntax in MathJax:\n\n<strong>Shortcode syntax:\u00a0<\/strong>\n<code><strong>[la\u200btex]<\/strong>e^{i \\pi} + 1 = 0<strong>[\/lat\u200bex]<\/strong><\/code>\n\n<strong>Dollar sign syntax:\u00a0<\/strong>\n<code><strong>$latex<\/strong> e^{i \\pi} + 1 = 0<strong>$<\/strong><\/code>\n\nYou can click the LaTeX button in the visual editor to input LaTeX directly or add the syntax delimiters to an expression manually. Note that equations will not display fully formatted in the editor. However, you can view the webbook or export your files at any time to see how the equations appear.\u00a0 <a href=\"https:\/\/www.latex-project.org\/help\/documentation\/usrguide.pdf\">Learn more about LaTeX from their documentation<\/a>.\n<h1><a id=\"MathJaxAsciiMath\" href=\"\"><\/a>Display AsciiMath with MathJax<\/h1>\nMathJax is capable of rendering AsciiMath, an client-side markeup language for mathematics. There are two ways to use AsciiMath syntax in MathJax:\n\n<strong>Shortcode syntax:\u00a0<\/strong>\n<pre><strong>[asciimath]<\/strong>e^{i \\pi} + 1 = 0<strong>[\/asciimath]<\/strong><\/pre>\n<strong>Dollar sign syntax:\u00a0<\/strong>\n<pre><strong>$asciimath<\/strong> e^{i \\pi} + 1 = 0<strong>$<\/strong><\/pre>\nAsciiMath can be drafted directly in the visual editor. <a style=\"text-align: initial; font-size: 1em;\" href=\"http:\/\/asciimath.org\">Learn more about AsciiMath from their website<\/a><span style=\"text-align: initial; font-size: 1em;\">.<\/span>\n<h1><a id=\"MathJaxMathML\" href=\"\"><\/a>Display MathML with MathJax<\/h1>\nMathML is an XML-based mathematical markup language. To render MathML with MathJax, input the relevant expression using the <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/edit-content-with-the-visual-text-editors#texteditortoolbar\">Text Editor<\/a>:\n\n<strong>Example:\u00a0<\/strong>\n<pre>&lt;math&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;msup&gt; &lt;mi&gt;x&lt;\/mi&gt; &lt;mn&gt;2&lt;\/mn&gt; &lt;\/msup&gt; &lt;mo&gt;+&lt;\/mo&gt;&lt;mrow&gt;&lt;mn&gt;4&lt;\/mn&gt;&lt;mo&gt;\u2062&lt;\/mo&gt;&lt;mi&gt;x&lt;\/mi&gt;&lt;\/mrow&gt;&lt;mo&gt;+&lt;\/mo&gt;&lt;mn&gt;4&lt;\/mn&gt;&lt;\/mrow&gt;&lt;mo&gt;=&lt;\/mo&gt;&lt;mn&gt;0&lt;\/mn&gt;&lt;\/mrow&gt;&lt;\/math&gt;<\/pre>\n<div><a href=\"https:\/\/www.w3.org\/TR\/MathML3\/\">Learn more about MathML from the W3C's documentation page<\/a>.<\/div>\n<h2><a id=\"MathJaxSettings\" href=\"\"><\/a>Configure MathJax Settings<\/h2>\n<img class=\"size-full wp-image-274 alignright\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2021\/10\/Screenshot-from-2021-10-15-22-06-37.png\" alt=\"\" width=\"338\" height=\"158\">Click '<strong>Settings -&gt; MathJax<\/strong>' to access your MathJax settings page. If you do not see a MathJax settings option, this usually means that your book is using the WP QuickLaTeX plugin.\n\nThe MathJax settings page provides examples of support syntax and allows you to to change the text color of all equations in your book and select the font used when generating images for use in EPUB and PDF exports.\n<h2><a id=\"AccessibilityandOtherFeatures\" href=\"\"><\/a>Use MathJax's Accessibility Features<\/h2>\nWithin the webbook, readers can right click any equation rendered in MathJax to access additional display options and accessibility features. Options include the ability to magnify any equation on click or hover, the ability to display the math in HTML, SVG, and other formats, and more. Learn more about MathJax's <a href=\"https:\/\/docs.mathjax.org\/en\/latest\/basic\/accessibility.html\">accessibility features from their documentation.<\/a>\n\n<img class=\"aligncenter wp-image-2622 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/Screen-Shot-2019-06-12-at-4.06.14-PM.png\" alt=\"MathJax settings menu from webbook \" width=\"746\" height=\"283\">\n<h1><a id=\"QuickLaTex1\" href=\"\"><\/a>Render LaTeX with WP QuickLaTeX<\/h1>\nWP QuickLaTeX is a plugin that allows you to write native LaTeX syntax directly into your books without wrapping shortcodes around every part of every equation.\n<div class=\"textbox shaded\"><strong>Note: <\/strong>WP QuickLaTeX is the default mathematics rendering option for Pressbooks.com users and can be used as an optional replacement for MathJax within individual books on other networks.<\/div>\n&nbsp;\n\nTo enable the WP QuickLaTeX plugin:\n<ol>\n \t<li style=\"font-weight: 400;\"><img class=\"wp-image-276 size-full alignright\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/pbquicklatex7-e1634362149803.jpg\" alt=\"\" width=\"344\" height=\"238\">Click '<strong>Plugins'<\/strong> from left-hand menu of your screen<\/li>\n \t<li style=\"font-weight: 400;\">Click '<strong>Activate<\/strong>' for <strong>WP QuickLaTeX<\/strong><\/li>\n<\/ol>\nIf you do not see this option, please contact your Network Manager.\n\nOnce WP QuickLaTeX has been activated for your book, there are two recommended methods for rendering LaTeX expressions:\n<ol>\n \t<li><strong>Use the<\/strong> <code>[la\u200btex]<\/code> <strong>shortcode.<\/strong> A sample expression would look like this: <code>[la\u200btex]x^2 + y^2 = z^3[\/lat\u200bex]<\/code>.<\/li>\n \t<li><strong>Add a <\/strong><code>[latexpage]<\/code><strong> shortcode to the top of your chapter. <\/strong>Adding [latexpage] to the top of a chapter will ensure that everything written in LaTeX syntax will be rendered by WP QuickLaTeX without additional LaTeX syntax delimiters. For example, if you were to input the following:<\/li>\n<\/ol>\n<div class=\"textbox\">\n<pre>[latexpage]\nAt first, we sample $f(x)$ in the $N$ ($N$ is odd) equidistant points around $x^*$:\n\\[\nf_k = f(x_k),\\: x_k = x^*+kh,\\: k=-\\frac{N-1}{2},\\dots,\\frac{N-1}{2}\n\\]\nwhere $h$ is some step.\nThen we interpolate points $\\{(x_k,f_k)\\}$ by polynomial\n\\begin{equation}\u00a0\\label{eq:poly}\nP_{N-1}(x)=\\sum_{j=0}^{N-1}{a_jx^j}\n\\end{equation}\nIts coefficients $\\{a_j\\}$ are found as a solution of system of linear equations:\n\\begin{equation}\u00a0\\label{eq:sys}\n\\left\\{ P_{N-1}(x_k) = f_k\\right\\},\\quad k=-\\frac{N-1}{2},\\dots,\\frac{N-1}{2}\n\\end{equation}\nHere are references to existing equations: (\\ref{eq:poly}), (\\ref{eq:sys}).\nHere is reference to non-existing equation (\\ref{eq:unknown}).<\/pre>\n<\/div>\nWP QuickLaTeX would render something which looks like this:\n\n<img class=\"wp-image-277 size-full alignnone\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/quicklatexsc2.png\" alt=\"Example of QuickLaTeX\" width=\"520\" height=\"431\">\n<div class=\"textbox shaded\">\n\nThere are a few places in your book where you should not use<code> [latex]<\/code> shortcodes:\n<ul>\n \t<li><strong>Shortcode elements generally cannot be nested within other shortcodes.<\/strong> <code>[latex]<\/code>\u00a0shortcodes can be used inside of\u00a0<code>[footnote]<\/code>\u00a0and <code>[blockquote]<\/code> shortcodes, but<code>\u00a0[asciimath]<\/code> and <code>[latex]<\/code> shortcodes cannot be nested inside of other shortcode elements. If you're trying to render LaTeX inside of an shortcode which does not permit nested shortcodes, we recommend using the non-shortcode based syntax delimiters.<\/li>\n \t<li><strong>Titles.\u00a0<\/strong>Equations won't look good inside of a title because the style of the math will override the style of the heading. The code used to create the equation may also display in the table of contents.<\/li>\n \t<li><strong>Running content.\u00a0<\/strong>Similar to titles, the code used to create the equation may display in the running content.<\/li>\n<\/ul>\n<\/div>\n&nbsp;\n<h2>Configure WP QuickLaTeX's Settings<\/h2>\nTo customize the settings for WP QuickLaTeX, click <strong>Settings &gt; QuickLaTeX<\/strong> from the left-hand menu of your book's dashboard.\n\n<img class=\"alignnone wp-image-278 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/pbquicklatex4-e1634362788563.png\" alt=\"\" width=\"1138\" height=\"809\">\nQuickLaTeX provides both <strong>Basic Settings\u00a0<\/strong>and <strong>Advanced\u00a0<\/strong>settings through different tabs in their settings page. <a href=\"http:\/\/www.holoborodko.com\/pavel\/quicklatex\/#intro\">Learn more about using WP QuickLaTeX from its documention<\/a>.\n<h1><a id=\"usingmathinh5p\" href=\"\"><\/a>Render LaTeX in H5P Activities<\/h1>\nYou can render LaTeX inside of <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/h5p\/\">H5P activities<\/a> you've created in Pressbooks, but you'll first need to add the mathematics library to your book's H5P libraries page. To do this:\n<ol>\n \t<li>Activate the H5P plugin<\/li>\n \t<li>Download <a href=\"https:\/\/h5p.org\/sites\/default\/files\/h5p-math-display-1.0.7.h5p\">H5P's mathematics library<\/a> to your device<\/li>\n \t<li>Click <strong>H5P Content &gt; Libraries\u00a0<\/strong>from the left sidebar menu<\/li>\n \t<li>Click\u00a0<strong>Choose File<\/strong> and select the H5P mathematics library file you downloaded in step 2.<\/li>\n \t<li>Click\u00a0<strong>Upload<\/strong><\/li>\n<\/ol>\nLearn more about using <a href=\"https:\/\/h5p.org\/mathematical-expressions\">Mathematical expressions in H5P activities from their documentation<\/a>.\n<h1><a id=\"UsingMathinTablePress\" href=\"\"><\/a>Use Math in TablePress<\/h1>\nYou can use MathML or LaTeX to create equations and formulas in the tables you make in TablePress. To render MathML, write your markup directly into the table cells in TablePress as you would in the text editor.\n\nTo render LaTeX expressions in TablePress tables, activate the WP QuickLaTeX plugin and enable the \"Use LaTeX Syntax Sitewide\" setting (available under <strong>Settings -&gt; QuickLaTeX -&gt;<\/strong> <strong>Advanced<\/strong>). Once you've enabled this setting, you can use any supported QuickLaTeX syntax to create your equation within the table's cells. All content can be edited from within the TablePress interface.","rendered":"<p>Pressbooks offers two different methods for rendering mathematical equations in your books: via a native MathJax integration and through the WP QuickLaTeX plugin. MathJax is an open source JavaScript display engine that translates mathematical markup into accessible equations on the web. Pressbooks features a native integration with MathJax that renders math expressions with MathJax in the webbook and creates accessible image versions of equations and other mathematical markup for its EPUB and PDF exports.<\/p>\n<h1><a id=\"MathJax\" href=\"\"><\/a>Display LaTeX with MathJax<\/h1>\n<div class=\"textbox shaded\"><strong>NOTE: <\/strong>MathJax is not available on Pressbooks.com. All books published on Pressbooks.com have the WP QuickLaTeX plugin enabled by default.<\/div>\n<p>There are two ways to use LaTeX syntax in MathJax:<\/p>\n<p><strong>Shortcode syntax:\u00a0<\/strong><br \/>\n<code><strong>[la\u200btex]<\/strong>e^{i \\pi} + 1 = 0<strong>[\/lat\u200bex]<\/strong><\/code><\/p>\n<p><strong>Dollar sign syntax:\u00a0<\/strong><br \/>\n<code><strong><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-f9d1c2d305c5249815db706b7553065f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#60;&#47;&#115;&#116;&#114;&#111;&#110;&#103;&#62;&#32;&#101;&#94;&#123;&#105;&#32;&#92;&#112;&#105;&#125;&#32;&#43;&#32;&#49;&#32;&#61;&#32;&#48;&#60;&#115;&#116;&#114;&#111;&#110;&#103;&#62;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"280\" style=\"vertical-align: -5px;\" \/><\/strong><\/code><\/p>\n<p>You can click the LaTeX button in the visual editor to input LaTeX directly or add the syntax delimiters to an expression manually. Note that equations will not display fully formatted in the editor. However, you can view the webbook or export your files at any time to see how the equations appear.\u00a0 <a href=\"https:\/\/www.latex-project.org\/help\/documentation\/usrguide.pdf\">Learn more about LaTeX from their documentation<\/a>.<\/p>\n<h1><a id=\"MathJaxAsciiMath\" href=\"\"><\/a>Display AsciiMath with MathJax<\/h1>\n<p>MathJax is capable of rendering AsciiMath, an client-side markeup language for mathematics. There are two ways to use AsciiMath syntax in MathJax:<\/p>\n<p><strong>Shortcode syntax:\u00a0<\/strong><\/p>\n<pre><strong>[asciimath]<\/strong>e^{i \\pi} + 1 = 0<strong>[\/asciimath]<\/strong><\/pre>\n<p><strong>Dollar sign syntax:\u00a0<\/strong><\/p>\n<pre><strong><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-66ddc1611ad66715395646d5ffb2a35c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#115;&#99;&#105;&#105;&#109;&#97;&#116;&#104;&#60;&#47;&#115;&#116;&#114;&#111;&#110;&#103;&#62;&#32;&#101;&#94;&#123;&#105;&#32;&#92;&#112;&#105;&#125;&#32;&#43;&#32;&#49;&#32;&#61;&#32;&#48;&#60;&#115;&#116;&#114;&#111;&#110;&#103;&#62;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"365\" style=\"vertical-align: -5px;\" \/><\/strong><\/pre>\n<p>AsciiMath can be drafted directly in the visual editor. <a style=\"text-align: initial; font-size: 1em;\" href=\"http:\/\/asciimath.org\">Learn more about AsciiMath from their website<\/a><span style=\"text-align: initial; font-size: 1em;\">.<\/span><\/p>\n<h1><a id=\"MathJaxMathML\" href=\"\"><\/a>Display MathML with MathJax<\/h1>\n<p>MathML is an XML-based mathematical markup language. To render MathML with MathJax, input the relevant expression using the <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/edit-content-with-the-visual-text-editors#texteditortoolbar\">Text Editor<\/a>:<\/p>\n<p><strong>Example:\u00a0<\/strong><\/p>\n<pre>&lt;math&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;msup&gt; &lt;mi&gt;x&lt;\/mi&gt; &lt;mn&gt;2&lt;\/mn&gt; &lt;\/msup&gt; &lt;mo&gt;+&lt;\/mo&gt;&lt;mrow&gt;&lt;mn&gt;4&lt;\/mn&gt;&lt;mo&gt;\u2062&lt;\/mo&gt;&lt;mi&gt;x&lt;\/mi&gt;&lt;\/mrow&gt;&lt;mo&gt;+&lt;\/mo&gt;&lt;mn&gt;4&lt;\/mn&gt;&lt;\/mrow&gt;&lt;mo&gt;=&lt;\/mo&gt;&lt;mn&gt;0&lt;\/mn&gt;&lt;\/mrow&gt;&lt;\/math&gt;<\/pre>\n<div><a href=\"https:\/\/www.w3.org\/TR\/MathML3\/\">Learn more about MathML from the W3C&#8217;s documentation page<\/a>.<\/div>\n<h2><a id=\"MathJaxSettings\" href=\"\"><\/a>Configure MathJax Settings<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-274 alignright\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2021\/10\/Screenshot-from-2021-10-15-22-06-37.png\" alt=\"\" width=\"338\" height=\"158\" \/>Click &#8216;<strong>Settings -&gt; MathJax<\/strong>&#8216; to access your MathJax settings page. If you do not see a MathJax settings option, this usually means that your book is using the WP QuickLaTeX plugin.<\/p>\n<p>The MathJax settings page provides examples of support syntax and allows you to to change the text color of all equations in your book and select the font used when generating images for use in EPUB and PDF exports.<\/p>\n<h2><a id=\"AccessibilityandOtherFeatures\" href=\"\"><\/a>Use MathJax&#8217;s Accessibility Features<\/h2>\n<p>Within the webbook, readers can right click any equation rendered in MathJax to access additional display options and accessibility features. Options include the ability to magnify any equation on click or hover, the ability to display the math in HTML, SVG, and other formats, and more. Learn more about MathJax&#8217;s <a href=\"https:\/\/docs.mathjax.org\/en\/latest\/basic\/accessibility.html\">accessibility features from their documentation.<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2622 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/Screen-Shot-2019-06-12-at-4.06.14-PM.png\" alt=\"MathJax settings menu from webbook\" width=\"746\" height=\"283\" \/><\/p>\n<h1><a id=\"QuickLaTex1\" href=\"\"><\/a>Render LaTeX with WP QuickLaTeX<\/h1>\n<p>WP QuickLaTeX is a plugin that allows you to write native LaTeX syntax directly into your books without wrapping shortcodes around every part of every equation.<\/p>\n<div class=\"textbox shaded\"><strong>Note: <\/strong>WP QuickLaTeX is the default mathematics rendering option for Pressbooks.com users and can be used as an optional replacement for MathJax within individual books on other networks.<\/div>\n<p>&nbsp;<\/p>\n<p>To enable the WP QuickLaTeX plugin:<\/p>\n<ol>\n<li style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-276 size-full alignright\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/pbquicklatex7-e1634362149803.jpg\" alt=\"\" width=\"344\" height=\"238\" \/>Click &#8216;<strong>Plugins&#8217;<\/strong> from left-hand menu of your screen<\/li>\n<li style=\"font-weight: 400;\">Click &#8216;<strong>Activate<\/strong>&#8216; for <strong>WP QuickLaTeX<\/strong><\/li>\n<\/ol>\n<p>If you do not see this option, please contact your Network Manager.<\/p>\n<p>Once WP QuickLaTeX has been activated for your book, there are two recommended methods for rendering LaTeX expressions:<\/p>\n<ol>\n<li><strong>Use the<\/strong> <code>[la\u200btex]<\/code> <strong>shortcode.<\/strong> A sample expression would look like this: <code>[la\u200btex]x^2 + y^2 = z^3[\/lat\u200bex]<\/code>.<\/li>\n<li><strong>Add a <\/strong><code><\/code><strong> shortcode to the top of your chapter. <\/strong>Adding  to the top of a chapter will ensure that everything written in LaTeX syntax will be rendered by WP QuickLaTeX without additional LaTeX syntax delimiters. For example, if you were to input the following:<\/li>\n<\/ol>\n<div class=\"textbox\">\n<pre>\nAt first, we sample <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-a7ee323bc5a3f73ad5e066b13bed5504_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"34\" style=\"vertical-align: -5px;\" \/> in the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-5793832f979c2268e3694c246d53b1bb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#78;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\" \/> (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-5793832f979c2268e3694c246d53b1bb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#78;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\" \/> is odd) equidistant points around <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-c674b8a19afef366cde8b4327cf616a6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\" \/>:\n<span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-a0198aa34cb890df7867660b021fea76_l3.png\" height=\"37\" width=\"394\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091; &#102;&#95;&#107;&#32;&#61;&#32;&#102;&#40;&#120;&#95;&#107;&#41;&#44;&#92;&#58;&#32;&#120;&#95;&#107;&#32;&#61;&#32;&#120;&#94;&#42;&#43;&#107;&#104;&#44;&#92;&#58;&#32;&#107;&#61;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#50;&#125;&#44;&#92;&#100;&#111;&#116;&#115;&#44;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#50;&#125; &#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/>\nwhere <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-14b463d0ecd5b350ced6cf1d6a12eef3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\" \/> is some step.\nThen we interpolate points <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-7533d26ee3d041fdec0e7003402fd17c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#123;&#40;&#120;&#95;&#107;&#44;&#102;&#95;&#107;&#41;&#92;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"73\" style=\"vertical-align: -5px;\" \/> by polynomial\n<a name=\"id1256572768\" id=\"id1256572768\"><\/a><span class=\"ql-right-eqno\"> (1) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-47c38a9d17d346fd02358e56618adb25_l3.png\" height=\"55\" width=\"155\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#80;&#95;&#123;&#78;&#45;&#49;&#125;&#40;&#120;&#41;&#61;&#92;&#115;&#117;&#109;&#95;&#123;&#106;&#61;&#48;&#125;&#94;&#123;&#78;&#45;&#49;&#125;&#123;&#97;&#95;&#106;&#120;&#94;&#106;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\" \/>\nIts coefficients <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-128db25d35cf9e1dea1551c952f93243_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#123;&#97;&#95;&#106;&#92;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"32\" style=\"vertical-align: -6px;\" \/> are found as a solution of system of linear equations:\n<a name=\"id1849440091\" id=\"id1849440091\"><\/a><span class=\"ql-right-eqno\"> (2) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/userguide\/wp-content\/ql-cache\/quicklatex.com-ea31d1d9bdaf88e2d0cf93ef20b5c65b_l3.png\" height=\"37\" width=\"347\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#80;&#95;&#123;&#78;&#45;&#49;&#125;&#40;&#120;&#95;&#107;&#41;&#32;&#61;&#32;&#102;&#95;&#107;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#44;&#92;&#113;&#117;&#97;&#100;&#32;&#107;&#61;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#50;&#125;&#44;&#92;&#100;&#111;&#116;&#115;&#44;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\" \/>\nHere are references to existing equations: (<a href=\"#id1256572768\">1<\/a>), (<a href=\"#id1849440091\">2<\/a>).\nHere is reference to non-existing equation (??).<\/pre>\n<\/div>\n<p>WP QuickLaTeX would render something which looks like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-277 size-full alignnone\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/quicklatexsc2.png\" alt=\"Example of QuickLaTeX\" width=\"520\" height=\"431\" \/><\/p>\n<div class=\"textbox shaded\">\n<p>There are a few places in your book where you should not use<code> [latex]<\/code> shortcodes:<\/p>\n<ul>\n<li><strong>Shortcode elements generally cannot be nested within other shortcodes.<\/strong> <code>[latex]<\/code>\u00a0shortcodes can be used inside of\u00a0<code><\/code>\u00a0and <code><\/code> shortcodes, but<code>\u00a0[asciimath]<\/code> and <code>[latex]<\/code> shortcodes cannot be nested inside of other shortcode elements. If you're trying to render LaTeX inside of an shortcode which does not permit nested shortcodes, we recommend using the non-shortcode based syntax delimiters.<\/li>\n<li><strong>Titles.\u00a0<\/strong>Equations won't look good inside of a title because the style of the math will override the style of the heading. The code used to create the equation may also display in the table of contents.<\/li>\n<li><strong>Running content.\u00a0<\/strong>Similar to titles, the code used to create the equation may display in the running content.<\/li>\n<\/ul>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>Configure WP QuickLaTeX's Settings<\/h2>\n<p>To customize the settings for WP QuickLaTeX, click <strong>Settings &gt; QuickLaTeX<\/strong> from the left-hand menu of your book's dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-278 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/pbquicklatex4-e1634362788563.png\" alt=\"\" width=\"1138\" height=\"809\" \/><br \/>\nQuickLaTeX provides both <strong>Basic Settings\u00a0<\/strong>and <strong>Advanced\u00a0<\/strong>settings through different tabs in their settings page. <a href=\"http:\/\/www.holoborodko.com\/pavel\/quicklatex\/#intro\">Learn more about using WP QuickLaTeX from its documention<\/a>.<\/p>\n<h1><a id=\"usingmathinh5p\" href=\"\"><\/a>Render LaTeX in H5P Activities<\/h1>\n<p>You can render LaTeX inside of <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/h5p\/\">H5P activities<\/a> you've created in Pressbooks, but you'll first need to add the mathematics library to your book's H5P libraries page. To do this:<\/p>\n<ol>\n<li>Activate the H5P plugin<\/li>\n<li>Download <a href=\"https:\/\/h5p.org\/sites\/default\/files\/h5p-math-display-1.0.7.h5p\">H5P's mathematics library<\/a> to your device<\/li>\n<li>Click <strong>H5P Content &gt; Libraries\u00a0<\/strong>from the left sidebar menu<\/li>\n<li>Click\u00a0<strong>Choose File<\/strong> and select the H5P mathematics library file you downloaded in step 2.<\/li>\n<li>Click\u00a0<strong>Upload<\/strong><\/li>\n<\/ol>\n<p>Learn more about using <a href=\"https:\/\/h5p.org\/mathematical-expressions\">Mathematical expressions in H5P activities from their documentation<\/a>.<\/p>\n<h1><a id=\"UsingMathinTablePress\" href=\"\"><\/a>Use Math in TablePress<\/h1>\n<p>You can use MathML or LaTeX to create equations and formulas in the tables you make in TablePress. To render MathML, write your markup directly into the table cells in TablePress as you would in the text editor.<\/p>\n<p>To render LaTeX expressions in TablePress tables, activate the WP QuickLaTeX plugin and enable the \"Use LaTeX Syntax Sitewide\" setting (available under <strong>Settings -&gt; QuickLaTeX -&gt;<\/strong> <strong>Advanced<\/strong>). Once you've enabled this setting, you can use any supported QuickLaTeX syntax to create your equation within the table's cells. All content can be edited from within the TablePress interface.<\/p>\n","protected":false},"author":1,"menu_order":18,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-88","chapter","type-chapter","status-publish","hentry"],"part":53,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/88\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/88\/revisions\/89"}],"part":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/parts\/53"}],"metadata":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/88\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapter-type?post=88"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/contributor?post=88"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/license?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}