{"id":14721,"date":"2025-01-02T15:31:24","date_gmt":"2025-01-02T15:31:24","guid":{"rendered":"https:\/\/blog.bachi.net\/?p=14721"},"modified":"2025-01-02T15:31:57","modified_gmt":"2025-01-02T15:31:57","slug":"tex-command-vs-macro","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=14721","title":{"rendered":"TeX Command vs Macro?"},"content":{"rendered":"<p>what is the difference between a tex command and a tex macro?<\/p>\n<p><a href=\"https:\/\/tex.stackexchange.com\/questions\/468508\/what-is-the-difference-between-macro-and-command\">What is the difference between &#8216;macro&#8217; and &#8216;command&#8217;?<\/a><\/p>\n<ul>\n<li>It seems, in the TeXbook the term &#8220;command&#8221; is used when the focus is on that stage where the <strong>programmer <\/strong>produces\/delivers\/types whatsoever .tex-input.<\/li>\n<li>It seems, in the TeXbook the terms &#8220;token&#8221; and &#8220;macro&#8221; are used when the focus is on that stage where the <strong>TeX-program<\/strong> does process the .tex-input.<\/li>\n<li>In TeX macros are always defined by <code>\\def<\/code> and its variants such as <code>\\edef<\/code>. LaTeX definition commands such as <code>\\newcommand<\/code> are themselves macros that ultimately result in an application of <code>\\def<\/code> to define a macro.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/texfaq.org\/FAQ-whatmacros\">What are (TeX) macros<\/a><br \/>\n<a href=\"https:\/\/www.baeldung.com\/cs\/latex-macros\">Introduction to Macros in Latex<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>what is the difference between a tex command and a tex macro? What is the difference between &#8216;macro&#8217; and &#8216;command&#8217;? It seems, in the TeXbook the term &#8220;command&#8221; is used when the focus is on that stage where the programmer produces\/delivers\/types whatsoever .tex-input. It seems, in the TeXbook the terms &#8220;token&#8221; and &#8220;macro&#8221; are used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14721","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/14721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14721"}],"version-history":[{"count":2,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/14721\/revisions"}],"predecessor-version":[{"id":14723,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/14721\/revisions\/14723"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}