{"id":86,"date":"2017-05-16T19:35:53","date_gmt":"2017-05-16T19:35:53","guid":{"rendered":"https:\/\/integrations.pressbooks.network\/pressbooks101\/chapter\/latex\/"},"modified":"2020-05-15T01:04:56","modified_gmt":"2020-05-15T01:04:56","slug":"latex","status":"publish","type":"chapter","link":"https:\/\/integrations.pressbooks.network\/pressbooks101\/chapter\/latex\/","title":{"raw":"LaTeX","rendered":"LaTeX"},"content":{"raw":"<div class=\"textbox shaded\">\n\nLaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. The brilliant thing about Pressbooks is that it allows you to use LaTex within your book to make mathematical, scientific, and technical notation.\n\nIn this chapter, you'll learn:\n<ul>\n \t<li>Where you can generate LaTex code<\/li>\n \t<li>How to take that code and use it in Pressbooks<\/li>\n<\/ul>\n&nbsp;\n\n<\/div>\n<h4>\u00a0LaTex Code<\/h4>\nLaTex rendered looks like this:\n\n[latex]\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}[\/latex]\n\nIf you want to create mathematical, scientific, and technical notation and formulas, but do not know how to code LaTex, we recommend that you go to:\n\n<a href=\"http:\/\/www.hostmath.com\/\">http:\/\/www.hostmath.com\/<\/a>\n\nThere you'll find a WYSIWYG interface where you can build your notation and then generate the LaTex code to copy and paste into your chapters. As you'll see in the screenshot below, the LaTex is in the top pane, and how the actual notation will display in your chapter is in the bottom pane. HostMath offers an easy drag-and-drop interface where you can build your LaTex with ease.\n<p style=\"text-align: center;\"><a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/HostMath-Editing-Pane.png\"><img class=\"alignnone wp-image-82 size-full\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane.png\" alt=\"display with equation symbols on the left, an equation preview window at the bottom, and a string of LaTex characters at the top\" width=\"936\" height=\"725\"><\/a><\/p>\n\n<h4>Putting LaTex in your Pressbook<\/h4>\nIf the code it generates does not automatically transfer itself into LaTex, you'll need to add an opening tag and an end tag.\n\nThe opening tag is:\u00a0<a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/Screen-Shot-2018-06-22-at-2.42.02-PM.png\"><img class=\"alignnone wp-image-83\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.02-PM.png\" alt=\"LaTtex opening tag &quot;latex&quot; in square brackets\" width=\"74\" height=\"40\"><\/a>\n\nThe closing tag is:\u00a0\u00a0<a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/Screen-Shot-2018-06-22-at-2.42.06-PM.png\"><img class=\"alignnone wp-image-84\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.06-PM.png\" alt=\"latex closing tag &quot;\/latex&quot; in square brackets\" width=\"83\" height=\"30\"><\/a>\n\nFor example, I copied and pasted the code in the generator above, and it looks exactly the same. It doesn't render into LaTex.\n\n\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}\n\nHowever, adding the opening and closing tags to the code causes the code to render properly.\n<pre><a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM.png\"><img class=\"alignnone wp-image-85\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM-300x24.png\" alt=\"latex code string with formatting wrappers\" width=\"500\" height=\"40\"><\/a>\nTurns into this:<\/pre>\n[latex]\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}[\/latex]\n\nFor more guidance on using mathematical expressions and LaTeX in your book, we recommend referring to the\u00a0<a href=\"https:\/\/guide.pressbooks.com\/chapter\/equations-and-formulas\/\" target=\"_blank\" rel=\"noopener noreferrer\">chapter on equations and formulae<\/a>\u00a0in the Pressbooks user's guide .\n\n&nbsp;\n\n&nbsp;","rendered":"<div class=\"textbox shaded\">\n<p>LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. The brilliant thing about Pressbooks is that it allows you to use LaTex within your book to make mathematical, scientific, and technical notation.<\/p>\n<p>In this chapter, you&#8217;ll learn:<\/p>\n<ul>\n<li>Where you can generate LaTex code<\/li>\n<li>How to take that code and use it in Pressbooks<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<\/div>\n<h4>\u00a0LaTex Code<\/h4>\n<p>LaTex rendered looks like this:<\/p>\n<p>[latex]\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}[\/latex]<\/p>\n<p>If you want to create mathematical, scientific, and technical notation and formulas, but do not know how to code LaTex, we recommend that you go to:<\/p>\n<p><a href=\"http:\/\/www.hostmath.com\/\">http:\/\/www.hostmath.com\/<\/a><\/p>\n<p>There you&#8217;ll find a WYSIWYG interface where you can build your notation and then generate the LaTex code to copy and paste into your chapters. As you&#8217;ll see in the screenshot below, the LaTex is in the top pane, and how the actual notation will display in your chapter is in the bottom pane. HostMath offers an easy drag-and-drop interface where you can build your LaTex with ease.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/HostMath-Editing-Pane.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-82 size-full\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane.png\" alt=\"display with equation symbols on the left, an equation preview window at the bottom, and a string of LaTex characters at the top\" width=\"936\" height=\"725\" srcset=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane.png 936w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane-300x232.png 300w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane-768x595.png 768w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane-65x50.png 65w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane-225x174.png 225w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2017\/05\/HostMath-Editing-Pane-350x271.png 350w\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" \/><\/a><\/p>\n<h4>Putting LaTex in your Pressbook<\/h4>\n<p>If the code it generates does not automatically transfer itself into LaTex, you&#8217;ll need to add an opening tag and an end tag.<\/p>\n<p>The opening tag is:\u00a0<a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/Screen-Shot-2018-06-22-at-2.42.02-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-83\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.02-PM.png\" alt=\"LaTtex opening tag &quot;latex&quot; in square brackets\" width=\"74\" height=\"40\" srcset=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.02-PM.png 119w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.02-PM-65x35.png 65w\" sizes=\"auto, (max-width: 74px) 100vw, 74px\" \/><\/a><\/p>\n<p>The closing tag is:\u00a0\u00a0<a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/Screen-Shot-2018-06-22-at-2.42.06-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-84\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.06-PM.png\" alt=\"latex closing tag &quot;\/latex&quot; in square brackets\" width=\"83\" height=\"30\" srcset=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.06-PM.png 139w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.42.06-PM-65x23.png 65w\" sizes=\"auto, (max-width: 83px) 100vw, 83px\" \/><\/a><\/p>\n<p>For example, I copied and pasted the code in the generator above, and it looks exactly the same. It doesn&#8217;t render into LaTex.<\/p>\n<p>\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}<\/p>\n<p>However, adding the opening and closing tags to the code causes the code to render properly.<\/p>\n<pre><a href=\"https:\/\/wisc.pb.unizin.org\/app\/uploads\/sites\/67\/2017\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-85\" src=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM-300x24.png\" alt=\"latex code string with formatting wrappers\" width=\"500\" height=\"40\" srcset=\"https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM-300x24.png 300w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM-768x61.png 768w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM-65x5.png 65w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM-225x18.png 225w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM-350x28.png 350w, https:\/\/integrations.pressbooks.network\/app\/uploads\/sites\/100\/2020\/05\/Screen-Shot-2018-06-22-at-2.39.59-PM.png 999w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a>\nTurns into this:<\/pre>\n<p>[latex]\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}[\/latex]<\/p>\n<p>For more guidance on using mathematical expressions and LaTeX in your book, we recommend referring to the\u00a0<a href=\"https:\/\/guide.pressbooks.com\/chapter\/equations-and-formulas\/\" target=\"_blank\" rel=\"noopener noreferrer\">chapter on equations and formulae<\/a>\u00a0in the Pressbooks user&#8217;s guide .<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":14,"menu_order":8,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-86","chapter","type-chapter","status-publish","hentry"],"part":19,"_links":{"self":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/users\/14"}],"version-history":[{"count":1,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/86\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/86\/revisions\/87"}],"part":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/parts\/19"}],"metadata":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/86\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapter-type?post=86"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/contributor?post=86"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/license?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}