{"id":58,"date":"2015-08-24T08:36:46","date_gmt":"2015-08-24T08:36:46","guid":{"rendered":"http:\/\/adrianbell.me\/?p=58"},"modified":"2015-08-24T16:11:59","modified_gmt":"2015-08-24T16:11:59","slug":"an-introduction-to-latex","status":"publish","type":"post","link":"http:\/\/adrianbell.me\/?p=58","title":{"rendered":"An Introduction To LaTeX"},"content":{"rendered":"<p>Assignment writing seems to be a very large part of studying a part-time degree in Mathematics. For my first module I hand-wrote every assignment, but with my handwriting being less than perfect I wasn't entirely happy with the neatness of the end result.<\/p>\n<p>I tried numerous other ways of writing my assignments but the formatting of equations always proved to be a headache. After exploring a couple of avenues (Open Office with equation editor, and Google Docs), I decided to settle on LaTeX.<\/p>\n<p>LaTeX is a formatting (or rather, typesetting) language, much like HTML in a way. For example, the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/adrianbell.me\/wp-content\/ql-cache\/quicklatex.com-70530c6d1cae099e4aaa3db7f8897c93_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;&#32;&#61;&#32;&#120;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"75\" style=\"vertical-align: -5px;\"\/><\/p>\n<p>is written in LaTeX as follows:<\/p>\n<pre>\u00a0f(x) = x^2<\/pre>\n<p>Which is nice. Of course this is a simple example, and the learning curve involved in producing your first 18-page assignment with it can be rather steep.<\/p>\n<p>What I'd like to do every now and again is post a clever little bit of LaTeX I discover that gets me out of a hole. With any luck, after a handful of posts, LaTeX will become a lot less of a mystery.<\/p>\n<p>My operating system of choice at the moment is <a href=\"http:\/\/linuxmint.com\/\">Linux Mint<\/a>. I like it because it's the only version of Linux I've ever installed that just <em>worked<\/em> straight after installation. No sound problems. No problems with network access. <em>Everything<\/em> worked.<\/p>\n<p>As such, I started out by trying to work out how to get LaTeX working in Linux Mint. It turns out that to install it, you can run this in a shell:<\/p>\n<pre>sudo apt-get install texlive-full<\/pre>\n<p>This installation command\u00a0should work on any Debian-based release of Linux (Ubuntu, Mint, etc...). It will install all the necessary things you need to start writing in LaTeX, including the essential command:<\/p>\n<pre>pdflatex<\/pre>\n<p>which will do the hard work of compiling your hand-typed LaTeX tex files to beautiful pdfs.<\/p>\n<p>I won't be writing much about Windows, as I don't use it a great deal these days, but if you want an equivalent you can search the net for something called MiKTeX. Any actual LaTeX formatting language I write will of course work on both Linux and Windows.<\/p>\n<p>More LaTeX to come!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assignment writing seems to be a very large part of studying a part-time degree in Mathematics. For my first module I hand-wrote every assignment, but with my handwriting being less than perfect I wasn't entirely happy with the neatness of the end result. I tried numerous other ways of writing my assignments but the formatting &hellip; <a href=\"http:\/\/adrianbell.me\/?p=58\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">An Introduction To LaTeX<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[21],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-latex","tag-latex"],"_links":{"self":[{"href":"http:\/\/adrianbell.me\/index.php?rest_route=\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/adrianbell.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/adrianbell.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/adrianbell.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/adrianbell.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":25,"href":"http:\/\/adrianbell.me\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":105,"href":"http:\/\/adrianbell.me\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions\/105"}],"wp:attachment":[{"href":"http:\/\/adrianbell.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/adrianbell.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/adrianbell.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}