{"id":953,"date":"2017-04-21T18:58:03","date_gmt":"2017-04-21T23:58:03","guid":{"rendered":"http:\/\/www.hargaden.com\/enda\/?p=953"},"modified":"2017-04-21T18:58:03","modified_gmt":"2017-04-21T23:58:03","slug":"fix-for-latex-references-in-economics-bibliography-styles","status":"publish","type":"post","link":"https:\/\/hargaden.com\/enda\/fix-for-latex-references-in-economics-bibliography-styles\/","title":{"rendered":"Fix for LaTeX references in economics bibliography styles"},"content":{"rendered":"<p>The <a href=\"https:\/\/www.ctan.org\/tex-archive\/biblio\/bibtex\/contrib\/economic?lang=en\" target=\"_blank\" rel=\"noopener\">economic package<\/a> includes old commands that are now deprecated within LaTeX. This caused me a problem using the AER bibliography style (aer.bst), and likely causes problems with other BibTeX styles too. My particular problem was with <a href=\"https:\/\/www.ctan.org\/pkg\/scrartcl?lang=en\" target=\"_blank\" rel=\"noopener\">scrartcl<\/a> refusing to recognise the <tt>\\bf<\/tt> command rather than the newer <tt>\\textbf<\/tt> version.<\/p>\n<p>Very specifically, the problem was &#8220;Class scrartcl Error: undefined old font command `\\bf&#8217;.&#8221;<\/p>\n<p>The fix for this is simple. Just include the following two lines in the preamble of your document.<\/p>\n<blockquote><p>\\DeclareOldFontCommand{\\bf}{\\normalfontbfseries}{\\textbf}<br \/>\n\\DeclareOldFontCommand{\\it}{\\normalfont\\itshape}{\\textit}<\/p><\/blockquote>\n<p>You could alternatively open up your *.bst file and manually change the code, but the two lines above should fix it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The economic package includes old commands that are now deprecated within LaTeX. This caused me a problem using the AER bibliography style (aer.bst), and likely causes problems with other BibTeX styles too. My particular problem&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-953","post","type-post","status-publish","format-standard","hentry","category-economics","category-latex"],"_links":{"self":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/953","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=953"}],"version-history":[{"count":0,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/953\/revisions"}],"wp:attachment":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/media?parent=953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/categories?post=953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/tags?post=953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}