{"id":292,"date":"2022-08-30T14:58:55","date_gmt":"2022-08-30T14:58:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/09\/26\/problem-about-titletoc-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:58:55","modified_gmt":"2022-08-30T14:58:55","slug":"problem-about-titletoc-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-titletoc-record-and-share-programming-errors\/","title":{"rendered":"problem about titletoc-Record and share programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e87ec3a614687ee27aee59d972a58997?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsdaau<br \/>\ntable-of-contents vertical-alignment titletoc<br \/>\nEDIT: TLDR summary (as I wrote in comments): What I want from this question (and couple of others referenced herein) is: &#8212; section number (label) to be top-aligned with the title + AND I want the title bottom-aligned with the page number &#8211; on the same line &#8212; when a TOC entry is typeset (I&#8217;ve used frames just for visual debugging). I asked Changing vertical alignment of items in middle of line (for ToC entry), and got a suggestion there that I should try titletoc. And indeed, indeed, in the documentation, pg. 14, there is an example that looks like exactly what I want (the emphasized part): &#8230; however, I simply cannot get a working example for this. First problem is I don&#8217;t really understand where are those particular and (and in the PDF, I cannot search for the brackets included), or how I can change them. Closest I can see in the manual for now is these definitions: \\titlecontents{ }[ ]{ }{ }{ }{ }[ ]\\contentsmargin[ ]{ }&#8230; so apparently, I set in \\titlecontents &#8211; and I set in \\contentsmargin; correct ?!In particular, the manual continues: All you need is to put these elements in the right way. If you have reserved the space with\\hspace*{-2pc}, simply put a box 2 pc width containing the section label or page so that this spacewill be retrieved; &#8230;&#8230; but I don&#8217;t understand two things: Where is this reservation of spac<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a7738dba8561ae75b2a06c2183871f98?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNyiti<br \/>\ntable-of-contents memoir appendices titletoc<br \/>\nI&#8217;m trying to customize the TOC layout with titletoc in a memoir document.The chapter styling works well as below, but if I try the appendix section, I&#8217;ll get an error for missing number.I think I see that this is because \\chapternumberline is renewed to \\numberline, and that doesn&#8217;t take in the A as the appendix number.But if \\chapternumberline isn&#8217;t renewed this way, it errors out with Undefined control sequence for \\@chapapp@head in the memoir definition:\\newcommand{\\chapternumberline}[1]{%\\chapternumberlinehook{#1}%\\hb@xt@\\@tempdima{\\@chapapp@head\\@cftbsnum #1\\@cftasnum\\hfil}%\\@cft<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-09-26 03:16:20. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>sdaau table-of-contents vertical-alignment titletoc EDIT: TLDR summary (as I wrote in comments): What I want from this question (and couple of others referenced herein) is: &#8212; section number (label) to be top-aligned with the title + AND I want the title bottom-aligned with the page number &#8211; on the same line &#8212; when a TOC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}