{"id":54,"date":"2016-10-25T20:46:31","date_gmt":"2016-10-25T20:46:31","guid":{"rendered":"http:\/\/pressbooks.library.ryerson.ca\/authorsguide\/?post_type=chapter&#038;p=54"},"modified":"2017-01-23T15:05:49","modified_gmt":"2017-01-23T15:05:49","slug":"math-and-science-formulas-using-latex","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/chapter\/math-and-science-formulas-using-latex\/","title":{"raw":"Math and Science Formulas Using LaTeX","rendered":"Math and Science Formulas Using LaTeX"},"content":{"raw":"Pressbooks supports LaTeX code, a typesetting language that is often used to format complex science and math equations.\r\n\r\nYou can enter LaTeX code in the Text version of the editor\u00a0(not Visual) by putting <code>$latex<\/code> before your LaTeX code. At the end of your LaTeX code, add a dollar sign ($) to tell Pressbooks that you are finished entering LaTeX code. Your LaTeX code should look like this:\r\n\r\n<code>$latex<\/code> <code>enter-your-latex-code$<\/code>\r\n\r\nThis LaTeX code then gets converted to an image when viewed in a browser or exported to an ePub or PDF.\r\n\r\n<strong>More resources<\/strong>\r\n<ul>\r\n \t<li><a href=\"https:\/\/wordpress.org\/plugins\/latex\/\">LaTex in WordPress<\/a><\/li>\r\n \t<li><a href=\"http:\/\/www.latex-project.org\/guides\/\" target=\"_blank\">LaTeX reference guides<\/a><\/li>\r\n<\/ul>\r\n<div class=\"textbox shaded\">This chapter is an adaptation of \"Math and Science Formulas Using LaTeX\" from the <a href=\"https:\/\/opentextbc.ca\/opentextbook\"><em>BC Open Textbook Authoring Guide<\/em><\/a> by Lauri Aesoph and Amanda Coolidge.<\/div>","rendered":"<p>Pressbooks supports LaTeX code, a typesetting language that is often used to format complex science and math equations.<\/p>\n<p>You can enter LaTeX code in the Text version of the editor\u00a0(not Visual) by putting <code>$latex<\/code> before your LaTeX code. At the end of your LaTeX code, add a dollar sign ($) to tell Pressbooks that you are finished entering LaTeX code. Your LaTeX code should look like this:<\/p>\n<p><code>$latex<\/code> <code>enter-your-latex-code$<\/code><\/p>\n<p>This LaTeX code then gets converted to an image when viewed in a browser or exported to an ePub or PDF.<\/p>\n<p><strong>More resources<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/latex\/\">LaTex in WordPress<\/a><\/li>\n<li><a href=\"http:\/\/www.latex-project.org\/guides\/\" target=\"_blank\">LaTeX reference guides<\/a><\/li>\n<\/ul>\n<div class=\"textbox shaded\">This chapter is an adaptation of &#8220;Math and Science Formulas Using LaTeX&#8221; from the <a href=\"https:\/\/opentextbc.ca\/opentextbook\"><em>BC Open Textbook Authoring Guide<\/em><\/a> by Lauri Aesoph and Amanda Coolidge.<\/div>\n","protected":false},"author":2,"menu_order":9,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-54","chapter","type-chapter","status-publish","hentry"],"part":35,"_links":{"self":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/pressbooks\/v2\/chapters\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":6,"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/pressbooks\/v2\/chapters\/54\/revisions"}],"predecessor-version":[{"id":793,"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/pressbooks\/v2\/chapters\/54\/revisions\/793"}],"part":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/pressbooks\/v2\/parts\/35"}],"metadata":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/pressbooks\/v2\/chapters\/54\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/pressbooks\/v2\/chapter-type?post=54"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/wp\/v2\/contributor?post=54"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/authorsguide\/wp-json\/wp\/v2\/license?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}