{"id":805,"date":"2012-01-24T01:09:52","date_gmt":"2012-01-24T05:09:52","guid":{"rendered":"http:\/\/hargaden.com\/enda\/?p=283"},"modified":"2012-01-24T01:09:52","modified_gmt":"2012-01-24T05:09:52","slug":"simple-problem-set-hack","status":"publish","type":"post","link":"https:\/\/hargaden.com\/enda\/simple-problem-set-hack\/","title":{"rendered":"Simple Problem Set Hack"},"content":{"rendered":"<style>\n.endashadow {\n\t-moz-box-shadow: 3px 3px 4px #000;\n\t-webkit-box-shadow: 3px 3px 4px #000;\n\tbox-shadow: 3px 3px 4px #000;\n\t\/* For IE 8 *\/\n\t-ms-filter: \"progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')\";\n\t\/* For IE 5.5 - 7 *\/\n\tfilter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');\n}\n<\/style>\n<p>I had a problem set where each question had multiple sub-parts: a, b, c; etc. I was typing the solution up in LaTeX and it wasn&#8217;t obvious what was the cleanest way to identify my answers.<\/p>\n<p>I ended up with code like this:<\/p>\n<p><tt>\\section*{Question 1}<br \/>\n\\new This is my answer to part a.<\/p>\n<p>\\new This is my answer to part b<\/tt><\/p>\n<p>This formatting results in something like this:<\/p>\n<p><img decoding=\"async\" src=\"\/enda\/wp-content\/latex_pset.jpg\" class=\"endashadow\" \/><\/p>\n<p>That&#8217;s exactly what I was looking for. It requires two lines of code at the start of your document:<\/p>\n<p><tt>\\newcounter{my_count}<br \/>\n\\newcommand{\\new}{\\vspace{0.3cm}\\addtocounter{my_count}{1} (\\alph{my_count}) }<\/tt><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a problem set where each question had multiple sub-parts: a, b, c; etc. I was typing the solution up in LaTeX and it wasn&#8217;t obvious what was the cleanest way to identify my&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":[],"class_list":["post-805","post","type-post","status-publish","format-standard","hentry","category-latex"],"_links":{"self":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/805","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=805"}],"version-history":[{"count":0,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/posts\/805\/revisions"}],"wp:attachment":[{"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/media?parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/categories?post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hargaden.com\/enda\/wp-json\/wp\/v2\/tags?post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}