From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: Customizing TOCs in Derived Exporters Date: Wed, 18 Sep 2013 14:15:58 -0700 Message-ID: <87a9j9esq9.fsf@gmail.com> References: <87li2wbk70.fsf@berkeley.edu> <8738p3tv6z.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMP6R-0007vz-Bv for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 17:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMP6P-0006vR-Qu for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 17:16:03 -0400 Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]:56122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMP6P-0006vE-Jc for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 17:16:01 -0400 Received: by mail-pb0-f43.google.com with SMTP id md4so7518279pbc.30 for ; Wed, 18 Sep 2013 14:16:00 -0700 (PDT) In-reply-to: <8738p3tv6z.fsf@gmx.us> 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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Josiah Schwab writes: > >> 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. > > I'm not sure whether this would work with md simply 'cause I haven't > worked with the html+friends exporter(s), but perhaps you could > replace the inner-template, i.e. write a replacement for > org-html-inner-template. Yes, this suggestion worked for me. Thank you for the advice. Little by little I will come to understand the new exporter (not that I understood the old one). Independent of the confusion it caused me while trying to figure out how things work, it seems strange that the ox-md exporter generates a non-markdown TOC using org-html-toc. But I will leave that for those who really use the markdown exporter, which is neither you or me. Best, Josiah