{"id":882,"date":"2015-04-10T06:32:33","date_gmt":"2015-04-10T11:32:33","guid":{"rendered":"http:\/\/www.hargaden.com\/enda\/?p=727"},"modified":"2021-04-16T16:43:45","modified_gmt":"2021-04-16T16:43:45","slug":"lagrange-multiplier-symbol-code","status":"publish","type":"post","link":"https:\/\/hargaden.com\/enda\/lagrange-multiplier-symbol-code\/","title":{"rendered":"Lagrange multiplier symbol code"},"content":{"rendered":"<p>Economists often denote a Lagrangian maximization problem with a scripted L. Unless you exert a little bit of effort, this looks poorly when produced by LaTeX. The code below allows you to easily typeset the symbol in a larger font-size.<\/p>\n<p>The code creates four new commands: <tt>lagrange1<\/tt>, <tt>lagrange2<\/tt>, <tt>lagrange3<\/tt>, and <tt>lagrange4<\/tt>. They produce the &#8220;Lagrangian L&#8221; with increasing size.<\/p>\n<\/p>\n<pre><font face=\"Monaco, Consolas, Andale Mono, DejaVu Sans Mono, monospace\">documentclass{article}\nusepackage{relsize}\nusepackage{mathrsfs}\nusepackage{xstring}\nnewcommand{lagrange}[1]{IfEqCase{#1}{{1}{mathscr{L}}{2}{mathlarger{mathscr{L}}}{3}{mathlarger{mathlarger{mathscr{L}}}}{4}{mathlarger{mathlarger{mathlarger{mathscr{L}}}}}}}\nbegin{document}\n$$ lagrange1 $$\n$$ lagrange2 $$\n$$ lagrange3 $$\n$$ lagrange4 $$\nend{document}<br><\/font><\/pre>\n<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Economists often denote a Lagrangian maximization problem with a scripted L. Unless you exert a little bit of effort, this looks poorly when produced by LaTeX. The code below allows you to easily typeset the&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-882","post","type-post","status-publish","format-standard","hentry","category-economics","category-latex"],"_links":{"self":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/882","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=882"}],"version-history":[{"count":3,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/882\/revisions"}],"predecessor-version":[{"id":1198,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/882\/revisions\/1198"}],"wp:attachment":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/media?parent=882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/categories?post=882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/tags?post=882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}