{"id":830,"date":"2024-12-10T20:40:20","date_gmt":"2024-12-10T20:40:20","guid":{"rendered":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/?post_type=chapter&#038;p=830"},"modified":"2026-04-16T13:55:38","modified_gmt":"2026-04-16T13:55:38","slug":"latex-examples","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/chapter\/latex-examples\/","title":{"raw":"LaTeX Examples","rendered":"LaTeX Examples"},"content":{"raw":"[latex]null[\/latex][latex][latex]\\%[\/latex][\/latex]LaTeX coding is inserted using the LaTeX icon (looks like a calculator) in the editing toolbar:\r\n<h2><img src=\"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-content\/uploads\/sites\/9\/2024\/12\/Latex_editing-1024x159.png\" alt=\"\" width=\"720\" height=\"91\" class=\"alignnone wp-image-833\" \/><\/h2>\r\nIn the editor, the coding looks like this:\r\n<pre>[latex]S=\\sqrt\\frac{\\Sigma{\\left(X_i-\\bar{X}\\right )}^2}{N}[\/latex]\r\n\r\nand \r\n\r\n<span style=\"font-size: 1em;\">[latex]t=\\frac{\\bar{x}_1-\\bar{x}_2}{\\sqrt{\\frac{s^2_1}{n_1}+\\frac{s^2_2}{n_2}}}[\/latex]<\/span><\/pre>\r\nbut this is how the content renders to the end user:\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Examples<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n<strong>Example 1<\/strong>\r\n\r\n&nbsp;\r\n<div>[latex]S=\\sqrt\\frac{\\Sigma{\\left(X_i-\\bar{X}\\right )}^2}{N}[\/latex]<\/div>\r\n<\/div>\r\n<div class=\"textbox__content\">\r\n\r\n<strong>Example 2<\/strong>\r\n\r\n&nbsp;\r\n<div><span style=\"font-size: 1em;\">[latex]t=\\frac{\\bar{x}_1-\\bar{x}_2}{\\sqrt{\\frac{s^2_1}{n_1}+\\frac{s^2_2}{n_2}}}[\/latex]<\/span><\/div>\r\n<\/div>\r\n<\/div>\r\n<div>[latex]\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}[\/latex]<\/div>\r\n<div><\/div>\r\n<div><\/div>\r\n<div><\/div>\r\n<div><\/div>\r\n<div><\/div>\r\n<div>[latex](a^2 + b^2 = c^2)[\/latex]<\/div>","rendered":"<p>[latex]null[\/latex][latex][latex]\\%[\/latex][\/latex]LaTeX coding is inserted using the LaTeX icon (looks like a calculator) in the editing toolbar:<\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-content\/uploads\/sites\/9\/2024\/12\/Latex_editing-1024x159.png\" alt=\"\" width=\"720\" height=\"91\" class=\"alignnone wp-image-833\" \/><\/h2>\n<p>In the editor, the coding looks like this:<\/p>\n<pre>[latex]S=\\sqrt\\frac{\\Sigma{\\left(X_i-\\bar{X}\\right )}^2}{N}[\/latex]\r\n\r\nand \r\n\r\n<span style=\"font-size: 1em;\">[latex]t=\\frac{\\bar{x}_1-\\bar{x}_2}{\\sqrt{\\frac{s^2_1}{n_1}+\\frac{s^2_2}{n_2}}}[\/latex]<\/span><\/pre>\n<p>but this is how the content renders to the end user:<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Examples<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p><strong>Example 1<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div>[latex]S=\\sqrt\\frac{\\Sigma{\\left(X_i-\\bar{X}\\right )}^2}{N}[\/latex]<\/div>\n<\/div>\n<div class=\"textbox__content\">\n<p><strong>Example 2<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div><span style=\"font-size: 1em;\">[latex]t=\\frac{\\bar{x}_1-\\bar{x}_2}{\\sqrt{\\frac{s^2_1}{n_1}+\\frac{s^2_2}{n_2}}}[\/latex]<\/span><\/div>\n<\/div>\n<\/div>\n<div>[latex]\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}[\/latex]<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div>[latex](a^2 + b^2 = c^2)[\/latex]<\/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-830","chapter","type-chapter","status-publish","hentry"],"part":718,"_links":{"self":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/pressbooks\/v2\/chapters\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":14,"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/pressbooks\/v2\/chapters\/830\/revisions"}],"predecessor-version":[{"id":1096,"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/pressbooks\/v2\/chapters\/830\/revisions\/1096"}],"part":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/pressbooks\/v2\/parts\/718"}],"metadata":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/pressbooks\/v2\/chapters\/830\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/wp\/v2\/media?parent=830"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/pressbooks\/v2\/chapter-type?post=830"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/wp\/v2\/contributor?post=830"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/bearguide\/wp-json\/wp\/v2\/license?post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}