From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Customizing TOCs in Derived Exporters Date: Mon, 16 Sep 2013 13:11:47 -0700 Message-ID: <87li2wbk70.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLf9N-0007k2-Fk for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 16:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLf9F-0006mC-0W for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 16:12:01 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:37934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLf9E-0006lz-RP for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 16:11:52 -0400 Received: by mail-pd0-f177.google.com with SMTP id y10so4569777pdj.22 for ; Mon, 16 Sep 2013 13:11:51 -0700 (PDT) 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 --=-=-= Content-Type: text/plain Hi All, I'm working on writing a derived exporter and I've been using ox-md.el as a template/guide. If I use the markdown exporter to export the following org file --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=example.org * Meeting Notes ** First Topic *** Subtopic 1 + a point + an *important* point *** Subtopic 2 + another point + an /interesting/ point ** Second Topic One long announcement without any particular structure. --=-=-= Content-Type: text/plain an html table of contents appears at the top of the exported file. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=example.md # Meeting Notes ## First Topic ### Subtopic 1 - a point - an **important** point ### Subtopic 2 - another point - an *interesting* point ## Second Topic One long announcement without any particular structure. --=-=-= Content-Type: text/plain How does one go about overriding org-html-toc, which unlike something like org-html-bold, does not appear in org-export-define-backend? I don't want the TOC not to appear, rather want it to be generated by another function, org-md-toc or what have you. Thanks, Josiah --=-=-=--