From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Capture and use export header numbering? Date: Thu, 05 Nov 2015 10:46:35 +0000 Message-ID: <87bnb8raes.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuI40-0003QA-16 for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 05:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuI3v-0006DA-1i for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 05:46:39 -0500 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:33956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuI3u-0006D3-QZ for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 05:46:34 -0500 Received: by wikq8 with SMTP id q8so7732147wik.1 for ; Thu, 05 Nov 2015 02:46:34 -0800 (PST) In-reply-to: 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: Lawrence Bottorff Cc: emacs-orgmode Mailinglist Hello Lawrence, Lawrence Bottorff writes: > When an outline tree of headers > > * top 1 > ** something > ** something > ** something > *** something > **** something > ***** something > ****** something > > is exported, say, to html, org-mode produces a numerical outline as deep as > the options are set > > 1. top > 1.1. something > 1.2. something > 1.3. something > 1.3.1. something > 1.3.1.1. something > 1.3.1.1.1. something > 1.3.1.1.1.1. something > > > Now, is there any way to actually capture that outline numeration for use > in the original buffer? I'm thinking I would like to make a sort of tags or > custom_id system based on these numbers. You might find something useful as a starting point in this old code I posted here: http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00245.html Basically it exported to text to get the heading numbers. Myles