{"id":156,"date":"2021-04-21T17:04:56","date_gmt":"2021-04-21T17:04:56","guid":{"rendered":"https:\/\/openpress.wheatoncollege.edu\/pressbooksguide\/chapter\/latex-website-or-application\/"},"modified":"2024-09-05T19:10:56","modified_gmt":"2024-09-05T19:10:56","slug":"latex-website-or-application","status":"publish","type":"chapter","link":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/chapter\/latex-website-or-application\/","title":{"raw":"Is there a simple website or application that I can use to test my LaTeX before adding it to Pressbooks?","rendered":"Is there a simple website or application that I can use to test my LaTeX before adding it to Pressbooks?"},"content":{"raw":"<div class=\"textbox textbox--sidebar\">Last update: September 5th, 2024<\/div>\r\n&nbsp;\r\n\r\nIt can be tedious to make an attempt at an equation in LaTeX while working in Pressbooks, especially if you're writing a particularly complex equation or you're still getting the hang of LaTeX and need to trial and error a lot. You may find yourself repeatedly writing and hitting Preview. To avoid this, you can use an external LaTeX editor, which may be in the form of a web-based or desktop application.\r\n\r\nThe <a href=\"https:\/\/arachnoid.com\/latex\/\">Interactive LaTeX Editor by Paul Lutus<\/a> is a web-based editor that quickly renders LaTeX using up to three different renderers, including MathJax. This is particularly useful to Pressbooks users, since you can see exactly which commands do and do not work with MathJax. The editor also allows you to see examples of symbols, Greek letters, and common science and math expressions written in LaTeX.\r\n\r\n<a href=\"https:\/\/miktex.org\/\">MiKTeX<\/a> is a free distribution of TeX\/LaTeX. When downloaded, MiKTeX also comes with the editor TeXworks. This option is less ideal than Paul Lutus's editor, as you must use some basic LaTeX document structuring for anything to compile correctly, which is not necessary in Pressbooks. However, all the bare-bones formatting you need is the following:\r\n<blockquote><code>\\documentclass{article}<\/code>\r\n\r\n<code>\\begin{document}<\/code>\r\n\r\n<code>Write your equations here.<\/code>\r\n\r\n<code>\\end{document}<\/code><code><\/code><code><\/code><\/blockquote>\r\nThe advantage of MiKTeX is that, if you try to use a command from a [pb_glossary id=\"271\"]package[\/pb_glossary] that is not currently being used by your installation of LaTeX, MiKTeX will offer to download it for you. This helps to circumvent some of the mystifying errors that can appear when you try out a command found online without realizing that it's from a package that you need to explicitly call on.\r\n\r\nIf you are a Mac user, a recommended program is <a href=\"https:\/\/www.chachatelier.fr\/latexit\/latexit-home.php?lang=en\">LaTeXiT<\/a>. The graphical interface of this equation editor allows you just to focus on equations, which is great for beginners who don't want to be bogged down in the details of document formatting, but the program also allows for further customization from those who do want to control things like what packages are used.","rendered":"<div class=\"textbox textbox--sidebar\">Last update: September 5th, 2024<\/div>\n<p>&nbsp;<\/p>\n<p>It can be tedious to make an attempt at an equation in LaTeX while working in Pressbooks, especially if you&#8217;re writing a particularly complex equation or you&#8217;re still getting the hang of LaTeX and need to trial and error a lot. You may find yourself repeatedly writing and hitting Preview. To avoid this, you can use an external LaTeX editor, which may be in the form of a web-based or desktop application.<\/p>\n<p>The <a href=\"https:\/\/arachnoid.com\/latex\/\">Interactive LaTeX Editor by Paul Lutus<\/a> is a web-based editor that quickly renders LaTeX using up to three different renderers, including MathJax. This is particularly useful to Pressbooks users, since you can see exactly which commands do and do not work with MathJax. The editor also allows you to see examples of symbols, Greek letters, and common science and math expressions written in LaTeX.<\/p>\n<p><a href=\"https:\/\/miktex.org\/\">MiKTeX<\/a> is a free distribution of TeX\/LaTeX. When downloaded, MiKTeX also comes with the editor TeXworks. This option is less ideal than Paul Lutus&#8217;s editor, as you must use some basic LaTeX document structuring for anything to compile correctly, which is not necessary in Pressbooks. However, all the bare-bones formatting you need is the following:<\/p>\n<blockquote><p><code>\\documentclass{article}<\/code><\/p>\n<p><code>\\begin{document}<\/code><\/p>\n<p><code>Write your equations here.<\/code><\/p>\n<p><code>\\end{document}<\/code><code><\/code><code><\/code><\/p><\/blockquote>\n<p>The advantage of MiKTeX is that, if you try to use a command from a <a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_156_271\">package<\/a> that is not currently being used by your installation of LaTeX, MiKTeX will offer to download it for you. This helps to circumvent some of the mystifying errors that can appear when you try out a command found online without realizing that it&#8217;s from a package that you need to explicitly call on.<\/p>\n<p>If you are a Mac user, a recommended program is <a href=\"https:\/\/www.chachatelier.fr\/latexit\/latexit-home.php?lang=en\">LaTeXiT<\/a>. The graphical interface of this equation editor allows you just to focus on equations, which is great for beginners who don&#8217;t want to be bogged down in the details of document formatting, but the program also allows for further customization from those who do want to control things like what packages are used.<\/p>\n<div class=\"glossary\"><span class=\"screen-reader-text\" id=\"definition\">definition<\/span><template id=\"term_156_271\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_156_271\"><div tabindex=\"-1\"><p>A file or collection of files containing extra LaTeX commands and programming.<\/p>\n<\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><\/div>","protected":false},"author":7,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-156","chapter","type-chapter","status-publish","hentry"],"part":136,"_links":{"self":[{"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/pressbooks\/v2\/chapters\/156"}],"collection":[{"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/wp\/v2\/users\/7"}],"version-history":[{"count":3,"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/pressbooks\/v2\/chapters\/156\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/pressbooks\/v2\/chapters\/156\/revisions\/434"}],"part":[{"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/pressbooks\/v2\/parts\/136"}],"metadata":[{"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/pressbooks\/v2\/chapters\/156\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/pressbooks\/v2\/chapter-type?post=156"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/wp\/v2\/contributor?post=156"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openpress.wheatoncollege.edu\/openpressguide\/wp-json\/wp\/v2\/license?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}