{"id":21580,"date":"2012-11-30T12:00:47","date_gmt":"2012-11-30T16:00:47","guid":{"rendered":"http:\/\/mathgradblog.williams.edu\/?p=21580"},"modified":"2012-11-30T12:00:47","modified_gmt":"2012-11-30T16:00:47","slug":"top-latex-mistakes","status":"publish","type":"post","link":"https:\/\/blogs.ams.org\/mathgradblog\/2012\/11\/30\/top-latex-mistakes\/","title":{"rendered":"Top LaTeX Mistakes"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright  wp-image-21598\" title=\"latex\" src=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2012\/11\/latex-300x129.gif\" alt=\"latex\" width=\"210\" height=\"90\" \/>It is very easy to make mistakes when typesetting using LaTeX. <a href=\"http:\/\/www.johndcook.com\/blog\/2010\/02\/15\/top-latex-mistakes\/\" target=\"_blank\">John Cook<\/a> and <a href=\"http:\/\/www.math.uiuc.edu\/~hildebr\/tex\/tips-topten.html\" target=\"_blank\">A.J. Hildebrand<\/a>\u00a0list some of my pet peeves. See below for my list.<\/p>\n<p><!--more--><\/p>\n<ol>\n<li>Quotes: <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=%22Hello%22&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"&quot;Hello&quot;\" class=\"latex\" \/> vs. <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=%60%60Hello%22&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"``Hello&quot;\" class=\"latex\" \/><br \/>\nNotice that the quotation marks at the beginning of the first part are not going in the proper direction. To typeset quotes properly, you should type &#8220;Hello&#8221; instead of &#8220;Hello.&#8221; Notice that the ` is on the ~ key.<\/li>\n<li>Parentheses, Brackets: <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=%28+dfrac%7B1%7D%7B2%7D%29+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"( dfrac{1}{2}) \" class=\"latex\" \/> vs. <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+left%28+dfrac%7B1%7D%7B2%7D+right%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" left( dfrac{1}{2} right)\" class=\"latex\" \/><br \/>\nHere, we have to use\u00a0left( dfrac{1}{2} right) instead of just ( dfrac{1}{2} ). Using the left( and right) commands will cause TeX to automatically size the parentheses. This can also be used with<\/p>\n<ul>\n<li>left[ right]<\/li>\n<li>left{ right}<\/li>\n<li>left| right|<\/li>\n<li>leftlangle rightrangle<\/li>\n<\/ul>\n<\/li>\n<li>Inner Products: <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+%3Cp%2Cq%3E+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" &lt;p,q&gt; \" class=\"latex\" \/> vs.\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+langle+p%2Cq+rangle+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" langle p,q rangle \" class=\"latex\" \/><br \/>\nHere, the second display (and, in my opinion, the proper display) can be obtained by \u00a0langle p,q rangle.<\/li>\n<li>dx: <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+int+f%28x%29+dx+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" int f(x) dx \" class=\"latex\" \/> vs.\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+int+f%28x%29+%2C+dx+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" int f(x) , dx \" class=\"latex\" \/><br \/>\nNotice that the second one has a bit space between the f(x) and the dx. This can be obtained by\u00a0int f(x) , dx.<\/li>\n<li>Functions: <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+cos+x+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" cos x \" class=\"latex\" \/> vs.\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+cos+x+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" cos x \" class=\"latex\" \/><br \/>\nNotice that the first one does not have enough space between the cos and the x. We obtain the second one by cos x. Typically I will type cos(x) to obtain <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+cos%28x%29+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" cos(x) \" class=\"latex\" \/>. We can use this for the following functions as well:<\/p>\n<ul>\n<li>log x<\/li>\n<li>sin x<\/li>\n<li>tan x<\/li>\n<\/ul>\n<\/li>\n<li>Colon:\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+f+%3A+mathbb%7BR%7D+to+mathbb%7BR%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" f : mathbb{R} to mathbb{R} \" class=\"latex\" \/> vs.\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=+f+colon+mathbb%7BR%7D+to+mathbb%7BR%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\" f colon mathbb{R} to mathbb{R} \" class=\"latex\" \/><br \/>\nHere, the : in the first one is offset a bit. You can obtain the second by typing \u00a0f colon mathbb{R} to mathbb{R}.<\/li>\n<\/ol>\n<p>What LaTeX pet peeves do you have?<\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>It is very easy to make mistakes when typesetting using LaTeX. John Cook and A.J. Hildebrand\u00a0list some of my pet peeves. See below for my list.<\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" data-url=https:\/\/blogs.ams.org\/mathgradblog\/2012\/11\/30\/top-latex-mistakes\/><\/div>\n","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,21],"tags":[],"class_list":["post-21580","post","type-post","status-publish","format-standard","hentry","category-advice","category-technology-math"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3gbww-5C4","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/21580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/comments?post=21580"}],"version-history":[{"count":0,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/21580\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/media?parent=21580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/categories?post=21580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/tags?post=21580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}