{"id":49,"date":"2010-06-19T15:49:00","date_gmt":"2010-06-19T15:49:00","guid":{"rendered":"https:\/\/pim.famnit.upr.si\/wp\/?p=49"},"modified":"2021-11-17T11:22:31","modified_gmt":"2021-11-17T11:22:31","slug":"sort-multiple-citatations-in-latex-by-citation-numbers","status":"publish","type":"post","link":"https:\/\/pim.famnit.upr.si\/wp\/?p=49","title":{"rendered":"Sort multiple citatations in Latex by citation numbers"},"content":{"rendered":"<p>I was trying to solve this problem a while ago but found it only now on an internal mailing list. <br \/>Let&#8217;s assume we have a text like:<\/p>\n<p><em>&quot;&#8230; Some researchers have argued that the world is flat <strong>[43, 5, 16, 32, 22]<\/strong> &#8230;&quot;<\/em><\/p>\n<p>Instead it would be nice if the <strong>citations<\/strong> would be organized or <strong>sorted by citation numbers<\/strong> so the previous sentence would look like:<\/p>\n<p><em>&quot;&#8230; Some researchers have argued that the world is flat <strong>[5, 16, 22, 32, 43]<\/strong> &#8230;&quot;<br \/><\/em><\/p>\n<p>To sort them, two additional packages have to be used:<\/p>\n<p><strong>\\usepackage{cite}<\/strong><\/p>\n<p><strong>\\usepackage[sort]{natbib}<\/strong><\/p>\n<p>And that&#8217;s sorts the sorting problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to solve this problem a while ago but found it only now on an internal mailing list. Let&#8217;s assume we have a text like: &quot;&#8230; Some researchers have argued that the world is flat [43, 5, 16, 32, 22] &#8230;&quot; Instead it would be nice if the citations would be organized or&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[19,88,16],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-4-software-hints","tag-crosstool-paper","tag-email","tag-plan"],"_links":{"self":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":1,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}