{"id":865,"date":"2013-08-12T21:59:06","date_gmt":"2013-08-13T01:59:06","guid":{"rendered":"http:\/\/www.hargaden.com\/enda\/?p=505"},"modified":"2013-08-12T21:59:06","modified_gmt":"2013-08-13T01:59:06","slug":"partial-derivative-shortcut-in-latex","status":"publish","type":"post","link":"https:\/\/hargaden.com\/enda\/partial-derivative-shortcut-in-latex\/","title":{"rendered":"Partial derivative shortcut in LaTeX"},"content":{"rendered":"<p>This is incredibly simple code but may be of use to some people. Typing out derivatives in LaTeX (e.g. \\(\\frac{\\partial y}{\\partial x}\\)) can be shortened.<\/p>\n<p>Add this line of code to the header of your document:<br \/>\n[code]<br \/>\n\\newcommand{\\dydx}[2]{\\frac{\\partial{#1}}{\\partial{#2}}}<br \/>\n[\/code]<\/p>\n<p>This creates a new command <tt>\\dydx<\/tt> that takes two arguments, e.g. <tt>\\dydx{P}{\\tau}<\/tt>. Include this command in math mode (e.g. encased in dollar signs) and it will produce \\(\\frac{\\partial P}{\\partial \\tau}\\).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is incredibly simple code but may be of use to some people. Typing out derivatives in LaTeX (e.g. ) can be shortened. Add this line of code to the header of your document: [code]&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[20,21,22],"class_list":["post-865","post","type-post","status-publish","format-standard","hentry","category-latex","tag-calculus","tag-derivatives","tag-dydx"],"_links":{"self":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/comments?post=865"}],"version-history":[{"count":0,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/865\/revisions"}],"wp:attachment":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/media?parent=865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/categories?post=865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/tags?post=865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}