{"id":204,"date":"2019-03-10T23:09:55","date_gmt":"2019-03-11T03:09:55","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/?post_type=part&#038;p=204"},"modified":"2019-05-03T18:06:09","modified_gmt":"2019-05-03T22:06:09","slug":"more-advanced-documents","status":"publish","type":"part","link":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/part\/more-advanced-documents\/","title":{"raw":"Packages","rendered":"Packages"},"content":{"raw":"When using Latex in Pressbooks, you automatically have access to the basic Latex library and the American Mathematical Society (AMS) math package. If you are only using Latex to typeset equations, this will provide the needed functionality. However, Latex also allows users to develop and share their own packages which implement additional functionalities like typesetting non-latin languages or creating the plots and figures.\r\n\r\nTo be able to use a package when using Latex in Pressbooks, you will need to add the package in the settings for the Plugin. First, click on Plugins and choose 'Settings' under the WP QuickLaTeX editor.\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-1024x658.png\" alt=\"Screenshot of choosing Settings for the QuickLatex plugin.\" width=\"1024\" height=\"658\" class=\"alignnone size-large wp-image-325\" \/>\r\n\r\nChoose the 'Advanced' tab under settings and scroll down to the box where you can add commands.\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-1024x658.png\" alt=\"Screenshot of the advanced tab of the QuickLatex plugin.\" width=\"1024\" height=\"658\" class=\"alignnone size-large wp-image-324\" \/>\r\n\r\nHere you can configure your Latex setup. For now, we'll just add packages that will allow us to write phonetic transcriptions and create plots.\r\n\r\n<code>\r\n\\usepackage{tipa}\r\n\\usepackage{tikz}\r\n\\usepackage{pgfplots}<\/code>\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-1024x648.png\" alt=\"Screenshot of QuickLatex configured with the packages for plots.\" width=\"1024\" height=\"648\" class=\"alignnone size-large wp-image-327\" \/>","rendered":"<p>When using Latex in Pressbooks, you automatically have access to the basic Latex library and the American Mathematical Society (AMS) math package. If you are only using Latex to typeset equations, this will provide the needed functionality. However, Latex also allows users to develop and share their own packages which implement additional functionalities like typesetting non-latin languages or creating the plots and figures.<\/p>\n<p>To be able to use a package when using Latex in Pressbooks, you will need to add the package in the settings for the Plugin. First, click on Plugins and choose &#8216;Settings&#8217; under the WP QuickLaTeX editor.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-1024x658.png\" alt=\"Screenshot of choosing Settings for the QuickLatex plugin.\" width=\"1024\" height=\"658\" class=\"alignnone size-large wp-image-325\" srcset=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-1024x658.png 1024w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-300x193.png 300w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-768x493.png 768w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-65x42.png 65w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-225x145.png 225w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/2-Settings-350x225.png 350w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Choose the &#8216;Advanced&#8217; tab under settings and scroll down to the box where you can add commands.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-1024x658.png\" alt=\"Screenshot of the advanced tab of the QuickLatex plugin.\" width=\"1024\" height=\"658\" class=\"alignnone size-large wp-image-324\" srcset=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-1024x658.png 1024w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-300x193.png 300w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-768x493.png 768w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-65x42.png 65w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-225x145.png 225w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/3-Advanced-350x225.png 350w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Here you can configure your Latex setup. For now, we&#8217;ll just add packages that will allow us to write phonetic transcriptions and create plots.<\/p>\n<p><code><br \/>\n\\usepackage{tipa}<br \/>\n\\usepackage{tikz}<br \/>\n\\usepackage{pgfplots}<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-1024x648.png\" alt=\"Screenshot of QuickLatex configured with the packages for plots.\" width=\"1024\" height=\"648\" class=\"alignnone size-large wp-image-327\" srcset=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-1024x648.png 1024w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-300x190.png 300w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-768x486.png 768w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-65x41.png 65w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-225x142.png 225w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/4-Plot-Packages-350x221.png 350w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n","protected":false},"parent":0,"menu_order":2,"template":"","meta":{"pb_part_invisible":false,"pb_part_invisible_string":""},"contributor":[],"license":[],"class_list":["post-204","part","type-part","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/parts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/parts"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/types\/part"}],"version-history":[{"count":10,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/parts\/204\/revisions"}],"predecessor-version":[{"id":661,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/parts\/204\/revisions\/661"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/contributor?post=204"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/license?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}