From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Customizing TOCs in Derived Exporters Date: Thu, 19 Sep 2013 00:12:49 +0200 Message-ID: <87y56tsrry.fsf@gmx.us> References: <87li2wbk70.fsf@berkeley.edu> <8738p3tv6z.fsf@gmx.us> <87a9j9esq9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMPzd-0007lL-Rh for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 18:13:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMPzR-0006hD-L9 for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 18:13:05 -0400 Received: from mout.gmx.net ([212.227.17.22]:65463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMPzR-0006h1-C6 for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 18:12:53 -0400 Received: from pank ([94.34.240.188]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MMBun-1VHDKh2Q3B-007ydO for ; Thu, 19 Sep 2013 00:12:50 +0200 In-Reply-To: <87a9j9esq9.fsf@gmail.com> (Josiah Schwab's message of "Wed, 18 Sep 2013 14:15:58 -0700") 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: jschwab@gmail.com Cc: emacs-orgmode@gnu.org Josiah Schwab writes: > 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. Is there a vanilla-markdown TOC-keyword? My understanding is that markdown always understand plain html, whence the html-toc is reusable. If there is exists a vanilla-markdown TOC perhaps it should be used. =E2=80=93Rasmus --=20 Dung makes an excellent fertilizer