{"id":35,"date":"2021-02-13T20:57:00","date_gmt":"2021-02-13T20:57:00","guid":{"rendered":"https:\/\/eutypon.gr\/e-blog\/?p=35"},"modified":"2021-02-13T20:57:00","modified_gmt":"2021-02-13T20:57:00","slug":"the-etaremune-package","status":"publish","type":"post","link":"https:\/\/eutypon.gr\/e-blog\/index.php\/2021\/02\/13\/the-etaremune-package\/","title":{"rendered":"The etaremune package"},"content":{"rendered":"<p>I was looking for a way to create a numbered list of items but I wanted the the numbering of items to be in reverse order (not 1., 2., 3., &#8230; but 3., 2., 1.). I thought that I would need to go deep into LaTeX internals and play with counters in the enumerate environment. However, a quick search revealed not one but two packages that do just that: package etaremune and package <a href=\"https:\/\/www.ctan.org\/pkg\/revnum\" target=\"_blank\" rel=\"noopener\">revnum<\/a>.<\/p>\n<p>In the end I settled for package <a href=\"https:\/\/www.ctan.org\/pkg\/etaremune\" target=\"_blank\" rel=\"noopener\">etaremune<\/a> because of its simplicity when compared to package revnum. If you look carefully, you will seee that <em><strong>etaremune<\/strong><\/em> is the reverse of <em><strong>enumerate<\/strong><\/em>. And the package does just that.<\/p>\n<p>It creates a numbered list of items where the top item is NOT numbered &#8220;1&#8221; but takes the last number of the list. Because of this, you need to run LaTeX twice: the first time to find the last item; the second time to set everything properly.<\/p>\n<p>There is an optional choice to set the start item and you declare it with the<br \/>\n<code>\\begin{etaremune} command as follows:<\/code><\/p>\n<p><code>\\begin{etaremune}[start=5]<\/code><br \/>\n<code>\\item<\/code><br \/>\n<code>\\item<\/code><br \/>\n<code>\\item<\/code><br \/>\n<code>\\item<\/code><br \/>\n<code>\\item<\/code><br \/>\n<code>\\end{etaremune}<\/code><\/p>\n<p>Thanks to Hendri Adriaens for his etaremune package and kudos to his sense of<br \/>\nhumor (for naming his package as such).<\/p>\n<p>Ioannis Dimakos<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was looking for a way to create a numbered list of items but I wanted the the numbering of items to be in reverse order (not 1., 2., 3., &#8230; but 3., 2., 1.). I thought that I would need to go deep into LaTeX internals and play with counters in the enumerate environment.&hellip; <a class=\"more-link\" href=\"https:\/\/eutypon.gr\/e-blog\/index.php\/2021\/02\/13\/the-etaremune-package\/\">Continue reading <span class=\"screen-reader-text\">The etaremune package<\/span><\/a><\/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-35","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":1,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}