From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Table of contents for just one section? Date: Sun, 26 Oct 2014 16:10:20 +0100 Message-ID: <87y4s2ooir.fsf@gmx.us> References: <87wq7uzwmm.fsf@nicolasgoaziou.fr> <871tpvmekr.fsf@nicolasgoaziou.fr> <87mw8joylh.fsf@gmx.us> <8761f7dlxd.fsf@nicolasgoaziou.fr> <87egtuq3ih.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiPSu-0001C1-Uk for emacs-orgmode@gnu.org; Sun, 26 Oct 2014 11:10:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiPSi-0003Y6-DO for emacs-orgmode@gnu.org; Sun, 26 Oct 2014 11:10:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:41522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiPSi-0003Y2-5x for emacs-orgmode@gnu.org; Sun, 26 Oct 2014 11:10:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XiPSh-0002ln-If for emacs-orgmode@gnu.org; Sun, 26 Oct 2014 16:10:31 +0100 Received: from 217.130.110.20 ([217.130.110.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Oct 2014 16:10:31 +0100 Received: from rasmus by 217.130.110.20 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Oct 2014 16:10:31 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Rasmus writes: >> I also note that these tocs do not have any title. Would it make sense >> to remove title from local tocs in other back-ends too? > > No idea. Both makes sense, but maybe including the TOC-title is too > verbose? In any case, I think it's easy to add a title if you. Based > on article.cls and book.cls, I think we can generalize the toc-title > to "heading one level down in level and unnumbered with title > \contentsname". The TOC title for chapter is thus > \section*{\contentsname}. For \part it's \chapter*{\contentsname}. I > guess you can use the cdr in level part of `org-latex-classes', though > it would be incompatible with e.g. \addsec{ยท} of KOMA-Script. To be clear for chapters the command would be: \printcontents[level-1]{}{0}{\setcounter{tocdepth}{1}% \section*{\contentsname}} -- C is for Cookie