{"id":1202,"date":"2010-05-20T20:38:12","date_gmt":"2010-05-20T19:38:12","guid":{"rendered":"http:\/\/mathscitech.org\/articles\/?p=1202"},"modified":"2024-01-18T07:33:02","modified_gmt":"2024-01-18T07:33:02","slug":"latex-1-intro","status":"publish","type":"post","link":"https:\/\/mathscitech.org\/articles\/latex-1-intro","title":{"rendered":"LaTeX \/ TeX: Professional Grade Typesetting for Scientific Writing"},"content":{"rendered":"<p><!-- WP Article\n\tAssad Ebrahim\n\tMay 18, 2010 \n\tTitle: LaTeX \/ TeX: Professional Grade Typesetting for Scientific Writing\n--><br \/>\n<em>If you haven&#8217;t done so already, you may want to start by reading the Preface to the Computing Series: <a href=\"https:\/\/mathscitech.org\/articles\/computing-toolkits\" rel=\"noopener\" target=\"_blank\">Software as a Force Multiplier<\/a>, Sections 1-3.<\/em><\/p>\n<p><strong>Introducing the LaTeX typsetting platform<\/strong><\/p>\n<p>If symbols, formulas, and equations comprise a large portion of your professional communication, then you will gain significantly by becoming proficient with the LaTeX (pronounced &#8220;lay-tech&#8221;) document preparation platform.  With the right tools and a little practice, the relative ease of creating beautiful mathematical documents with LaTeX will likely mean that you leave Office in favor of LaTeX for your technical writing.<\/p>\n<p>This article introduces the LaTeX platform (short for Lamport-TeX, after the mathematician Leslie Lamport), illustrates its capabilities, and highlights the key differences between using LaTeX or WYSIWYG &#8220;what you see is what you get&#8221; word processing systems such as Office.<\/p>\n<p>For those that like to know the human side of the tools they use, we provide a brief history of the legendary TeX (pronounced &#8220;tech&#8221;) platform, which underpins all variations of which LaTeX is one, looks at the philosophy motivating the development of TeX, and something about its legendary creator Donald Knuth.<\/p>\n<div id=\"attachment_3608\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-3608\" loading=\"lazy\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/05\/screenshot.0840-800x213.png\" alt=\"Don Knuth, Leslie Lamport, and an illustration of why writing mathematics in LaTeX is easier than in Word.\" width=\"640\" height=\"170\" class=\"size-large wp-image-3608\" srcset=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/05\/screenshot.0840-800x213.png 800w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/05\/screenshot.0840-300x80.png 300w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/05\/screenshot.0840-150x40.png 150w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/05\/screenshot.0840-400x107.png 400w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/05\/screenshot.0840.png 1320w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><p id=\"caption-attachment-3608\" class=\"wp-caption-text\">Don Knuth, Leslie Lamport, and an illustration of of why writing mathematics in LaTeX is easier than in Word.<\/p><\/div>\n<p>\n<!--more--><\/p>\n<hr>\n<p><i>This is Part 1 in a series of three articles intended to give you all that you&#8217;ll need to begin working with LaTeX on Windows, using free, open-source software.   See <a href=\"latex-2-platform\" rel=\"noopener\" target=\"_blank\">Part 2: Working with LaTeX on Windows<\/a>, <a href=\"latex-3-modularity\" rel=\"noopener\" target=\"_blank\">Part 3: Modularity in TeX<\/a>.<\/i><\/p>\n<hr>\n<p><h4>TeX Appeal<\/h4>\n<p>LaTeX, spoken &#8220;lay-tech&#8221; or &#8220;lah-tech&#8221;, is a professional document preparation system built atop TeX, spoken &#8220;tech&#8221;.  The name, TeX, is from the Greek, <em>technos<\/em>, meaning craft, or technology.  Together LaTeX and TeX form a powerful typesetting platform that produces &#8220;camera-ready&#8221; print with a minimum of fuss, even for difficult material such as mathematics.  Using TeX means that you can communicate complex ideas in an aesthetically pleasing form, which means your ideas are more likely to be read, understood, and hopefully absorbed.  <\/p>\n<p>Here, for example, is what you would get after typesetting the binomial formula in LaTeX.<br \/>\n<center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%28a+%2B+b%29%5En+%3D+%5Csum_%7Bk%3D0%7D%5En+%5Cbinom%7Bn%7D%7Bk%7D+a%5Ek+b%5E%7Bn-k%7D.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle (a + b)^n = \\sum_{k=0}^n \\binom{n}{k} a^k b^{n-k}.' title='\\displaystyle (a + b)^n = \\sum_{k=0}^n \\binom{n}{k} a^k b^{n-k}.' class='latex' \/><\/center><br \/>\nThe LaTeX markup creating this, shown below, is simple, readable, and, most importantly, has the advantage of being fully specified in text instead of mouse-clicks:<\/p>\n<blockquote><p>\n<code><br \/>\n$(a + b)^n = \\sum_{k=0}^n \\binom{n}{k} a^k b^{n-k}$<br \/>\n<\/code>\n<\/p><\/blockquote>\n<p>To really get a feel for the quality of automatic typesetting that TeX produces, look at a few articles created in LaTeX:<\/p>\n<p>This is how an article looks that was created in LaTeX and contains mostly words:<br \/>\n<a href=\"..\/papers\/ebrahim-origins-of-mathematics.pdf\"><em>Mathematics in Pre-History<\/em> (PDF)<\/a><\/p>\n<p>And here is an article, created in LaTeX, having complicated formulas, equations, images, and code listings:<br \/>\n<a href=\"..\/papers\/ebrahim-sum-powers-3.pdf\"><em>Finite Summations of Integer Powers <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=x%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x^p' title='x^p' class='latex' \/>, PART THREE<\/em> (PDF)<\/a><\/p>\n<p>Download these and browse through their formatting and display.  Notice the automatic typesetting details such as kerning (spacing between letters), and subtle differences in how adjoining letters look: <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cmbox%7Bff%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\mbox{ff}' title='\\mbox{ff}' class='latex' \/> vs. ff, for example.  These, and a host of typesetting subtleties are what distinguishes professionally typeset camera-ready copy from, for example, a Microsoft Word document turned into a PDF.  The effort that would be required to manually typeset a similar looking article in Microsoft Word or Sun&#8217;s Open Writer would be prohibitive, and not least because of the in-depth knowledge required akin to that of a professional typesetter.  By now, if you are not already using LaTeX \/ TeX, you are hopefully persuaded to <a href=\"latex-2-platform\" rel=\"noopener\" target=\"_blank\">give it a try.<\/a>  (If not, here are <a href=\"http:\/\/www.ctan.org\/what_is_tex.html\" rel=\"noopener\" target=\"_blank\">10 further reasons<\/a> to consider.)<\/p>\n<p><a name=\"WYSIWYG\"><\/a><\/p>\n<h4>&#8220;WYSIWYG&#8221; vs. the TeX Way &#8212; a Philosophical Difference<\/h4>\n<p>&#8220;WYSIWYG&#8221; is an acronymn for &#8220;What You See is What You Get&#8221;, and represents the idea that the <em>writer<\/em> is in charge of every aspect of the typography and layout of his product.  LaTeX \/ TeX adopts the opposite point of view, namely that the competence of most writers is highest in the area of creating content, and diminishes as the aesthetic standard for beautifully laid out documents is raised.  Thus, the driving idea behind the creation of TeX is that if a computer can be programmed to perform typesetting and layout with the same aesthetic sense of a master typesetter, then most writers would gladly relinquish the responsibility of having to manually make their work look beautiful.<\/p>\n<p>Thus, the heart of the difference between LaTeX\/TeX and the so-called &#8220;WYSIWYG&#8221; programs such the Microsoft, Corel, and Sun Office suites, originates in this philosophical view of the appropriate division of responsibility between writer and typesetter.  But this simple philosophical difference results in substantial practical differences, and document preparation platforms that are substantially different in usability, suitability for various writing activities, and quality of the finished product.<\/p>\n<p>The good news is that with the right tools and a little practice, creating documents using LaTeX is relatively easy.  And once you get used to the beautiful look of TeX-ed documents, you&#8217;ll soon find it onerous to go back to the usual &#8220;WYSIWYG&#8221; programs such as the Microsoft, Corel, and Sun Office suites, among others, and let TeX do a professional job typesetting for you.<\/p>\n<h4>Understanding the Platform: Engine vs. Wrapper<\/h4>\n<p>The key to understanding the LaTeX \/ TeX platform is to recognize the different roles that each of the two software systems plays.  TeX is the master typesetting engine that makes it all possible.  TeX is <a href=\"http:\/\/scienceblogs.com\/goodmath\/2008\/01\/10\/the-genius-of-donald-knuth-typ\/\" rel=\"noopener\" target=\"_blank\">versatile and powerful, but complex<\/a>, with many settings, switches, and configurations possible.  Most users don&#8217;t compose their documents directly in TeX.  <em>So although TeX is the typesetting engine, it is actually LaTeX that you will be using.<\/em>  <\/p>\n<p>LaTeX is <a href=\"latex-3-modularity#modularity\" rel=\"noopener\" target=\"_blank\">wrapper software that encapsulates<\/a> the powerful functionality of TeX but presents to the user a friendly interface for getting on with the business of document preparation.  All of the capability of TeX is still present, but with defaults that are intelligently chosen so that you can proceed out of the box and need only dig deeper when you wish to make major changes to layout or formatting.<\/p>\n<p>Finally, there is the optional, but desirable graphical environment within which most users, especially new users, will actually compose their documents.  This provides a pleasant, mouse-enabled method for selecting styles, mathematical and symbolic objects, and the markup elements that go into specifying a TeX document.  The markups are descriptive &#8212; they inform the typesetting system of your <em>intent<\/em>.  Unlike the WYSIWGY programs, they do not prescribe how to perform the layout.  That decision is left to the master typesetter &#8212; TeX.<\/p>\n<h4>The Creation and Impact of TeX<\/h4>\n<p>The <a href=\"http:\/\/in-theory.blogspot.com\/2008\/01\/don-knuth-is-70.html\" rel=\"noopener\" target=\"_blank\">significance of TeX<\/a> and, through it, Knuth&#8217;s impact on the field of technical publishing, is hard to overstate.  <a href=\"http:\/\/www.stanfordalumni.org\/news\/magazine\/2006\/mayjun\/features\/knuth.html\" rel=\"noopener\" target=\"_blank\">A little background<\/a> helps put in context the <a href=\"http:\/\/recursed.blogspot.com\/2008\/01\/donald-knuth-and-me.html\" rel=\"noopener\" target=\"_blank\">tremendous affection<\/a> that technical users have both for TeX and for its creater, the legendary Stanford mathematician and computer scientist, <a href=\"http:\/\/en.wikipedia.org\/wiki\/Donald_Knuth\" rel=\"noopener\" target=\"_blank\">Don Knuth<\/a>.<\/p>\n<p>TeX was not created by a company or corporation.  It was designed and created by Knuth during a 10 year labor of love, born out of both necessity and the desire for aesthetic and technical perfection.  Remember, this was before Microsft and Windows as we know them, before the ubiquitous world wide web, and before Google search, a time when technical materials were still often written by hand, or <a href=\"http:\/\/www.mrmartinweb.com\/type.htm\" rel=\"noopener\" target=\"_blank\">typed on a typewriter<\/a>, with hand written symbols to supplement the missing typography.  Once created, TeX and all of its attendant technology were given for free to the user community.  <\/p>\n<p>LaTeX was created, similarly, by the mathematician and computer scientist <a href=\"http:\/\/en.wikipedia.org\/wiki\/Leslie_Lamport\" rel=\"noopener\" target=\"_blank\">Leslie Lamport<\/a>, to ease document preparation, and was also given away for free to the community.  Together TeX and LaTeX (along with Adobe&#8217;s Postscript) revolutionized publishing and brought the tools for quality communication out of the hands of specialists and into the technical community itself.  <\/p>\n<p>Today, LaTeX \/ TeX is the de facto platform of choice for technical communications.  In fact,<\/p>\n<blockquote><p>At least in mathematics, computer science, and physics, the adoption of TeX has been so universal that failure to use it is now <a href=\"http:\/\/scottaaronson.com\/blog\/?p=304\" rel=\"noopener\" target=\"_blank\">a reliable crackpot indicator<\/a>. &#8211; Scott Aaronson (Computer Scientist)<\/p><\/blockquote>\n<p>To both Knuth and Lamport are owed a tremendous <a href=\"http:\/\/in-theory.blogspot.com\/2008\/01\/don-knuth-is-70.html\" rel=\"noopener\" target=\"_blank\">debt of gratitude<\/a> by the hundreds of thousands of scientists and authors who use the software every day for their research publications, textbook writing, and book writing.  If the author of every document generated freely using TeX were to give Knuth a moment of silence for good karma, he would likely have enough to last several lifetimes.  For what it&#8217;s worth, let me here add mine!<\/p>\n<p>For additional interest:<\/p>\n<ul>\n<li><a href=\"https:\/\/ctan.org\/lion?lang=en\" rel=\"noopener noreferrer\" target=\"_blank\">What&#8217;s with the TeX Lion<\/a> (the mascot that adorns TeX and LaTeX material)?\n<\/ul>\n<hr>\n<p>This is the first in a series of three articles intended to give you all that you&#8217;ll need to begin working with LaTeX \/ TeX on Windows, using free, open-source software.  <\/p>\n<p>Articles two and three get you set up and on your way. <\/p>\n<p><em>>> Continue reading: <\/em><a href=\"latex-2-platform\" rel=\"noopener\" target=\"_blank\">Part 2: Setting up a TeX \/ LaTeX Platform on Windows with Open Source Tools<\/a><\/p>\n<p><em>>> Continue reading: <\/em><a href=\"latex-3-modularity\" rel=\"noopener\" target=\"_blank\">Part 3: Thinking Modular in TeX<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> If you haven&#8217;t done so already, you may want to start by reading the Preface to the Computing Series: Software as a Force Multiplier, Sections 1-3.<\/p>\n<p>Introducing the LaTeX typsetting platform<\/p>\n<p>If symbols, formulas, and equations comprise a large portion of your professional communication, then you will gain significantly by becoming proficient with the [Read More&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[7,9,100],"tags":[],"coauthors":[112],"class_list":["post-1202","post","type-post","status-publish","format-standard","hentry","category-education","category-mathtools","category-softwaretools","odd"],"views":14383,"_links":{"self":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/1202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/comments?post=1202"}],"version-history":[{"count":33,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/1202\/revisions"}],"predecessor-version":[{"id":10821,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/1202\/revisions\/10821"}],"wp:attachment":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/media?parent=1202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/categories?post=1202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/tags?post=1202"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/coauthors?post=1202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}