From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Capture and use export header numbering? Date: Thu, 5 Nov 2015 01:49:52 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11401bb2d0de7f0523c157ad Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu9gZ-0003m7-EC for emacs-orgmode@gnu.org; Wed, 04 Nov 2015 20:49:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu9gY-0001hU-5A for emacs-orgmode@gnu.org; Wed, 04 Nov 2015 20:49:55 -0500 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:35669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu9gX-0001hQ-UO for emacs-orgmode@gnu.org; Wed, 04 Nov 2015 20:49:54 -0500 Received: by lfbn126 with SMTP id n126so51282531lfb.2 for ; Wed, 04 Nov 2015 17:49:52 -0800 (PST) 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 Mailinglist --001a11401bb2d0de7f0523c157ad Content-Type: text/plain; charset=UTF-8 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. * top :1: ** something :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: It would also be nice if org-mode simply used these numbers in the original buffer instead of stars. LB --001a11401bb2d0de7f0523c157ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
When an outline tree of headers=C2=A0

<= div>* top 1
** something=C2=A0
** something=C2=A0
=
** something=C2=A0
*** something=C2=A0
**** someth= ing
***** something
****** something

is exported, say, to html, org-mode produces a numerical outli= ne as deep as the options are set

1. top
1.1. something
1.2. something=C2=A0
1.3. somethin= g
1.3.1. something
1.3.1.1. something=C2=A0
1= .3.1.1.1. something=C2=A0
1.3.1.1.1.1. something=C2=A0
=

Now, is there any way to actually captu= re that outline numeration for use in the original buffer? I'm thinking= I would like to make a sort of tags or custom_id =C2=A0system based on the= se numbers.

* top :1:
** something = :1.1:
** something :1.2:
** something :1.3:
*= ** something :1.3.1:
**** something :1= .3.1.1:
***** something :1.3.1.1.1:
****** somethin= g :1.3.1.1.1.1:

It would also be nice if org= -mode simply used these numbers in the original buffer instead of stars.

LB





--001a11401bb2d0de7f0523c157ad-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Capture and use export header numbering? Date: Thu, 05 Nov 2015 09:43:23 +0100 Message-ID: <87ziysomz8.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuG71-00029F-7P for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 03:41:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuG70-0008Ur-J0 for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 03:41:39 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:46182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuG70-0008UG-Cq for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 03:41:38 -0500 In-Reply-To: (Lawrence Bottorff's message of "Thu, 5 Nov 2015 01:49:52 +0000") 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 Bottorff writes: > It would also be nice if org-mode simply used these numbers in the original > buffer instead of stars. That will not happen. Stars are part of Org syntax. However, you can add overlays on top of stars in order to display numbering instead. Regards, -- Nicolas Goaziou 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