From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: What about a TOC export filter? Date: Tue, 14 Oct 2014 10:12:19 +0200 Message-ID: <87y4sjf4t8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdxE8-0004DK-CE for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 04:13:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdxE0-0007l4-UJ for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 04:13:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:46176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdxE0-0007ky-NX for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 04:12:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XdxDn-0005iH-D9 for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 10:12:43 +0200 Received: from e178189094.adsl.alicedsl.de ([85.178.189.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2014 10:12:43 +0200 Received: from tjolitz by e178189094.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2014 10:12:43 +0200 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 Hi List, in a derived backend it would be OK to let the parent backend (html) export the TOC, but I need to post-process the exported html (wrap it in extra code). Since I did not find suitable functionality for this, I use a kind of workaround: 1. disable default with option toc:nil 2. put a #+TOC: headlines 2 line 3. copy and adapt (i.e. overwrite) the org-html-keyword transcoder but wouldn't a toc-filter make more sense? Did I miss it? -- cheers, Thorsten