
{"id":3776,"date":"2009-02-22T13:22:00","date_gmt":"2009-02-22T04:22:00","guid":{"rendered":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/?p=3776"},"modified":"2021-09-02T16:13:01","modified_gmt":"2021-09-02T07:13:01","slug":"todonotes","status":"publish","type":"post","link":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/2009\/02\/22\/todonotes\/","title":{"rendered":"todonotes"},"content":{"rendered":"<p> amsart.cls\uc640 \uad00\ub828\ud574\uc11c \ub098\ub294 \uc5d0\ub7ec\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 suggestion\uc774 \uc788\ub2e4. <\/p>\n<div id=\"outline-container-org0bfc2c1\" class=\"outline-2\">\n<h2 id=\"org0bfc2c1\">&#8221;&#8217;\uc9c8\ubb38&#8221;&#8217;<\/h2>\n<div class=\"outline-text-2\" id=\"text-org0bfc2c1\">\n<p> \\listoftodos of the otherwise wonderful todonotes package doesn&#8217;t work with the amsart document class; it fails with error &#8220;Paragraph ended before \\@starttoc was complete.&#8221;  This always happens, even if one changes the document class of the example document todonotesexample.tex to amsart.  Any quick work arounds (while keeping the amsart document class)? <\/p>\n<\/div>\n<\/div>\n<div id=\"outline-container-org76d2701\" class=\"outline-2\">\n<h2 id=\"org76d2701\">&#8221;&#8217;Answer&#8221;&#8217;<\/h2>\n<div class=\"outline-text-2\" id=\"text-org76d2701\">\n<p> The amsart version of \\@starttoc takes a second argument. I haven&#8217;t worked out exactly what it ought to, but writing   \\listoftodos\\relax provides it with \\relax as that argument. Unfortunately, another problem occurs later: amsart doesn&#8217;t use \\addcontentsline and so doesn&#8217;t define one of its necessary values, \\@dotsep. Putting   \\makeatletter     \\providecommand\\@dotsep{5}   \\makeatother   \\listoftodos\\relax <\/p>\n<p> Allows the compilation of the example file to proceed to completion. I don&#8217;t know if anything else would break in a more complete document. <\/p>\n<p> The value of \\@dotsep is used in front of the dimension mu (math units, typically about 1\/18em, or about .56pt in a 10pt) so 5mu (about 2.8pt) is a reaasonable default. However, it might not match what amsart uses in other \\listof&#8217;s. That&#8217;s not terribly important, as one would not usually keep the list of todos in the final document. <\/p>\n<p> This problem with \\@dotsep occurs from time to time: some package employs \\addcontentsline (which is defined in the LaTeX kernel) but is then used with a class (amsart) that doesn&#8217;t define \\@dotsep or a class that defines \\@dotsep, but in an incompatible way (revtex4). (I have not tested todomotes with revtex4 at all. Someone who uses it should do that.) <\/p>\n<p> Until latex provides a default definition of \\@dotsep, package writers need to be wary of using \\addcontentsline. <\/p>\n<p> Dan To reply by email, change LookInSig to luecking <\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>amsart.cls\uc640 \uad00\ub828\ud574\uc11c \ub098\ub294 \uc5d0\ub7ec\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 suggestion\uc774 \uc788\ub2e4. &#8221;&#8217;\uc9c8\ubb38&#8221;&#8217; \\listoftodos of the otherwise wonderful todonotes package doesn&#8217;t work with the amsart document class; it fails with error &#8220;Paragraph ended before \\@starttoc was complete.&#8221; This always happens, even if one changes the document class of the example document todonotesexample.tex to amsart. Any quick work arounds (while &#8230; <a title=\"todonotes\" class=\"read-more\" href=\"https:\/\/mathematicians.korea.ac.kr\/ywkim\/2009\/02\/22\/todonotes\/\" aria-label=\"todonotes\uc5d0 \ub300\ud574 \ub354 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uc138\uc694\">\ub354 \uc77d\uae30<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-3776","post","type-post","status-publish","format-standard","hentry","category-tex"],"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"\uae40\uc601\uc6b1","distributor_original_site_url":"https:\/\/mathematicians.korea.ac.kr\/ywkim","push-errors":false,"_links":{"self":[{"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/posts\/3776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/comments?post=3776"}],"version-history":[{"count":1,"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/posts\/3776\/revisions"}],"predecessor-version":[{"id":3777,"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/posts\/3776\/revisions\/3777"}],"wp:attachment":[{"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/media?parent=3776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/categories?post=3776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathematicians.korea.ac.kr\/ywkim\/wp-json\/wp\/v2\/tags?post=3776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}